Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Added missing circle style properties update
Browse files Browse the repository at this point in the history
Part of #1740.
  • Loading branch information
brunoabinader committed Jun 18, 2015
1 parent c3d510f commit 7af84e7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/mbgl/style/style_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,15 @@ void StyleLayer::applyStyleProperties<LineProperties>(const float z, const TimeP
applyStyleProperty(PropertyKey::LineWidth, line.dash_line_width, std::floor(z), TimePoint::max(), zoomHistory);
}

template <>
void StyleLayer::applyStyleProperties<CircleProperties>(const float z, const TimePoint now, const ZoomHistory &zoomHistory) {
properties.set<CircleProperties>();
CircleProperties& circle = properties.get<CircleProperties>();
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<SymbolProperties>(const float z, const TimePoint now, const ZoomHistory &zoomHistory) {
properties.set<SymbolProperties>();
Expand Down Expand Up @@ -257,6 +266,7 @@ void StyleLayer::updateProperties(float z, const TimePoint now, ZoomHistory &zoo
switch (type) {
case StyleLayerType::Fill: applyStyleProperties<FillProperties>(z, now, zoomHistory); break;
case StyleLayerType::Line: applyStyleProperties<LineProperties>(z, now, zoomHistory); break;
case StyleLayerType::Circle: applyStyleProperties<CircleProperties>(z, now, zoomHistory); break;
case StyleLayerType::Symbol: applyStyleProperties<SymbolProperties>(z, now, zoomHistory); break;
case StyleLayerType::Raster: applyStyleProperties<RasterProperties>(z, now, zoomHistory); break;
case StyleLayerType::Background: applyStyleProperties<BackgroundProperties>(z, now, zoomHistory); break;
Expand Down

0 comments on commit 7af84e7

Please sign in to comment.