[ios] Add removeStyleImage to MGLMapView (#14769)
* [ios] Add shoulRremoveStyleImage to MGLMapViewDelegate. * [ios] Changelog update. * [ios, macos] Update shouldRemoveStyle method documentation.
This commit is contained in:
committed by
GitHub
parent
3b1d437460
commit
12e0a6b0c6
@@ -183,6 +183,20 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
- (nullable NSImage *)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 Managing the Appearance of Annotations
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user