Add label and sport shops

This commit is contained in:
Robin van der Linde 2022-08-27 11:57:42 +02:00
parent a1e7474fb4
commit c7526573b9
Signed by untrusted user who does not match committer: Robin-van-der-Linde
GPG key ID: 53956B3252478F0D
3 changed files with 33 additions and 9 deletions

View file

@ -9,7 +9,7 @@
"source": { "source": {
"osmTags": "leisure=fitness_centre" "osmTags": "leisure=fitness_centre"
}, },
"minzoom": 13, "minzoom": 12,
"title": { "title": {
"render": { "render": {
"en": "Fitness Centre" "en": "Fitness Centre"
@ -17,9 +17,7 @@
"mappings": [ "mappings": [
{ {
"if": "name~*", "if": "name~*",
"then": { "then": "{name}"
"en": "Fitness Centre {name}"
}
} }
] ]
}, },
@ -75,7 +73,8 @@
"centroid" "centroid"
], ],
"icon": "circle:white;./assets/layers/fitness_centre/gym.svg", "icon": "circle:white;./assets/layers/fitness_centre/gym.svg",
"iconSize": "40,40,center" "iconSize": "40,40,center",
"label": "{name}"
} }
] ]
} }

View file

@ -9,7 +9,7 @@
"source": { "source": {
"osmTags": "leisure=fitness_station" "osmTags": "leisure=fitness_station"
}, },
"minzoom": 13, "minzoom": 12,
"title": { "title": {
"render": { "render": {
"en": "Fitness Station" "en": "Fitness Station"
@ -18,7 +18,7 @@
{ {
"if": "name~*", "if": "name~*",
"then": { "then": {
"en": "Fitness Station{name}" "en": "Fitness Station {name}"
} }
} }
] ]
@ -350,7 +350,7 @@
"sport=fitness" "sport=fitness"
], ],
"title": { "title": {
"en": "a Fitness Station" "en": "a fitness station"
}, },
"icon": "./assets/layers/fitness_station/fitness.svg" "icon": "./assets/layers/fitness_station/fitness.svg"
} }

View file

@ -16,6 +16,31 @@
"layers": [ "layers": [
"sport_pitch", "sport_pitch",
"fitness_centre", "fitness_centre",
"fitness_station" "fitness_station",
{
"builtin": "shops",
"override": {
"source": {
"osmTags": "shop=sports"
},
"presets": [
{
"tags": [
"shop=sports"
],
"title": {
"en": "a sports shop"
},
"description": {
"en": "Add a new shop selling sports goods."
}
}
],
"minzoom": 12
},
"hideTagRenderingsWithLabels": [
"shop_types"
]
}
] ]
} }