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/MGLMapView+Impl.mm | |
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/MGLMapView+Impl.mm')
-rw-r--r-- | platform/ios/src/MGLMapView+Impl.mm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/ios/src/MGLMapView+Impl.mm b/platform/ios/src/MGLMapView+Impl.mm index 73e692defe..1bccfa662f 100644 --- a/platform/ios/src/MGLMapView+Impl.mm +++ b/platform/ios/src/MGLMapView+Impl.mm @@ -100,3 +100,8 @@ void MGLMapViewImpl::onStyleImageMissing(const std::string& imageIdentifier) { NSString *imageName = [NSString stringWithUTF8String:imageIdentifier.c_str()]; [mapView didFailToLoadImage:imageName]; } + +bool MGLMapViewImpl::onCanRemoveUnusedStyleImage(const std::string &imageIdentifier) { + NSString *imageName = [NSString stringWithUTF8String:imageIdentifier.c_str()]; + return [mapView shouldRemoveStyleImage:imageName]; +} |