Chore: lint themes

This commit is contained in:
Pieter Vander Vennet 2024-08-23 17:19:33 +02:00
parent 22a7a14880
commit 3b8cb7def0
3 changed files with 185 additions and 188 deletions

View file

@ -5,7 +5,13 @@
"nl": "Oplaadpunten", "nl": "Oplaadpunten",
"de": "Ladestationen" "de": "Ladestationen"
}, },
"minzoom": 10, "description": {
"en": "A charging station",
"nl": "Oplaadpunten",
"ca": "Una estació de càrrega",
"de": "Eine Ladestation",
"fr": "Une station de recharge"
},
"source": { "source": {
"osmTags": { "osmTags": {
"and": [ "and": [
@ -20,6 +26,7 @@
] ]
} }
}, },
"minzoom": 10,
"title": { "title": {
"render": { "render": {
"en": "Charging station", "en": "Charging station",
@ -65,14 +72,109 @@
} }
] ]
}, },
"description": { "pointRendering": [
"en": "A charging station", {
"nl": "Oplaadpunten", "location": [
"ca": "Una estació de càrrega", "point",
"de": "Eine Ladestation", "centroid"
"fr": "Une station de recharge" ],
}, "marker": [
"#": "no-question-hint-check", {
"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"
}
],
"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",
"de": "Ladestation für Elektrofahrräder"
}
},
{
"tags": [
"amenity=charging_station",
"motorcar=yes",
"bicycle=no"
],
"title": {
"en": "charging station for cars",
"nl": "oplaadstation voor elektrische auto's",
"de": "Ladestation für Autos"
}
}
],
"tagRenderings": [ "tagRenderings": [
"images", "images",
{ {
@ -2778,109 +2880,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",
"de": "Ladestation für Elektrofahrräder"
}
},
{
"tags": [
"amenity=charging_station",
"motorcar=yes",
"bicycle=no"
],
"title": {
"en": "charging station for cars",
"nl": "oplaadstation voor elektrische auto's",
"de": "Ladestation für Autos"
}
}
],
"filter": [ "filter": [
{ {
"id": "vehicle-type", "id": "vehicle-type",
@ -3128,6 +3127,19 @@
] ]
} }
], ],
"deletion": {
"softDeletionTags": {
"and": [
"amenity=",
"disused:amenity=charging_station"
]
},
"neededChangesets": 10
},
"allowMove": {
"enableRelocation": false,
"enableImproveAccuracy": true
},
"units": [ "units": [
{ {
"maxstay": { "maxstay": {
@ -3322,17 +3334,5 @@
} }
} }
], ],
"allowMove": { "#": "no-question-hint-check"
"enableRelocation": false, }
"enableImproveAccuracy": true
},
"deletion": {
"softDeletionTags": {
"and": [
"amenity=",
"disused:amenity=charging_station"
]
},
"neededChangesets": 10
}
}

View file

@ -1,5 +1,61 @@
{ {
"id": "cycle_highways", "id": "cycle_highways",
"name": {
"en": "cycle highways",
"de": "Radschnellwege",
"ca": "vies ciclistes",
"fr": "Aménagements cyclables",
"nl": "fietssnelwegen",
"es": "autovías ciclistas",
"nb_NO": "sykkelmotorveier",
"da": "cykelmotorveje",
"pa_PK": "سائیکل‌وے",
"cs": "cyklodálnice",
"pl": "ścieżki rowerowe",
"it": "strade per biciclette",
"zh_Hant": "單車高速公路"
},
"source": {
"osmTags": "cycle_network=BE-VLG:cycle_highway"
},
"isCounted": false,
"minzoom": 6,
"title": {
"render": {
"en": "cycle highway",
"de": "Radschnellweg",
"ca": "via ciclista",
"fr": "Aménagement cyclable",
"nl": "fietssnelweg",
"es": "autovía ciclista",
"nb_NO": "sykkelmotorvei",
"da": "cykelmotorvej",
"pa_PK": "سائیکل‌وے",
"cs": "cyklodálnice",
"pl": "ścieżka rowerowa",
"it": "strada per bicilette",
"zh_Hant": "單車高速公路"
}
},
"pointRendering": null,
"lineRendering": [
{
"color": {
"render": "#ff7392",
"mappings": [
{
"if": "state=",
"then": "#00acfc"
},
{
"if": "state=temporary",
"then": "#00acfc"
}
]
},
"width": "4"
}
],
"tagRenderings": [ "tagRenderings": [
{ {
"render": "The name is <b>{name}</b>", "render": "The name is <b>{name}</b>",
@ -69,42 +125,6 @@
"website", "website",
"all_tags" "all_tags"
], ],
"name": {
"en": "cycle highways",
"de": "Radschnellwege",
"ca": "vies ciclistes",
"fr": "Aménagements cyclables",
"nl": "fietssnelwegen",
"es": "autovías ciclistas",
"nb_NO": "sykkelmotorveier",
"da": "cykelmotorveje",
"pa_PK": "سائیکل‌وے",
"cs": "cyklodálnice",
"pl": "ścieżki rowerowe",
"it": "strade per biciclette",
"zh_Hant": "單車高速公路"
},
"source": {
"osmTags": "cycle_network=BE-VLG:cycle_highway"
},
"minzoom": 6,
"title": {
"render": {
"en": "cycle highway",
"de": "Radschnellweg",
"ca": "via ciclista",
"fr": "Aménagement cyclable",
"nl": "fietssnelweg",
"es": "autovía ciclista",
"nb_NO": "sykkelmotorvei",
"da": "cykelmotorvej",
"pa_PK": "سائیکل‌وے",
"cs": "cyklodálnice",
"pl": "ścieżka rowerowa",
"it": "strada per bicilette",
"zh_Hant": "單車高速公路"
}
},
"filter": [ "filter": [
{ {
"id": "name-alt", "id": "name-alt",
@ -192,25 +212,5 @@
} }
] ]
} }
],
"pointRendering": null,
"isCounted": false,
"lineRendering": [
{
"color": {
"render": "#ff7392",
"mappings": [
{
"if": "state=",
"then": "#00acfc"
},
{
"if": "state=temporary",
"then": "#00acfc"
}
]
},
"width": "4"
}
] ]
} }

View file

@ -3,17 +3,14 @@
"title": { "title": {
"en": "Changes made with MapComplete" "en": "Changes made with MapComplete"
}, },
"shortDescription": {
"en": "Shows changes made by MapComplete"
},
"description": { "description": {
"en": "This maps shows all the changes made with MapComplete" "en": "This maps shows all the changes made with MapComplete"
}, },
"shortDescription": {
"en": "Shows changes made by MapComplete"
},
"icon": "./assets/svg/logo.svg", "icon": "./assets/svg/logo.svg",
"hideFromOverview": true, "hideFromOverview": true,
"startLat": 0,
"startLon": 0,
"startZoom": 1,
"layers": [ "layers": [
{ {
"id": "mapcomplete-changes", "id": "mapcomplete-changes",