diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2018-07-03 16:34:25 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2018-07-03 17:00:20 +0300 |
commit | 28994ae92cb781ad9c064ab8bc6bdaf65d83478a (patch) | |
tree | fa99ee451b6d1266b34656e43619ddd2e46cc36a /platform/glfw | |
parent | f8a6e01df0cf1d411f9802a43676a59bc5da4154 (diff) | |
download | qtlocation-mapboxgl-28994ae92cb781ad9c064ab8bc6bdaf65d83478a.tar.gz |
[glfw] Update route demo to use expressions DSL
Diffstat (limited to 'platform/glfw')
-rw-r--r-- | platform/glfw/glfw_view.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/glfw/glfw_view.cpp b/platform/glfw/glfw_view.cpp index a08dc7c768..b499956b96 100644 --- a/platform/glfw/glfw_view.cpp +++ b/platform/glfw/glfw_view.cpp @@ -640,7 +640,7 @@ void GLFWView::toggle3DExtrusions(bool visible) { extrusionLayer->setMinZoom(15.0f); extrusionLayer->setFilter(Filter(eq(get("extrude"), literal("true")))); extrusionLayer->setFillExtrusionColor(SourceFunction<mbgl::Color>( - interpolate(linear(), get("height"), + interpolate(linear(), number(get("height")), 0.f, toColor("#160e23"), 50.f, toColor("#00615f"), 100.f, toColor("#55e9ff")))); |