From 5254127e8c9d2f9dbfb19c2245717c3461107c50 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 15 Jun 2016 14:53:25 -0700 Subject: [core] Runtime source API: Map methods --- include/mbgl/map/map.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/mbgl/map') 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); + void removeSource(const std::string& sourceID); + + // Layers style::Layer* getLayer(const std::string& layerID); void addLayer(std::unique_ptr, const optional& beforeLayerID = {}); void removeLayer(const std::string& layerID); -- cgit v1.2.1