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/macos/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/macos/src/MGLMapView+Impl.mm')
-rw-r--r-- | platform/macos/src/MGLMapView+Impl.mm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/macos/src/MGLMapView+Impl.mm b/platform/macos/src/MGLMapView+Impl.mm index 7be5545671..2354f67a6d 100644 --- a/platform/macos/src/MGLMapView+Impl.mm +++ b/platform/macos/src/MGLMapView+Impl.mm @@ -94,3 +94,8 @@ void MGLMapViewImpl::onSourceChanged(mbgl::style::Source& source) { MGLSource * nativeSource = [mapView.style sourceWithIdentifier:identifier]; [mapView sourceDidChange:nativeSource]; } + +bool MGLMapViewImpl::onCanRemoveUnusedStyleImage(const std::string &imageIdentifier) { + NSString *imageName = [NSString stringWithUTF8String:imageIdentifier.c_str()]; + return [mapView shouldRemoveStyleImage:imageName]; +} |