summaryrefslogtreecommitdiff
path: root/include/mbgl/map
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-06-15 14:53:25 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-06-16 13:27:15 -0700
commit5254127e8c9d2f9dbfb19c2245717c3461107c50 (patch)
treeffbb215c3ea56ab72df1f7df99b5104d056eae44 /include/mbgl/map
parent9d6b50828e2cbce2d0e8a9611b1dccad5123a4bd (diff)
downloadqtlocation-mapboxgl-5254127e8c9d2f9dbfb19c2245717c3461107c50.tar.gz
[core] Runtime source API: Map methods
Diffstat (limited to 'include/mbgl/map')
-rw-r--r--include/mbgl/map/map.hpp7
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);