summaryrefslogtreecommitdiff
path: root/include/mbgl/map
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2016-09-13 18:32:45 -0700
committerThiago Marcos P. Santos <thiago@mapbox.com>2016-09-22 17:43:28 +0300
commit486bdddb23c93572c29068a229041b2575f383e8 (patch)
tree0e50aa7464032fb8628366af544d3c8e5e1a92f8 /include/mbgl/map
parente8d47269f808845acdc5b3d76033428ac1fb630e (diff)
downloadqtlocation-mapboxgl-486bdddb23c93572c29068a229041b2575f383e8.tar.gz
[core] Add interface to add sprites to the style
Unlike annotations, they will go away when we change the style.
Diffstat (limited to 'include/mbgl/map')
-rw-r--r--include/mbgl/map/map.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp
index 6c478c17f0..914c2cd0b3 100644
--- a/include/mbgl/map/map.hpp
+++ b/include/mbgl/map/map.hpp
@@ -161,6 +161,10 @@ public:
void addLayer(std::unique_ptr<style::Layer>, const optional<std::string>& beforeLayerID = {});
void removeLayer(const std::string& layerID);
+ // Add image, bound to the style
+ void addImage(const std::string&, std::unique_ptr<const SpriteImage>);
+ void removeImage(const std::string&);
+
// Defaults
std::string getStyleName() const;
LatLng getDefaultLatLng() const;