summaryrefslogtreecommitdiff
path: root/src/mbgl/annotation/shape_annotation_impl.cpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-04-21 13:05:10 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-04-21 14:05:40 -0700
commitb2beeda50bbd48fecad957d194dd5b40c72eb9c7 (patch)
tree4e13e0281222e79da20ad37eeea9cc468cdf3c32 /src/mbgl/annotation/shape_annotation_impl.cpp
parent2ea450205d8b89db28f7160365b73d26bf4b8812 (diff)
downloadqtlocation-mapboxgl-b2beeda50bbd48fecad957d194dd5b40c72eb9c7.tar.gz
[core] Adopt a strict naming convention for style properties
This will allow code to be generated from the style specification.
Diffstat (limited to 'src/mbgl/annotation/shape_annotation_impl.cpp')
-rw-r--r--src/mbgl/annotation/shape_annotation_impl.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mbgl/annotation/shape_annotation_impl.cpp b/src/mbgl/annotation/shape_annotation_impl.cpp
index 380a5b7746..e0e2eb51b2 100644
--- a/src/mbgl/annotation/shape_annotation_impl.cpp
+++ b/src/mbgl/annotation/shape_annotation_impl.cpp
@@ -31,12 +31,12 @@ void ShapeAnnotationImpl::updateStyle(Style& style) {
type = geojsonvt::ProjectedFeatureType::LineString;
std::unique_ptr<LineLayer> layer = std::make_unique<LineLayer>();
- layer->layout.join = LineJoinType::Round;
+ layer->layout.lineJoin = LineJoinType::Round;
const LineAnnotationProperties& properties = shape.properties.get<LineAnnotationProperties>();
- layer->paint.opacity = properties.opacity;
- layer->paint.width = properties.width;
- layer->paint.color = properties.color;
+ layer->paint.lineOpacity = properties.opacity;
+ layer->paint.lineWidth = properties.width;
+ layer->paint.lineColor = properties.color;
layer->id = layerID;
layer->source = AnnotationManager::SourceID;
@@ -50,9 +50,9 @@ void ShapeAnnotationImpl::updateStyle(Style& style) {
std::unique_ptr<FillLayer> layer = std::make_unique<FillLayer>();
const FillAnnotationProperties& properties = shape.properties.get<FillAnnotationProperties>();
- layer->paint.opacity = properties.opacity;
- layer->paint.color = properties.color;
- layer->paint.outlineColor = properties.outlineColor;
+ layer->paint.fillOpacity = properties.opacity;
+ layer->paint.fillColor = properties.color;
+ layer->paint.fillOutlineColor = properties.outlineColor;
layer->id = layerID;
layer->source = AnnotationManager::SourceID;