aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndrew Hay Kurtz <andrew.hay.kurtz@gmail.com>2019-10-29 13:49:22 -0700
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2020-04-14 22:30:40 +0300
commit0c95acf10379266e4142572b6cc7fb1c29271f3b (patch)
tree562c723da46b44a6c5905586f7a25f5194213d15 /include
parent08ad74216442a8c306a3d7ca4696f5ddb780557f (diff)
Enable 'circle-sort-key' layout property
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/layermanager/circle_layer_factory.hpp4
-rw-r--r--include/mbgl/style/layers/circle_layer.hpp6
2 files changed, 9 insertions, 1 deletions
diff --git a/include/mbgl/layermanager/circle_layer_factory.hpp b/include/mbgl/layermanager/circle_layer_factory.hpp
index 51135d338..aaf5fddfb 100644
--- a/include/mbgl/layermanager/circle_layer_factory.hpp
+++ b/include/mbgl/layermanager/circle_layer_factory.hpp
@@ -8,7 +8,9 @@ class CircleLayerFactory : public LayerFactory {
protected:
const style::LayerTypeInfo* getTypeInfo() const noexcept final;
std::unique_ptr<style::Layer> createLayer(const std::string& id, const style::conversion::Convertible& value) noexcept final;
- std::unique_ptr<Bucket> createBucket(const BucketParameters&, const std::vector<Immutable<style::LayerProperties>>&) noexcept final;
+ std::unique_ptr<Layout> createLayout(const LayoutParameters& parameters,
+ std::unique_ptr<GeometryTileLayer> tileLayer,
+ const std::vector<Immutable<style::LayerProperties>>& group) noexcept final;
std::unique_ptr<RenderLayer> createRenderLayer(Immutable<style::Layer::Impl>) noexcept final;
};
diff --git a/include/mbgl/style/layers/circle_layer.hpp b/include/mbgl/style/layers/circle_layer.hpp
index f0e9787ca..aac02121e 100644
--- a/include/mbgl/style/layers/circle_layer.hpp
+++ b/include/mbgl/style/layers/circle_layer.hpp
@@ -19,6 +19,12 @@ public:
CircleLayer(const std::string& layerID, const std::string& sourceID);
~CircleLayer() final;
+ // Layout properties
+
+ static PropertyValue<float> getDefaultCircleSortKey();
+ const PropertyValue<float>& getCircleSortKey() const;
+ void setCircleSortKey(const PropertyValue<float>&);
+
// Paint properties
static PropertyValue<float> getDefaultCircleBlur();