summaryrefslogtreecommitdiff
path: root/platform/macos/src/MGLMapView+Impl.mm
diff options
context:
space:
mode:
Diffstat (limited to 'platform/macos/src/MGLMapView+Impl.mm')
-rw-r--r--platform/macos/src/MGLMapView+Impl.mm5
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];
+}