diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-05-21 10:29:36 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-05-21 10:29:36 +0200 |
commit | 752661ae6e92bb0514634215b57ecfaae8650c8e (patch) | |
tree | a065285d9ff0763efc005a9ca0446012a103b766 /bin | |
parent | 7f00a63fd0530c39cc64590115dae475ae671b1d (diff) | |
download | qtlocation-mapboxgl-752661ae6e92bb0514634215b57ecfaae8650c8e.tar.gz |
allow functions to be referenced from constants
fixes #224
Diffstat (limited to 'bin')
-rw-r--r-- | bin/style.js | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/bin/style.js b/bin/style.js index 7760406c58..7318ce377b 100644 --- a/bin/style.js +++ b/bin/style.js @@ -1359,7 +1359,19 @@ module.exports = { "motorway_night": "#eee", "main_night": "#95ccdb", "street_night": "#0291b5", - "contour_night": "#ffff80" + "contour_night": "#ffff80", + + "road_main_width": [ + "stops", + {"z": 5, "val": 1}, + {"z": 12, "val": 1}, + {"z": 13, "val": 1.5}, + {"z": 14, "val": 2}, + {"z": 15, "val": 3}, + {"z": 16, "val": 6}, + {"z": 17, "val": 10}, + {"z": 18, "val": 12} + ] }, "classes": [ { @@ -1915,17 +1927,7 @@ module.exports = { "road_main": { "transition-color": {"duration": 300}, "color": "main", - "width": [ - "stops", - {"z": 5, "val": 1}, - {"z": 12, "val": 1}, - {"z": 13, "val": 1.5}, - {"z": 14, "val": 2}, - {"z": 15, "val": 3}, - {"z": 16, "val": 6}, - {"z": 17, "val": 10}, - {"z": 18, "val": 12} - ], + "width": "road_main_width", "opacity": [ "stops", {"z": 6.5, "val": 0}, |