summaryrefslogtreecommitdiff
path: root/include/mbgl/map
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-12-08 14:30:42 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-12-09 13:51:28 -0800
commitbde07c8f0edcc890efd7fd6993f5309d6881c402 (patch)
tree38464b4f291551d0cece8505941c3763e70bc3ab /include/mbgl/map
parent0346cfd865b7f26e92561efdc3fca458c88800e5 (diff)
downloadqtlocation-mapboxgl-bde07c8f0edcc890efd7fd6993f5309d6881c402.tar.gz
[core] Custom layers
Diffstat (limited to 'include/mbgl/map')
-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 ad13d24eb6..a6a6b5dede 100644
--- a/include/mbgl/map/map.hpp
+++ b/include/mbgl/map/map.hpp
@@ -27,6 +27,7 @@ class Transform;
class PointAnnotation;
class ShapeAnnotation;
struct CameraOptions;
+class StyleLayer;
namespace util {
template <class T> class Thread;
@@ -162,6 +163,10 @@ public:
AnnotationIDs getPointAnnotationsInBounds(const LatLngBounds&);
LatLngBounds getBoundsForAnnotations(const AnnotationIDs&);
+ // Style API
+ void addLayer(std::unique_ptr<StyleLayer>);
+ void addLayer(std::unique_ptr<StyleLayer>, const std::string& before);
+
// Memory
void setSourceTileCacheSize(size_t);
void onLowMemory();