summaryrefslogtreecommitdiff
path: root/platform/glfw
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2018-07-13 18:14:12 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2018-07-20 11:56:30 -0700
commitc8edbb0500cbf4baf1d5fdb0e63679539e166585 (patch)
tree750f3b72b9e3b1c91ddbc0541cfc64d7d80ffe71 /platform/glfw
parent6d7072162b764c2432c010cd463a5a2c0093d606 (diff)
downloadqtlocation-mapboxgl-c8edbb0500cbf4baf1d5fdb0e63679539e166585.tar.gz
[core] Replace {Source,Camera,Composite}Function with PropertyExpression
Diffstat (limited to 'platform/glfw')
-rw-r--r--platform/glfw/glfw_view.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/glfw/glfw_view.cpp b/platform/glfw/glfw_view.cpp
index 60cc20e05a..d7cabf6244 100644
--- a/platform/glfw/glfw_view.cpp
+++ b/platform/glfw/glfw_view.cpp
@@ -637,14 +637,14 @@ void GLFWView::toggle3DExtrusions(bool visible) {
extrusionLayer->setSourceLayer("building");
extrusionLayer->setMinZoom(15.0f);
extrusionLayer->setFilter(Filter(eq(get("extrude"), literal("true"))));
- extrusionLayer->setFillExtrusionColor(SourceFunction<mbgl::Color>(
+ extrusionLayer->setFillExtrusionColor(PropertyExpression<mbgl::Color>(
interpolate(linear(), number(get("height")),
0.f, toColor("#160e23"),
50.f, toColor("#00615f"),
100.f, toColor("#55e9ff"))));
extrusionLayer->setFillExtrusionOpacity(0.6f);
- extrusionLayer->setFillExtrusionHeight(SourceFunction<float>(get("height")));
- extrusionLayer->setFillExtrusionBase(SourceFunction<float>(get("min_height")));
+ extrusionLayer->setFillExtrusionHeight(PropertyExpression<float>(get("height")));
+ extrusionLayer->setFillExtrusionBase(PropertyExpression<float>(get("min_height")));
map->getStyle().addLayer(std::move(extrusionLayer));
}