summaryrefslogtreecommitdiff
path: root/src/mbgl/style/layers/layer.cpp.ejs
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-03-29 17:49:01 +0200
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-04-02 17:56:16 +0300
commitebe6f7dea33c59b91464f7c6c905600184324f3c (patch)
tree2ca2b78bbf5b82b3dc51cf8ca0abdff183b55571 /src/mbgl/style/layers/layer.cpp.ejs
parent45e8154d334aa967ac22910cad1f3d96f4c8e72b (diff)
downloadqtlocation-mapboxgl-ebe6f7dea33c59b91464f7c6c905600184324f3c.tar.gz
[core] Remove RenderLinePaintProperties
This patch removes the `RenderLinePaintProperties` by making `LineFloorWidth` part of the `style::LinePaintProperties`. It normalizes paint properties evaluation for the line layer.
Diffstat (limited to 'src/mbgl/style/layers/layer.cpp.ejs')
-rw-r--r--src/mbgl/style/layers/layer.cpp.ejs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mbgl/style/layers/layer.cpp.ejs b/src/mbgl/style/layers/layer.cpp.ejs
index fcae615fe0..201189c849 100644
--- a/src/mbgl/style/layers/layer.cpp.ejs
+++ b/src/mbgl/style/layers/layer.cpp.ejs
@@ -153,6 +153,9 @@ void <%- camelize(type) %>Layer::set<%- camelize(property.name) %>(<%- propertyV
return;
auto impl_ = mutableImpl();
impl_->paint.template get<<%- camelize(property.name) %>>().value = value;
+<% if (property.name === 'line-width') { -%>
+ impl_->paint.template get<LineFloorWidth>().value = value;
+<% } -%>
baseImpl = std::move(impl_);
observer->onLayerChanged(*this);
}