summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-05-30 21:05:25 +0200
committerKonstantin Käfer <mail@kkaefer.com>2014-05-30 21:13:55 +0200
commitc5fd7a0cddbf6825e3947bfbff418730b288b7bb (patch)
tree7999d8a06eca57b0061621ddb8e818fcddf25d81 /bin
parentda29a16370addf244371afa7255d127c246b5983 (diff)
downloadqtlocation-mapboxgl-c5fd7a0cddbf6825e3947bfbff418730b288b7bb.tar.gz
add token replacement system
fixes #212
Diffstat (limited to 'bin')
-rw-r--r--bin/style.js38
1 files changed, 19 insertions, 19 deletions
diff --git a/bin/style.js b/bin/style.js
index 3d24d6e79c..3088e5e528 100644
--- a/bin/style.js
+++ b/bin/style.js
@@ -266,7 +266,7 @@ module.exports = {
"field": "index",
"value": 10,
"path": "curve",
- "text_field": "ele",
+ "text_field": "{{ele}}m",
"font": "Open Sans Regular, Arial Unicode MS Regular",
"fontSize": 10,
"feature_type": "line",
@@ -647,7 +647,7 @@ module.exports = {
"country_label": {
"source": "outdoors",
"layer": "country_label",
- "text_field": "name",
+ "text_field": "{{name}}",
"path": "horizontal",
"font": "Open Sans Bold, Arial Unicode MS Bold",
"fontSize": 24,
@@ -664,7 +664,7 @@ module.exports = {
"layer": "marine_label",
"feature_type": "line",
"type": "text",
- "text_field": "name",
+ "text_field": "{{name}}",
"path": "curve",
"font": "Open Sans Italic, Arial Unicode MS Regular",
"fontSize": 16
@@ -674,7 +674,7 @@ module.exports = {
"layer": "marine_label",
"feature_type": "point",
"type": "text",
- "text_field": "name",
+ "text_field": "{{name}}",
"path": "horizontal",
"field": "labelrank",
"value": 1,
@@ -686,7 +686,7 @@ module.exports = {
"layer": "marine_label",
"feature_type": "point",
"type": "text",
- "text_field": "name",
+ "text_field": "{{name}}",
"path": "horizontal",
"field": "labelrank",
"value": 2,
@@ -698,7 +698,7 @@ module.exports = {
"layer": "marine_label",
"feature_type": "point",
"type": "text",
- "text_field": "name",
+ "text_field": "{{name}}",
"path": "horizontal",
"field": "labelrank",
"value": [3,4,5,6],
@@ -708,7 +708,7 @@ module.exports = {
"state_label": {
"source": "outdoors",
"layer": "state_label",
- "text_field": "name",
+ "text_field": "{{name}}",
"path": "horizontal",
"font": "Open Sans Regular, Arial Unicode MS Regular",
"fontSize": 16,
@@ -721,7 +721,7 @@ module.exports = {
"layer": "place_label",
"field": "type",
"value": "city",
- "text_field": "name",
+ "text_field": "{{name}}",
"path": "horizontal",
"font": "Open Sans Semibold, Arial Unicode MS Bold",
"fontSize": 20,
@@ -733,7 +733,7 @@ module.exports = {
"layer": "place_label",
"field": "type",
"value": "town",
- "text_field": "name",
+ "text_field": "{{name}}",
"path": "horizontal",
"font": "Open Sans Semibold, Arial Unicode MS Bold",
"fontSize": 24,
@@ -745,7 +745,7 @@ module.exports = {
"layer": "place_label",
"field": "type",
"value": "village",
- "text_field": "name",
+ "text_field": "{{name}}",
"path": "horizontal",
"font": "Open Sans Semibold, Arial Unicode MS Bold",
"fontSize": 22,
@@ -761,7 +761,7 @@ module.exports = {
"suburb",
"neighbourhood"
],
- "text_field": "name",
+ "text_field": "{{name}}",
"path": "horizontal",
"font": "Open Sans Semibold, Arial Unicode MS Bold",
"fontSize": 18,
@@ -774,7 +774,7 @@ module.exports = {
"layer": "road_label",
"field": "class",
"value": ["motorway","main"],
- "text_field": "name",
+ "text_field": "{{name}}",
"path": "curve",
"padding": 2,
"font": "Open Sans Regular, Arial Unicode MS Regular",
@@ -788,7 +788,7 @@ module.exports = {
"layer": "road_label",
"field": "class",
"value": ["street","street_limited"],
- "text_field": "name",
+ "text_field": "{{name}}",
"path": "curve",
"padding": 2,
"font": "Open Sans Regular, Arial Unicode MS Regular",
@@ -802,7 +802,7 @@ module.exports = {
"layer": "road_label",
"field": "class",
"value": ["service","driveway","path"],
- "text_field": "name",
+ "text_field": "{{name}}",
"path": "curve",
"padding": 2,
"font": "Open Sans Regular, Arial Unicode MS Regular",
@@ -814,7 +814,7 @@ module.exports = {
"water_label": {
"source": "outdoors",
"layer": "water_label",
- "text_field": "name",
+ "text_field": "{{name}}",
"path": "horizontal",
"font": "Open Sans Semibold Italic, Arial Unicode MS Bold",
"fontSize": 12,
@@ -824,7 +824,7 @@ module.exports = {
"waterway_label": {
"source": "outdoors",
"layer": "waterway_label",
- "text_field": "name",
+ "text_field": "{{name}}",
"path": "curve",
"font": "Open Sans Semibold Italic, Arial Unicode MS Bold",
"fontSize": 12,
@@ -876,7 +876,7 @@ module.exports = {
1,
2
],
- "text_field": "name",
+ "text_field": "{{name}}",
"path": "horizontal",
"padding": 2,
"maxWidth": 8,
@@ -892,7 +892,7 @@ module.exports = {
"layer": "poi_label",
"field": "scalerank",
"value": 3,
- "text_field": "name",
+ "text_field": "{{name}}",
"path": "horizontal",
"padding": 2,
"maxWidth": 8,
@@ -908,7 +908,7 @@ module.exports = {
"layer": "poi_label",
"field": "scalerank",
"value": 4,
- "text_field": "name",
+ "text_field": "{{name}}",
"path": "horizontal",
"padding": 2,
"maxWidth": 8,