summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-06-30 16:52:39 +0200
committerKonstantin Käfer <mail@kkaefer.com>2014-06-30 16:52:39 +0200
commit18d898fae70681fba8cc31d73b581c360557746c (patch)
tree813ad2d0696184bef3fafefdc30318a09fa76fbc /bin
parent93cd4c5c7b0939038eab38a6f6eb71eae4014acb (diff)
downloadqtlocation-mapboxgl-18d898fae70681fba8cc31d73b581c360557746c.tar.gz
refactor functions
Diffstat (limited to 'bin')
-rw-r--r--bin/style.js42
1 files changed, 20 insertions, 22 deletions
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",