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": {
"osmTags": "leisure=fitness_centre"
},
"minzoom": 13,
"minzoom": 12,
"title": {
"render": {
"en": "Fitness Centre"
@ -17,9 +17,7 @@
"mappings": [
{
"if": "name~*",
"then": {
"en": "Fitness Centre {name}"
}
"then": "{name}"
}
]
},
@ -75,7 +73,8 @@
"centroid"
],
"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": {
"osmTags": "leisure=fitness_station"
},
"minzoom": 13,
"minzoom": 12,
"title": {
"render": {
"en": "Fitness Station"
@ -18,7 +18,7 @@
{
"if": "name~*",
"then": {
"en": "Fitness Station{name}"
"en": "Fitness Station {name}"
}
}
]
@ -350,7 +350,7 @@
"sport=fitness"
],
"title": {
"en": "a Fitness Station"
"en": "a fitness station"
},
"icon": "./assets/layers/fitness_station/fitness.svg"
}

View file

@ -16,6 +16,31 @@
"layers": [
"sport_pitch",
"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"
]
}
]
}