summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-07-02 17:44:32 +0200
committerKonstantin Käfer <mail@kkaefer.com>2015-07-08 19:46:01 +0200
commitf9601ae68595e5bd2d7951d8ecf8e11117b2162c (patch)
treecb6efa3128e8c3d27d104b6c15cb7e3c44ea6854 /include
parent70d0a26f98da50b348433a772cf02b025a70c5be (diff)
downloadqtlocation-mapboxgl-f9601ae68595e5bd2d7951d8ecf8e11117b2162c.tar.gz
add ability to set custom sprites on the Map object
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/map/map.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp
index e9d25bfe89..8178fab49c 100644
--- a/include/mbgl/map/map.hpp
+++ b/include/mbgl/map/map.hpp
@@ -21,6 +21,7 @@ class View;
class MapData;
class MapContext;
class StillImage;
+class SpriteImage;
class Transform;
class PointAnnotation;
class ShapeAnnotation;
@@ -141,6 +142,10 @@ public:
AnnotationIDs getAnnotationsInBounds(const LatLngBounds&, const AnnotationType& = AnnotationType::Any);
LatLngBounds getBoundsForAnnotations(const AnnotationIDs&);
+ // Sprites
+ void setSprite(const std::string&, std::shared_ptr<const SpriteImage>);
+ void removeSprite(const std::string&);
+
// Memory
void setSourceTileCacheSize(size_t);
void onLowMemory();