summaryrefslogtreecommitdiff
path: root/src/mbgl/annotation/shape_annotation_impl.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-10-22 13:11:25 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-10-22 15:27:53 -0700
commitc46a8254c46acb0da3719e20e99c87b11e998da2 (patch)
tree635f8c3e3d878ff3e025a8175a3509a1ec4d6df7 /src/mbgl/annotation/shape_annotation_impl.hpp
parent4f509288b7c671db96555a24a4f490311adfc13a (diff)
downloadqtlocation-mapboxgl-c46a8254c46acb0da3719e20e99c87b11e998da2.tar.gz
[core] Style-sourced shape annotation properties
This introduces the possibility to source the type and style properties of a shape annotation from a designated layer in the style.
Diffstat (limited to 'src/mbgl/annotation/shape_annotation_impl.hpp')
-rw-r--r--src/mbgl/annotation/shape_annotation_impl.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mbgl/annotation/shape_annotation_impl.hpp b/src/mbgl/annotation/shape_annotation_impl.hpp
index 4cf6c23f61..1b1dacf370 100644
--- a/src/mbgl/annotation/shape_annotation_impl.hpp
+++ b/src/mbgl/annotation/shape_annotation_impl.hpp
@@ -13,6 +13,7 @@
namespace mbgl {
class Style;
+class StyleLayer;
class AnnotationTile;
class ShapeAnnotationImpl {
@@ -30,7 +31,12 @@ public:
const ShapeAnnotation shape;
private:
- mapbox::util::geojsonvt::GeoJSONVT shapeTiler;
+ std::unique_ptr<StyleLayer> createLineLayer();
+ std::unique_ptr<StyleLayer> createFillLayer();
+
+ const uint8_t maxZoom;
+ mapbox::util::geojsonvt::ProjectedFeatureType type;
+ std::unique_ptr<mapbox::util::geojsonvt::GeoJSONVT> shapeTiler;
};
}