diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/ios/MGLMapView+MGLCustomStyleLayerAdditions.h | 2 | ||||
-rw-r--r-- | include/mbgl/map/map.hpp | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/mbgl/ios/MGLMapView+MGLCustomStyleLayerAdditions.h b/include/mbgl/ios/MGLMapView+MGLCustomStyleLayerAdditions.h index 2fe7ea6be5..e24f7ebab6 100644 --- a/include/mbgl/ios/MGLMapView+MGLCustomStyleLayerAdditions.h +++ b/include/mbgl/ios/MGLMapView+MGLCustomStyleLayerAdditions.h @@ -20,6 +20,8 @@ typedef void (^MGLCustomStyleLayerCompletionHandler)(void); - (void)insertCustomStyleLayerWithIdentifier:(NSString *)identifier preparationHandler:(MGLCustomStyleLayerPreparationHandler)preparation drawingHandler:(MGLCustomStyleLayerDrawingHandler)drawing completionHandler:(MGLCustomStyleLayerCompletionHandler)completion belowStyleLayerWithIdentifier:(nullable NSString *)otherIdentifier; +- (void)removeCustomStyleLayerWithIdentifier:(NSString *)identifier; + - (void)setCustomStyleLayersNeedDisplay; @end diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp index f8c3f4a172..2be31b5db6 100644 --- a/include/mbgl/map/map.hpp +++ b/include/mbgl/map/map.hpp @@ -174,6 +174,7 @@ public: CustomLayerDeinitializeFunction, void* context, const char* before = nullptr); + void removeCustomLayer(const std::string& id); // Memory void setSourceTileCacheSize(size_t); |