From 7af84e7ecde442c9e694fcca803cf325aad39856 Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Wed, 17 Jun 2015 15:07:38 +0300 Subject: [PATCH] Added missing circle style properties update Part of #1740. --- src/mbgl/style/style_layer.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/mbgl/style/style_layer.cpp b/src/mbgl/style/style_layer.cpp index 738e70eec00..95cc0066984 100644 --- a/src/mbgl/style/style_layer.cpp +++ b/src/mbgl/style/style_layer.cpp @@ -206,6 +206,15 @@ void StyleLayer::applyStyleProperties(const float z, const TimeP applyStyleProperty(PropertyKey::LineWidth, line.dash_line_width, std::floor(z), TimePoint::max(), zoomHistory); } +template <> +void StyleLayer::applyStyleProperties(const float z, const TimePoint now, const ZoomHistory &zoomHistory) { + properties.set(); + CircleProperties& circle = properties.get(); + applyTransitionedStyleProperty(PropertyKey::CircleRadius, circle.radius, z, now, zoomHistory); + applyTransitionedStyleProperty(PropertyKey::CircleColor, circle.color, z, now, zoomHistory); + applyTransitionedStyleProperty(PropertyKey::CircleBlur, circle.blur, z, now, zoomHistory); +} + template <> void StyleLayer::applyStyleProperties(const float z, const TimePoint now, const ZoomHistory &zoomHistory) { properties.set(); @@ -257,6 +266,7 @@ void StyleLayer::updateProperties(float z, const TimePoint now, ZoomHistory &zoo switch (type) { case StyleLayerType::Fill: applyStyleProperties(z, now, zoomHistory); break; case StyleLayerType::Line: applyStyleProperties(z, now, zoomHistory); break; + case StyleLayerType::Circle: applyStyleProperties(z, now, zoomHistory); break; case StyleLayerType::Symbol: applyStyleProperties(z, now, zoomHistory); break; case StyleLayerType::Raster: applyStyleProperties(z, now, zoomHistory); break; case StyleLayerType::Background: applyStyleProperties(z, now, zoomHistory); break;