From 18d898fae70681fba8cc31d73b581c360557746c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Mon, 30 Jun 2014 16:52:39 +0200 Subject: refactor functions --- bin/style.js | 42 ++++++++++++++++++++---------------------- 1 file changed, 20 insertions(+), 22 deletions(-) (limited to 'bin') diff --git a/bin/style.js b/bin/style.js index 7ca40b6123..691c913510 100644 --- a/bin/style.js +++ b/bin/style.js @@ -6,7 +6,7 @@ module.exports = { "@land": "#eee", "@water": "#999", "@park": "#bda", - "@road": "#fefefe", + "@road": "#FF00FF", "@border": "#6d90ab", "@building": "#ddd", "@building_outline": "#ccc", @@ -53,28 +53,26 @@ module.exports = { "fill-color": "blue" } }, { - "id": "roads", - "layers": [{ - "id": "road", - "source": "mapbox.mapbox-streets-v5", - "source-layer": "road", - "render": { - "type": "line", - "line-cap": "round", - "line-join": "bevel" - }, - "style": { - "line-color": "@road", - "line-blur": "@road_blur", - "line-width": { - "fn": "exponential", - "z": 10, - "val": -1, - "slope": 0.2, - "min": 1 - } + "id": "road", + "source": "mapbox.mapbox-streets-v5", + "source-layer": "road", + "render": { + "type": "line", + "line-cap": "round", + "line-join": "bevel" + }, + "style": { + "line-color": "@road", + "line-blur": "@road_blur", + "line-width": { + "fn": "exponential", + "z": 10, + "val": -1, + "slope": 0.2, + "min": 1, + "max": 1000 } - }] + } }, { "id": "building", "source": "mapbox.mapbox-streets-v5", -- cgit v1.2.1