diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/map/map.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp index 749c45c4c2..0e0c04ff0f 100644 --- a/include/mbgl/map/map.hpp +++ b/include/mbgl/map/map.hpp @@ -26,6 +26,7 @@ struct CameraOptions; struct AnimationOptions; namespace style { +class Source; class Layer; } // namespace style @@ -149,6 +150,12 @@ public: AnnotationIDs getPointAnnotationsInBounds(const LatLngBounds&); + // Sources + style::Source* getSource(const std::string& sourceID); + void addSource(std::unique_ptr<style::Source>); + void removeSource(const std::string& sourceID); + + // Layers style::Layer* getLayer(const std::string& layerID); void addLayer(std::unique_ptr<style::Layer>, const optional<std::string>& beforeLayerID = {}); void removeLayer(const std::string& layerID); |