diff options
Diffstat (limited to 'platform/glfw/glfw_view.cpp')
-rw-r--r-- | platform/glfw/glfw_view.cpp | 6 |
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)); } |