Add sports centre layer

This commit is contained in:
Robin van der Linde 2022-10-12 18:42:34 +02:00
parent 4cb0cf8b8b
commit b5c3972104
No known key found for this signature in database
GPG key ID: 53956B3252478F0D
4 changed files with 86 additions and 6 deletions

View file

@ -0,0 +1,13 @@
[
{
"path": "sports_centre.svg",
"license": "CC-BY",
"authors": [
"Hello world",
"The Noun Project"
],
"sources": [
"https://thenounproject.com/icon/rogers-centre-464379/"
]
}
]

View file

@ -0,0 +1,58 @@
{
"id": "sports_centre",
"name": {
"en": "Sports centres"
},
"description": {
"en": "Indoor and outdoor sports centres can be found on this layer"
},
"minzoom": 12,
"source": {
"osmTags": "leisure=sports_centre"
},
"title": {
"render": {
"en": "Sports centre"
},
"mappings": [
{
"if": "name~*",
"then": "{name}"
}
]
},
"tagRenderings": [
"images",
"opening_hours",
"phone",
"website",
"email",
"wheelchair-access"
],
"presets": [
{
"title": {
"en": "a sports centre"
},
"tags": [
"leisure=sports_centre"
]
}
],
"mapRendering": [
{
"icon": "circle:white;./assets/layers/sports_centre/sports_centre.svg",
"location": ["point", "centroid"]
},
{
"color": "darkgreen",
"fill": "no"
}
],
"allowMove": {
"enableImproveAccuracy": true
},
"filter": [
"open_now"
]
}

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="700pt" height="700pt" version="1.1" viewBox="0 0 700 700" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g>
<path d="m591.92 328.72c0-49.281-110.88-127.68-242.48-127.68-131.6 0-242.48 78.398-242.48 127.68v0.55859 0.55859 89.602c0 3.9219 2.8008 6.7188 6.7188 6.7188l471.52 0.003906c3.9219 0 6.7188-2.8008 6.7188-6.7188v-89.602c0.003906-0.55859 0.003906-0.55859 0.003906-1.1211zm-242.48-114.24c123.76 0 218.96 68.879 227.92 108.08h-36.398c-12.32-30.238-89.039-89.602-191.52-89.602-106.4 0-176.96 45.359-191.52 89.602h-36.406c8.9609-39.199 104.16-108.08 227.92-108.08zm176.96 108.08h-354.48c20.156-47.598 103.6-76.16 177.52-76.16 92.398 0 160.72 51.523 176.96 76.16zm52.082 89.602h-457.52v-76.16h457.52z"/>
<path d="m427.84 346.64h-156.8v46.48h156.8zm-61.602 13.438v20.16h-33.602v-20.16zm-81.758 0h34.719v20.16h-34.719zm129.92 20.16h-34.719v-20.16h34.719z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 958 B

View file

@ -17,11 +17,16 @@
"sport_pitch",
"fitness_centre",
"fitness_station",
"sports_centre",
{
"builtin": "shops",
"override": {
"source": {
"osmTags": "shop=sports"
"osmTags": {
"and": [
"shop=sports"
]
}
},
"presets": [
{
@ -37,10 +42,7 @@
}
],
"minzoom": 12
},
"hideTagRenderingsWithLabels": [
"shop_types"
]
}
}
]
}