diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2015-12-17 14:39:19 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2015-12-17 15:15:55 -0800 |
commit | 110f1ec796ab46e4f16bcf9673f0aa89ae153aeb (patch) | |
tree | bee9af94074a24ec4b3ae757047747b5da1625bf /include | |
parent | d3c92a8b5cf9a5ac89320c66cf58ff9f84ab28ee (diff) | |
download | qtlocation-mapboxgl-110f1ec796ab46e4f16bcf9673f0aa89ae153aeb.tar.gz |
[ios, android] Add methods to remove a custom layer
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); |