diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-06-15 14:53:25 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-06-16 13:27:15 -0700 |
commit | 5254127e8c9d2f9dbfb19c2245717c3461107c50 (patch) | |
tree | ffbb215c3ea56ab72df1f7df99b5104d056eae44 /include | |
parent | 9d6b50828e2cbce2d0e8a9611b1dccad5123a4bd (diff) | |
download | qtlocation-mapboxgl-5254127e8c9d2f9dbfb19c2245717c3461107c50.tar.gz |
[core] Runtime source API: Map methods
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); |