diff options
author | Fabian Guerra Soto <fabian.guerra@mapbox.com> | 2019-07-02 16:33:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-02 16:33:09 -0700 |
commit | 12e0a6b0c67bc2356dbe83d7ab19efdd9a3dc2ea (patch) | |
tree | 60c7a280960a97ccbe66a5303020b433dbfc9b6e /platform/ios/src/MGLMapViewDelegate.h | |
parent | 3b1d437460939254191479bd730599c2418c20aa (diff) | |
download | qtlocation-mapboxgl-12e0a6b0c67bc2356dbe83d7ab19efdd9a3dc2ea.tar.gz |
[ios] Add removeStyleImage to MGLMapView (#14769)
* [ios] Add shoulRremoveStyleImage to MGLMapViewDelegate.
* [ios] Changelog update.
* [ios, macos] Update shouldRemoveStyle method documentation.
Diffstat (limited to 'platform/ios/src/MGLMapViewDelegate.h')
-rw-r--r-- | platform/ios/src/MGLMapViewDelegate.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/platform/ios/src/MGLMapViewDelegate.h b/platform/ios/src/MGLMapViewDelegate.h index f5249d1797..3ddb7b007f 100644 --- a/platform/ios/src/MGLMapViewDelegate.h +++ b/platform/ios/src/MGLMapViewDelegate.h @@ -277,6 +277,20 @@ NS_ASSUME_NONNULL_BEGIN - (nullable UIImage *)mapView:(MGLMapView *)mapView didFailToLoadImage:(NSString *)imageName; +/** + Asks the delegate whether the map view should evict cached images. + + This method is called in two scenarios: when the cumulative size of unused images + exceeds the cache size or when the last tile that includes the image is removed from + memory. + + @param mapView The map view that is evicting the image. + @param imageName The image name that is going to be removed. + @return A Boolean value indicating whether the map view should evict + the cached image. + */ +- (BOOL)mapView:(MGLMapView *)mapView shouldRemoveStyleImage:(NSString *)imageName; + #pragma mark Tracking User Location /** |