summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorNicki Dlugash <nicki@mapbox.com>2014-06-02 18:49:14 -0400
committerNicki Dlugash <nicki@mapbox.com>2014-06-02 18:49:14 -0400
commit71cf4efa5ae806c34b48f42affd0b5df98fce8b1 (patch)
tree6124b05ea9bc8360ccfc46a730c34857a4840f6a /bin
parent025f49133f4273d6534cd78aafaba6248babfcb0 (diff)
downloadqtlocation-mapboxgl-71cf4efa5ae806c34b48f42affd0b5df98fce8b1.tar.gz
finished separating scalerank 4 POIs by localrank
Diffstat (limited to 'bin')
-rw-r--r--bin/style.js108
1 files changed, 90 insertions, 18 deletions
diff --git a/bin/style.js b/bin/style.js
index 11d5c6df30..4157e1e8fe 100644
--- a/bin/style.js
+++ b/bin/style.js
@@ -957,6 +957,15 @@ module.exports = {
"size": 12,
"type": "point"
},
+ "poi_4_all": {
+ "source": "outdoors",
+ "layer": "poi_label",
+ "icon": "maki",
+ "field": "scalerank",
+ "value": 4,
+ "size": 12,
+ "type": "point"
+ },
"poi_aerodrome": {
"source": "outdoors",
"layer": "poi_label",
@@ -1026,8 +1035,7 @@ module.exports = {
"filter": [
"and",
{ "field": "scalerank", "value": 4 },
- { "field": "localrank", "operator": "<=", "value": 16 },
- { "field": "localrank", "operator": ">", "value": 4 }
+ { "field": "localrank", "operator": "<=", "value": 16 }
],
"text_field": "{{name_en}}",
"path": "horizontal",
@@ -1039,6 +1047,22 @@ module.exports = {
"fontSize": 10,
"feature_type": "point",
"type": "text",
+ },
+ "poi_label_4_all": {
+ "source": "outdoors",
+ "layer": "poi_label",
+ "field": "scalerank",
+ "value": 4,
+ "text_field": "{{name_en}}",
+ "path": "horizontal",
+ "padding": 2,
+ "maxWidth": 8,
+ "verticalAlignment": "top",
+ "translate": [0, -1],
+ "font": "Open Sans Semibold, Arial Unicode MS Bold",
+ "fontSize": 10,
+ "feature_type": "point",
+ "type": "text",
}
},
"structure": [
@@ -1581,6 +1605,14 @@ module.exports = {
{
"name": "poi_label_4_16",
"bucket": "poi_label_4_16"
+ },
+ {
+ "name": "poi_4_all",
+ "bucket": "poi_4_all"
+ },
+ {
+ "name": "poi_label_4_all",
+ "bucket": "poi_label_4_all"
}
],
"constants": {
@@ -2638,16 +2670,16 @@ module.exports = {
"antialias": false,
"opacity": [
"stops",
- {"z": 16.5, "val": 0},
- {"z": 16.75, "val": 1}
+ {"z": 17.5, "val": 0},
+ {"z": 17.75, "val": 1}
]
},
"poi_4_4": {
"antialias": false,
"opacity": [
"stops",
- {"z": 17.5, "val": 0},
- {"z": 17.75, "val": 1}
+ {"z": 18, "val": 0},
+ {"z": 18.25, "val": 1}
]
},
"poi_4_16": {
@@ -2658,6 +2690,14 @@ module.exports = {
{"z": 18.75, "val": 1}
]
},
+ "poi_4_all": {
+ "antialias": false,
+ "opacity": [
+ "stops",
+ {"z": 18.75, "val": 0},
+ {"z": 19, "val": 1}
+ ]
+ },
"poi_label_1-2": {
"color": "#444",
"size": "poi_label_1-2_size",
@@ -2673,8 +2713,8 @@ module.exports = {
"strokeBlur": 1,
"opacity": [
"stops",
- {"z": 16.5, "val": 0},
- {"z": 16.75, "val": 1}
+ {"z": 17.5, "val": 0},
+ {"z": 17.75, "val": 1}
]
},
"poi_label_4_4": {
@@ -2682,8 +2722,8 @@ module.exports = {
"size": 10,
"opacity": [
"stops",
- {"z": 17.5, "val": 0},
- {"z": 17.75, "val": 1}
+ {"z": 18, "val": 0},
+ {"z": 17.25, "val": 1}
],
"stroke": "land",
"strokeWidth": 0.3,
@@ -2701,6 +2741,18 @@ module.exports = {
"strokeWidth": 0.3,
"strokeBlur": 1,
},
+ "poi_label_4_all": {
+ "color": "#444",
+ "size": 10,
+ "opacity": [
+ "stops",
+ {"z": 18.75, "val": 0},
+ {"z": 19, "val": 1}
+ ],
+ "stroke": "land",
+ "strokeWidth": 0.3,
+ "strokeBlur": 1,
+ },
"poi_aerodrome": {
"opacity": ["stops",
{"z": 13, "val": 0},
@@ -3465,16 +3517,16 @@ module.exports = {
"antialias": false,
"opacity": [
"stops",
- {"z": 16.5, "val": 0},
- {"z": 16.75, "val": 1}
+ {"z": 17.5, "val": 0},
+ {"z": 17.75, "val": 1}
]
},
"poi_4_4": {
"antialias": false,
"opacity": [
"stops",
- {"z": 17.5, "val": 0},
- {"z": 17.75, "val": 1}
+ {"z": 18, "val": 0},
+ {"z": 17.25, "val": 1}
]
},
"poi_4_16": {
@@ -3485,6 +3537,14 @@ module.exports = {
{"z": 18.75, "val": 1}
]
},
+ "poi_4_all": {
+ "antialias": false,
+ "opacity": [
+ "stops",
+ {"z": 18.75, "val": 0},
+ {"z": 19, "val": 1}
+ ]
+ },
"poi_label_1-2": {
"color": "#fff",
"size": "poi_label_1-2_size",
@@ -3500,8 +3560,8 @@ module.exports = {
"strokeBlur": 1,
"opacity": [
"stops",
- {"z": 16.5, "val": 0},
- {"z": 16.75, "val": 1}
+ {"z": 17.5, "val": 0},
+ {"z": 17.75, "val": 1}
]
},
"poi_label_4_4": {
@@ -3509,8 +3569,8 @@ module.exports = {
"size": 10,
"opacity": [
"stops",
- {"z": 17.5, "val": 0},
- {"z": 17.75, "val": 1}
+ {"z": 18, "val": 0},
+ {"z": 18.25, "val": 1}
],
"stroke": "text2_stroke_night",
"strokeWidth": 0.3,
@@ -3528,6 +3588,18 @@ module.exports = {
"strokeWidth": 0.3,
"strokeBlur": 1
},
+ "poi_label_4_all": {
+ "color": "#fff",
+ "size": 10,
+ "opacity": [
+ "stops",
+ {"z": 18.75, "val": 0},
+ {"z": 19, "val": 1}
+ ],
+ "stroke": "text2_stroke_night",
+ "strokeWidth": 0.3,
+ "strokeBlur": 1
+ },
"poi_aerodrome": {
"opacity": ["stops",
{"z": 13, "val": 0},