Chore: lint themes

This commit is contained in:
Pieter Vander Vennet 2025-01-11 01:38:52 +01:00
parent b3af76062e
commit b32f384f38
27 changed files with 431 additions and 431 deletions

View file

@ -14,6 +14,23 @@
"en": "Beehive",
"de": "Bienenstock"
},
"pointRendering": [
{
"location": [
"point",
"centroid"
],
"marker": [
{
"icon": "circle",
"color": "white"
},
{
"icon": "./assets/layers/beehive/beehive.svg"
}
]
}
],
"presets": [
{
"title": {
@ -52,26 +69,9 @@
]
}
],
"pointRendering": [
{
"location": [
"point",
"centroid"
],
"marker": [
{
"icon": "circle",
"color": "white"
},
{
"icon": "./assets/layers/beehive/beehive.svg"
}
]
}
],
"deletion": true,
"allowMove": {
"enableImproveAccuracy": true,
"enableRelocation": true
},
"deletion": true
}
}

View file

@ -22,6 +22,7 @@
]
}
},
"minzoom": 13,
"title": {
"render": {
"en": "Bicycle counter",
@ -31,6 +32,39 @@
"nl": "Fietsteller"
}
},
"pointRendering": [
{
"marker": [
{
"icon": "pin",
"color": "#538EE8"
},
{
"icon": "./assets/layers/bicycle_counter/bicycle_monitoring_station.svg"
}
],
"location": [
"point",
"centroid"
],
"anchor": "bottom"
}
],
"presets": [
{
"title": {
"en": "a bicycle counter",
"cs": "počítadlo jízdních kol",
"de": "eine Fahrradzählstelle",
"es": "un contador de bicicletas",
"nl": "een fietsteller"
},
"tags": [
"man_made=monitoring_station",
"monitoring:bicycle=yes"
]
}
],
"tagRenderings": [
"images",
{
@ -237,42 +271,8 @@
}
}
],
"pointRendering": [
{
"marker": [
{
"icon": "pin",
"color": "#538EE8"
},
{
"icon": "./assets/layers/bicycle_counter/bicycle_monitoring_station.svg"
}
],
"location": [
"point",
"centroid"
],
"anchor": "bottom"
}
],
"minzoom": 13,
"deletion": true,
"allowMove": {
"enableImproveAccuracy": true
},
"deletion": true,
"presets": [
{
"title": {
"en": "a bicycle counter",
"cs": "počítadlo jízdních kol",
"de": "eine Fahrradzählstelle",
"es": "un contador de bicicletas",
"nl": "een fietsteller"
},
"tags": [
"man_made=monitoring_station",
"monitoring:bicycle=yes"
]
}
]
}

View file

@ -340,7 +340,6 @@
"tagRenderings": [
"shops.*"
],
"#filter": "no-auto",
"filter": [
{
"id": "sells_second-hand",
@ -390,6 +389,7 @@
},
"open_now"
],
"#filter": "no-auto",
"deletion": true,
"allowMove": true
}

View file

@ -15,30 +15,6 @@
"en": "Charge point"
}
},
"tagRenderings": [
"images",
{
"id": "ref",
"question": {
"en": "What is the reference number of this charge point?"
},
"freeform": {
"key": "ref",
"placeholder": {
"en": "Reference number of the charge point, e.g. 2126"
}
},
"render": {
"en": "The reference of this charge point is {ref}"
}
},
"charging_station.capacity",
"charging_station.Available_charging_stations (generated)",
"charging_station.plugs-amount",
"questions",
"charging_station.questions-technical",
"charging_station.technical"
],
"pointRendering": [
{
"location": [
@ -70,6 +46,30 @@
}
}
],
"tagRenderings": [
"images",
{
"id": "ref",
"question": {
"en": "What is the reference number of this charge point?"
},
"freeform": {
"key": "ref",
"placeholder": {
"en": "Reference number of the charge point, e.g. 2126"
}
},
"render": {
"en": "The reference of this charge point is {ref}"
}
},
"charging_station.capacity",
"charging_station.Available_charging_stations (generated)",
"charging_station.plugs-amount",
"questions",
"charging_station.questions-technical",
"charging_station.technical"
],
"allowMove": {
"enableImproveAccuracy": true,
"enableRelocation": false

View file

@ -8,7 +8,15 @@
"de": "Ladestationen",
"es": "Puntos de carga"
},
"minzoom": 10,
"description": {
"en": "A charging station",
"nl": "Oplaadpunten",
"ca": "Una estació de càrrega",
"cs": "Nabíjecí stanice",
"de": "Eine Ladestation",
"es": "Un punto de carga",
"fr": "Une station de recharge"
},
"source": {
"osmTags": {
"and": [
@ -23,6 +31,7 @@
]
}
},
"minzoom": 10,
"title": {
"render": {
"en": "Charging station",
@ -71,16 +80,114 @@
}
]
},
"description": {
"en": "A charging station",
"nl": "Oplaadpunten",
"ca": "Una estació de càrrega",
"cs": "Nabíjecí stanice",
"de": "Eine Ladestation",
"es": "Un punto de carga",
"fr": "Une station de recharge"
"pointRendering": [
{
"location": [
"point",
"centroid"
],
"marker": [
{
"icon": "pin",
"color": "#fff"
},
"#": "no-question-hint-check",
{
"icon": {
"render": "./assets/themes/charging_stations/plug.svg",
"mappings": [
{
"if": "bicycle=yes",
"then": "./assets/themes/charging_stations/bicycle.svg"
},
{
"if": {
"or": [
"car=yes",
"motorcar=yes"
]
},
"then": "./assets/themes/charging_stations/car.svg"
}
]
}
}
],
"iconBadges": [
{
"if": {
"or": [
"disused:amenity=charging_station",
"operational_status=broken"
]
},
"then": "close:#c22;"
},
{
"if": {
"or": [
"proposed:amenity=charging_station",
"planned:amenity=charging_station"
]
},
"then": "./assets/layers/charging_station/under_construction.svg"
},
{
"if": {
"and": [
"bicycle=yes",
{
"or": [
"motorcar=yes",
"car=yes"
]
}
]
},
"then": "circle:#fff;./assets/themes/charging_stations/car.svg"
}
],
"anchor": "bottom",
"iconSize": "50,50"
}
],
"lineRendering": [
{
"color": "black",
"width": 2,
"fillColor": "#80808080"
}
],
"presets": [
{
"tags": [
"amenity=charging_station",
"motorcar=no",
"bicycle=yes"
],
"title": {
"en": "charging station for electrical bikes",
"nl": "oplaadpunt voor elektrische fietsen",
"cs": "nabíjecí stanice pro elektrokola",
"de": "Ladestation für Elektrofahrräder",
"es": "punto de carga para bicicletas eléctricas"
}
},
{
"tags": [
"amenity=charging_station",
"motorcar=yes",
"bicycle=no"
],
"title": {
"en": "charging station for cars",
"nl": "oplaadstation voor elektrische auto's",
"ca": "estació de càrrega per a cotxes",
"cs": "nabíjecí stanice pro auta",
"de": "Ladestation für Autos",
"es": "punto de carga para coches"
}
}
],
"tagRenderings": [
"images",
{
@ -2990,114 +3097,6 @@
}
}
],
"lineRendering": [
{
"color": "black",
"width": 2,
"fillColor": "#80808080"
}
],
"pointRendering": [
{
"location": [
"point",
"centroid"
],
"marker": [
{
"icon": "pin",
"color": "#fff"
},
{
"icon": {
"render": "./assets/themes/charging_stations/plug.svg",
"mappings": [
{
"if": "bicycle=yes",
"then": "./assets/themes/charging_stations/bicycle.svg"
},
{
"if": {
"or": [
"car=yes",
"motorcar=yes"
]
},
"then": "./assets/themes/charging_stations/car.svg"
}
]
}
}
],
"iconBadges": [
{
"if": {
"or": [
"disused:amenity=charging_station",
"operational_status=broken"
]
},
"then": "close:#c22;"
},
{
"if": {
"or": [
"proposed:amenity=charging_station",
"planned:amenity=charging_station"
]
},
"then": "./assets/layers/charging_station/under_construction.svg"
},
{
"if": {
"and": [
"bicycle=yes",
{
"or": [
"motorcar=yes",
"car=yes"
]
}
]
},
"then": "circle:#fff;./assets/themes/charging_stations/car.svg"
}
],
"anchor": "bottom",
"iconSize": "50,50"
}
],
"presets": [
{
"tags": [
"amenity=charging_station",
"motorcar=no",
"bicycle=yes"
],
"title": {
"en": "charging station for electrical bikes",
"nl": "oplaadpunt voor elektrische fietsen",
"cs": "nabíjecí stanice pro elektrokola",
"de": "Ladestation für Elektrofahrräder",
"es": "punto de carga para bicicletas eléctricas"
}
},
{
"tags": [
"amenity=charging_station",
"motorcar=yes",
"bicycle=no"
],
"title": {
"en": "charging station for cars",
"nl": "oplaadstation voor elektrische auto's",
"ca": "estació de càrrega per a cotxes",
"cs": "nabíjecí stanice pro auta",
"de": "Ladestation für Autos",
"es": "punto de carga para coches"
}
}
],
"filter": [
{
"id": "vehicle-type",
@ -3385,6 +3384,19 @@
]
}
],
"deletion": {
"softDeletionTags": {
"and": [
"amenity=",
"disused:amenity=charging_station"
]
},
"neededChangesets": 10
},
"allowMove": {
"enableRelocation": false,
"enableImproveAccuracy": true
},
"units": [
{
"maxstay": {
@ -3579,17 +3591,5 @@
}
}
],
"allowMove": {
"enableRelocation": false,
"enableImproveAccuracy": true
},
"deletion": {
"softDeletionTags": {
"and": [
"amenity=",
"disused:amenity=charging_station"
]
},
"neededChangesets": 10
}
"#": "no-question-hint-check"
}

View file

@ -36,6 +36,7 @@
]
}
},
"isCounted": false,
"minzoom": 18,
"title": {
"render": {
@ -163,6 +164,5 @@
"es": "una pared, un acantilado o una roca",
"cs": "zeď, útes nebo skála",
"nl": "een muur, klif of rots"
},
"isCounted": false
}
}

View file

@ -47,6 +47,9 @@
]
}
},
"calculatedTags": [
"width:= ! ! (feat.properties['width:carriageway']) ? feat.properties['width:carriageway'] : feat.properties['width'] "
],
"minzoom": 16,
"title": {
"render": {
@ -273,9 +276,6 @@
"width": "8"
}
],
"calculatedTags": [
"width:= ! ! (feat.properties['width:carriageway']) ? feat.properties['width:carriageway'] : feat.properties['width'] "
],
"tagRenderings": [
"images",
{

View file

@ -1,5 +1,25 @@
{
"credits": "Robin van der Linde",
"id": "cyclist_waiting_aid",
"name": {
"en": "Cyclist Waiting Aids",
"de": "Radfahrer-Wartehilfen",
"es": "Ayudas a la espera de ciclistas"
},
"description": {
"en": "Various pieces of infrastructure that aid cyclists while they wait at a traffic light.",
"de": "Verschiedene Infrastruktureinrichtungen, die Radfahrern helfen, während sie an einer Ampel warten.",
"es": "Diversas infraestructuras que ayudan a los ciclistas mientras esperan en un semáforo."
},
"source": {
"osmTags": "highway=cyclist_waiting_aid"
},
"title": {
"render": {
"en": "Cyclist Waiting Aid",
"de": "Radfahrer-Wartehilfe",
"es": "Ayuda para ciclistas en espera"
}
},
"pointRendering": [
{
"location": [
@ -18,6 +38,32 @@
"anchor": "bottom"
}
],
"lineRendering": [
{
"width": 1,
"color": "blue"
}
],
"presets": [
{
"title": {
"en": "a cyclist waiting aid",
"de": "eine Radfahrer-Wartehilfe",
"es": "un ciclista espera ayuda"
},
"tags": [
"highway=cyclist_waiting_aid"
],
"description": {
"en": "A footrest, handrail or other aid, to improve comfort while waiting at traffic lights",
"de": "Eine Fußstütze, ein Handlauf oder ein anderes Hilfsmittel zur Verbesserung des Komforts beim Warten an der Ampel",
"es": "Reposapiés, pasamanos u otro tipo de ayuda para mejorar la comodidad durante la espera en los semáforos"
},
"snapToLayer": [
"cycleways_and_roads"
]
}
],
"tagRenderings": [
"images",
{
@ -111,34 +157,6 @@
}
}
],
"lineRendering": [
{
"width": 1,
"color": "blue"
}
],
"credits:uid": 5093765,
"id": "cyclist_waiting_aid",
"description": {
"en": "Various pieces of infrastructure that aid cyclists while they wait at a traffic light.",
"de": "Verschiedene Infrastruktureinrichtungen, die Radfahrern helfen, während sie an einer Ampel warten.",
"es": "Diversas infraestructuras que ayudan a los ciclistas mientras esperan en un semáforo."
},
"source": {
"osmTags": "highway=cyclist_waiting_aid"
},
"name": {
"en": "Cyclist Waiting Aids",
"de": "Radfahrer-Wartehilfen",
"es": "Ayudas a la espera de ciclistas"
},
"title": {
"render": {
"en": "Cyclist Waiting Aid",
"de": "Radfahrer-Wartehilfe",
"es": "Ayuda para ciclistas en espera"
}
},
"deletion": {
"softDeletionTags": {
"and": [
@ -155,24 +173,6 @@
}
},
"allowMove": false,
"presets": [
{
"title": {
"en": "a cyclist waiting aid",
"de": "eine Radfahrer-Wartehilfe",
"es": "un ciclista espera ayuda"
},
"tags": [
"highway=cyclist_waiting_aid"
],
"description": {
"en": "A footrest, handrail or other aid, to improve comfort while waiting at traffic lights",
"de": "Eine Fußstütze, ein Handlauf oder ein anderes Hilfsmittel zur Verbesserung des Komforts beim Warten an der Ampel",
"es": "Reposapiés, pasamanos u otro tipo de ayuda para mejorar la comodidad durante la espera en los semáforos"
},
"snapToLayer": [
"cycleways_and_roads"
]
}
]
"credits": "Robin van der Linde",
"credits:uid": 5093765
}

View file

@ -1,13 +1,9 @@
{
"id": "ghostsign",
"title": {
"render": {
"en": "Ghost Sign",
"name": {
"en": "Ghost Signs",
"de": "Geisterzeichen",
"es": "Letrero fantasma",
"ca": "Rètols fantasma",
"cs": "Nápisy na zdech"
}
"es": "Letreros fantasma"
},
"description": {
"en": "Layer showing disused signs on buildings",
@ -16,11 +12,6 @@
"ca": "Capa que mostra rètols en desús dels edificis",
"cs": "Vrstva zobrazující nepoužívané nápisy na budovách"
},
"name": {
"en": "Ghost Signs",
"de": "Geisterzeichen",
"es": "Letreros fantasma"
},
"source": {
"osmTags": {
"and": [
@ -30,11 +21,53 @@
}
},
"minzoom": 10,
"#allowMove": "Normally, a ghost sign is snapped to a wall, so moving won't be possible in most cases, but might still be useful e.g. to snap to a building",
"allowMove": {
"enableImproveAccuracy": true,
"enableRelocation": false
"title": {
"render": {
"en": "Ghost Sign",
"de": "Geisterzeichen",
"es": "Letrero fantasma",
"ca": "Rètols fantasma",
"cs": "Nápisy na zdech"
}
},
"pointRendering": [
{
"location": [
"point",
"centroid"
],
"marker": [
{
"icon": "./assets/themes/advertising/wall_painting.svg"
}
]
}
],
"lineRendering": [
{
"color": "blue",
"width": 2
}
],
"presets": [
{
"tags": [
"historic=advertising",
"advertising=wall_painting"
],
"title": {
"en": "a ghost sign",
"de": "ein Geisterzeichen",
"es": "un letrero fantasma",
"ca": "un rètol fantasma",
"cs": "nápis na zdi"
},
"snapToLayer": [
"walls_and_buildings"
],
"maxSnapDistance": 5
}
],
"tagRenderings": [
"images",
"advertising.historic",
@ -96,42 +129,9 @@
}
}
],
"lineRendering": [
{
"color": "blue",
"width": 2
}
],
"pointRendering": [
{
"location": [
"point",
"centroid"
],
"marker": [
{
"icon": "./assets/themes/advertising/wall_painting.svg"
}
]
}
],
"presets": [
{
"tags": [
"historic=advertising",
"advertising=wall_painting"
],
"title": {
"en": "a ghost sign",
"de": "ein Geisterzeichen",
"es": "un letrero fantasma",
"ca": "un rètol fantasma",
"cs": "nápis na zdi"
"allowMove": {
"enableImproveAccuracy": true,
"enableRelocation": false
},
"snapToLayer": [
"walls_and_buildings"
],
"maxSnapDistance": 5
}
]
"#allowMove": "Normally, a ghost sign is snapped to a wall, so moving won't be possible in most cases, but might still be useful e.g. to snap to a building"
}

View file

@ -17,6 +17,19 @@
"en": "Insect Hotel",
"nl": "Insectenhotel"
},
"pointRendering": [
{
"location": [
"point",
"centroid"
],
"marker": [
{
"icon": "./assets/layers/insect_hotel/insect_hotel.svg"
}
]
}
],
"presets": [
{
"title": {
@ -31,22 +44,9 @@
"tagRenderings": [
"images"
],
"pointRendering": [
{
"location": [
"point",
"centroid"
],
"marker": [
{
"icon": "./assets/layers/insect_hotel/insect_hotel.svg"
}
]
}
],
"deletion": true,
"allowMove": {
"enableImproveAccuracy": true,
"enableRelocation": true
},
"deletion": true
}
}

View file

@ -1,10 +1,9 @@
{
"#dont-translate": "*",
"id": "nsi_brand",
"source": "special:library",
"description": {
"en": "Exposes part of the NSI to reuse in other themes, e.g. for rendering"
},
"source": "special:library",
"pointRendering": null,
"tagRenderings": [
{
@ -569060,5 +569059,6 @@
]
}
],
"allowMove": false
"allowMove": false,
"#dont-translate": "*"
}

View file

@ -1,10 +1,9 @@
{
"#dont-translate": "*",
"id": "nsi_operator",
"source": "special:library",
"description": {
"en": "Exposes part of the NSI to reuse in other themes, e.g. for rendering"
},
"source": "special:library",
"pointRendering": null,
"tagRenderings": [
{
@ -604541,5 +604540,6 @@
]
}
],
"allowMove": false
"allowMove": false,
"#dont-translate": "*"
}

View file

@ -48,21 +48,6 @@
"cs": "Poštovní schránka"
}
},
"keywords": {
"en": [
"post",
"post box",
"letter",
"letterbox"
],
"nl": [
"brieven",
"post",
"brief",
"brievenbus",
"pakjes"
]
},
"pointRendering": [
{
"iconSize": {
@ -176,5 +161,20 @@
"allowMove": {
"enableImproveAccuracy": true,
"enableRelocation": false
},
"keywords": {
"en": [
"post",
"post box",
"letter",
"letterbox"
],
"nl": [
"brieven",
"post",
"brief",
"brievenbus",
"pakjes"
]
}
}

View file

@ -8,24 +8,6 @@
},
"source": "special",
"title": "{display_name}",
"tagRenderings": [
{
"id": "intro",
"render": {
"en": "Search result",
"de": "Suchergebnis",
"cs": "Výsledek hledání",
"es": "Resultado de búsqueda"
}
},
{
"id": "osm",
"render": {
"*": "<a href='https://openstreetmap.org/{osm_type}/{osm_id}'>On OpenStreetMap</a>"
}
},
"all_tags"
],
"pointRendering": [
{
"location": [
@ -68,5 +50,23 @@
"label": "{display_name}",
"labelCssClasses": "bg-white rounded p-2 no-wrap"
}
],
"tagRenderings": [
{
"id": "intro",
"render": {
"en": "Search result",
"de": "Suchergebnis",
"cs": "Výsledek hledání",
"es": "Resultado de búsqueda"
}
},
{
"id": "osm",
"render": {
"*": "<a href='https://openstreetmap.org/{osm_type}/{osm_id}'>On OpenStreetMap</a>"
}
},
"all_tags"
]
}

View file

@ -11,29 +11,11 @@
"source": {
"osmTags": "information=tactile_map"
},
"minzoom": 10,
"title": {
"en": "Tactile Map",
"de": "Taktile Karte"
},
"presets": [
{
"tags": [
"tourism=information",
"information=tactile_map"
],
"title": {
"en": "a tactile map",
"de": "eine taktile Karte"
},
"description": {
"en": "A tactile map that can be read using touch. Unlike a tactile model, this is relatively flat and does not feature three-dimensional buildings and such.",
"de": "Eine taktile Karte, die durch Berühren gelesen werden kann. Im Gegensatz zu einem taktilen Modell ist diese Karte relativ flach und enthält keine dreidimensionalen Gebäude oder ähnliches."
}
}
],
"deletion": true,
"allowMove": true,
"minzoom": 10,
"pointRendering": [
{
"marker": [
@ -51,6 +33,22 @@
]
}
],
"presets": [
{
"tags": [
"tourism=information",
"information=tactile_map"
],
"title": {
"en": "a tactile map",
"de": "eine taktile Karte"
},
"description": {
"en": "A tactile map that can be read using touch. Unlike a tactile model, this is relatively flat and does not feature three-dimensional buildings and such.",
"de": "Eine taktile Karte, die durch Berühren gelesen werden kann. Im Gegensatz zu einem taktilen Modell ist diese Karte relativ flach und enthält keine dreidimensionalen Gebäude oder ähnliches."
}
}
],
"tagRenderings": [
"images",
{
@ -162,5 +160,7 @@
}
},
"website"
]
],
"deletion": true,
"allowMove": true
}

View file

@ -11,10 +11,24 @@
"source": {
"osmTags": "information=tactile_model"
},
"minzoom": 10,
"title": {
"en": "Tactile Model",
"de": "Taktiles Modell"
},
"pointRendering": [
{
"marker": [
{
"icon": "./assets/layers/tactile_model/tactile_model.svg"
}
],
"location": [
"point",
"centroid"
]
}
],
"presets": [
{
"tags": [
@ -31,22 +45,6 @@
}
}
],
"deletion": true,
"allowMove": true,
"minzoom": 10,
"pointRendering": [
{
"marker": [
{
"icon": "./assets/layers/tactile_model/tactile_model.svg"
}
],
"location": [
"point",
"centroid"
]
}
],
"tagRenderings": [
"images",
{
@ -176,5 +174,7 @@
}
},
"website"
]
],
"deletion": true,
"allowMove": true
}

View file

@ -26,10 +26,10 @@
]
}
},
"minzoom": 13,
"calculatedTags": [
"_vending_count=feat.properties.vending.split(';').length"
],
"minzoom": 13,
"title": {
"render": {
"en": "Vending machine",