Chore: lint themes

This commit is contained in:
Pieter Vander Vennet 2025-03-13 20:08:29 +01:00
parent 1d3e09f2dc
commit 15562f8bc6
11 changed files with 256 additions and 259 deletions

View file

@ -1,8 +1,11 @@
{ {
"id": "building", "id": "building",
"isCounted": false, "name": {
"source": { "en": "Buildings",
"osmTags": "building~*" "ca": "Edificis",
"cy": "Adeiladau",
"de": "Gebäude",
"cs": "Budovy"
}, },
"description": { "description": {
"en": "All buildings", "en": "All buildings",
@ -10,6 +13,20 @@
"de": "Alle Gebäude", "de": "Alle Gebäude",
"cs": "Všechny budovy" "cs": "Všechny budovy"
}, },
"source": {
"osmTags": "building~*"
},
"isCounted": false,
"minzoom": 18,
"title": {
"render": {
"en": "Building",
"ca": "Edifici",
"cy": "Adeilad",
"de": "Gebäude",
"cs": "Budova"
}
},
"pointRendering": [ "pointRendering": [
{ {
"location": [ "location": [
@ -30,22 +47,6 @@
"width": 1 "width": 1
} }
], ],
"name": {
"en": "Buildings",
"ca": "Edificis",
"cy": "Adeiladau",
"de": "Gebäude",
"cs": "Budovy"
},
"title": {
"render": {
"en": "Building",
"ca": "Edifici",
"cy": "Adeilad",
"de": "Gebäude",
"cs": "Budova"
}
},
"tagRenderings": [ "tagRenderings": [
{ {
"id": "architecture", "id": "architecture",
@ -406,7 +407,6 @@
}, },
"address.address" "address.address"
], ],
"minzoom": 18,
"allowMove": { "allowMove": {
"enableRelocation": false, "enableRelocation": false,
"enableImproveAccuracy": true "enableImproveAccuracy": true

View file

@ -9,7 +9,15 @@
"es": "Puntos de carga", "es": "Puntos de carga",
"uk": "Зарядні станції" "uk": "Зарядні станції"
}, },
"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": { "source": {
"osmTags": { "osmTags": {
"and": [ "and": [
@ -24,6 +32,7 @@
] ]
} }
}, },
"minzoom": 10,
"title": { "title": {
"render": { "render": {
"en": "Charging station", "en": "Charging station",
@ -81,16 +90,117 @@
} }
] ]
}, },
"description": { "pointRendering": [
"en": "A charging station", {
"nl": "Oplaadpunten", "location": [
"ca": "Una estació de càrrega", "point",
"cs": "Nabíjecí stanice", "centroid"
"de": "Eine Ladestation", ],
"es": "Un punto de carga", "marker": [
"fr": "Une station de recharge" {
}, "icon": "pin",
"#": "no-question-hint-check", "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",
"ca": "Estació de càrrega de bicicletes elèctriques",
"cs": "nabíjecí stanice pro elektrokola",
"de": "Ladestation für Elektrofahrräder",
"es": "punto de carga para bicicletas eléctricas",
"uk": "зарядна станція для електровелосипедів"
}
},
{
"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",
"uk": "зарядна станція для автомобілів"
}
}
],
"tagRenderings": [ "tagRenderings": [
"images", "images",
{ {
@ -3252,117 +3362,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",
"ca": "Estació de càrrega de bicicletes elèctriques",
"cs": "nabíjecí stanice pro elektrokola",
"de": "Ladestation für Elektrofahrräder",
"es": "punto de carga para bicicletas eléctricas",
"uk": "зарядна станція для електровелосипедів"
}
},
{
"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",
"uk": "зарядна станція для автомобілів"
}
}
],
"filter": [ "filter": [
{ {
"id": "vehicle-type", "id": "vehicle-type",
@ -3685,6 +3684,19 @@
] ]
} }
], ],
"deletion": {
"softDeletionTags": {
"and": [
"amenity=",
"disused:amenity=charging_station"
]
},
"neededChangesets": 10
},
"allowMove": {
"enableRelocation": false,
"enableImproveAccuracy": true
},
"units": [ "units": [
{ {
"maxstay": { "maxstay": {
@ -3879,17 +3891,5 @@
} }
} }
], ],
"allowMove": { "#": "no-question-hint-check"
"enableRelocation": false, }
"enableImproveAccuracy": true
},
"deletion": {
"softDeletionTags": {
"and": [
"amenity=",
"disused:amenity=charging_station"
]
},
"neededChangesets": 10
}
}

View file

@ -1,6 +1,5 @@
{ {
"id": "cyclestreets", "id": "cyclestreets",
"allowSplit": true,
"name": { "name": {
"nl": "Fietsstraten", "nl": "Fietsstraten",
"en": "Cyclestreets", "en": "Cyclestreets",
@ -22,16 +21,6 @@
"uk": "Велодороги", "uk": "Велодороги",
"ko": "자전거 전용 도로" "ko": "자전거 전용 도로"
}, },
"minzoom": 7,
"source": {
"osmTags": {
"or": [
"cyclestreet=yes",
"bicycle_road=yes"
]
}
},
"isShown": "id~way/.*",
"description": { "description": {
"nl": "Een fietsstraat is een straat waar gemotoriseerd verkeer een fietser niet mag inhalen", "nl": "Een fietsstraat is een straat waar gemotoriseerd verkeer een fietser niet mag inhalen",
"en": "A cyclestreet is a street where motorized traffic is not allowed to overtake a cyclist", "en": "A cyclestreet is a street where motorized traffic is not allowed to overtake a cyclist",
@ -48,7 +37,86 @@
"ko": "자전거 전용 도로는 차량이 자전거를 추월할 수 없는 도로 입니다", "ko": "자전거 전용 도로는 차량이 자전거를 추월할 수 없는 도로 입니다",
"zh_Hant": "單車街道是機動車輛不被允許超車單車" "zh_Hant": "單車街道是機動車輛不被允許超車單車"
}, },
"source": {
"osmTags": {
"or": [
"cyclestreet=yes",
"bicycle_road=yes"
]
}
},
"isShown": "id~way/.*",
"minzoom": 7,
"title": "{name}", "title": "{name}",
"pointRendering": [
{
"marker": [
{
"icon": {
"render": "./assets/themes/cyclestreets/F111.svg",
"mappings": [
{
"if": "traffic_sign=DE:244.1,1020-30",
"then": "./assets/themes/cyclestreets/Zeichen_244_1020-30.svg"
},
{
"if": "traffic_sign=DE:244.1,1022-12,1024-10",
"then": "./assets/themes/cyclestreets/Zeichen_244_KFZ_frei.svg"
},
{
"if": "traffic_sign=DE:244.1,1022-12",
"then": "./assets/themes/cyclestreets/Zeichen_244_1022-12.svg"
},
{
"if": "traffic_sign=DE:244.1,1024-10",
"then": "./assets/themes/cyclestreets/Zeichen_244_1024-10.svg"
},
{
"if": "_country=de",
"then": "./assets/themes/cyclestreets/Zeichen_244.svg"
},
{
"if": "_country=fi",
"then": "./assets/themes/cyclestreets/Finland_road_sign_E28.svg"
}
]
}
}
],
"iconSize": {
"render": "40,40,center",
"mappings": [
{
"if": {
"or": [
"traffic_sign=DE:244.1,1020-30",
"traffic_sign=DE:244.1,1022-12,1024-10"
]
},
"then": "40,62,center"
},
{
"if": {
"or": [
"traffic_sign=DE:244.1,1022-12",
"traffic_sign=DE:244.1,1024-10"
]
},
"then": "40,70,center"
}
]
},
"location": [
"projected_centerpoint"
]
}
],
"lineRendering": [
{
"color": "#0000ff",
"width": "10"
}
],
"tagRenderings": [ "tagRenderings": [
"images", "images",
{ {
@ -445,74 +513,6 @@
} }
} }
], ],
"pointRendering": [ "allowMove": false,
{ "allowSplit": true
"marker": [ }
{
"icon": {
"render": "./assets/themes/cyclestreets/F111.svg",
"mappings": [
{
"if": "traffic_sign=DE:244.1,1020-30",
"then": "./assets/themes/cyclestreets/Zeichen_244_1020-30.svg"
},
{
"if": "traffic_sign=DE:244.1,1022-12,1024-10",
"then": "./assets/themes/cyclestreets/Zeichen_244_KFZ_frei.svg"
},
{
"if": "traffic_sign=DE:244.1,1022-12",
"then": "./assets/themes/cyclestreets/Zeichen_244_1022-12.svg"
},
{
"if": "traffic_sign=DE:244.1,1024-10",
"then": "./assets/themes/cyclestreets/Zeichen_244_1024-10.svg"
},
{
"if": "_country=de",
"then": "./assets/themes/cyclestreets/Zeichen_244.svg"
},
{
"if": "_country=fi",
"then": "./assets/themes/cyclestreets/Finland_road_sign_E28.svg"
}
]
}
}
],
"iconSize": {
"render": "40,40,center",
"mappings": [
{
"if": {
"or": [
"traffic_sign=DE:244.1,1020-30",
"traffic_sign=DE:244.1,1022-12,1024-10"
]
},
"then": "40,62,center"
},
{
"if": {
"or": [
"traffic_sign=DE:244.1,1022-12",
"traffic_sign=DE:244.1,1024-10"
]
},
"then": "40,70,center"
}
]
},
"location": [
"projected_centerpoint"
]
}
],
"lineRendering": [
{
"color": "#0000ff",
"width": "10"
}
],
"allowMove": false
}

View file

@ -1972,4 +1972,4 @@
"cs": "silnice nebo cyklostezka", "cs": "silnice nebo cyklostezka",
"ca": "una carretera o un carril bici" "ca": "una carretera o un carril bici"
} }
} }

View file

@ -518,4 +518,4 @@
"es": "un bordillo", "es": "un bordillo",
"ca": "un kerb" "ca": "un kerb"
} }
} }

View file

@ -517301,4 +517301,4 @@
], ],
"allowMove": false, "allowMove": false,
"#dont-translate": "*" "#dont-translate": "*"
} }

View file

@ -452776,4 +452776,4 @@
], ],
"allowMove": false, "allowMove": false,
"#dont-translate": "*" "#dont-translate": "*"
} }

View file

@ -490,4 +490,4 @@
"enableRelocation": false, "enableRelocation": false,
"enableImproveAccuracy": true "enableImproveAccuracy": true
} }
} }

View file

@ -326,4 +326,4 @@
"enableImproveAccuracy": true, "enableImproveAccuracy": true,
"enableRelocation": true "enableRelocation": true
} }
} }

View file

@ -390,10 +390,10 @@
}, },
"neededChangesets": 1 "neededChangesets": 1
}, },
"credits": "Bastian Greshake Tzovaras",
"credits:uid": 20617622,
"allowMove": { "allowMove": {
"enableImproveAccuracy": true, "enableImproveAccuracy": true,
"enableRelocation": false "enableRelocation": false
} },
"credits": "Bastian Greshake Tzovaras",
"credits:uid": 20617622
} }

View file

@ -9,15 +9,6 @@
"nl": "Wijzigingen gemaakt met MapComplete", "nl": "Wijzigingen gemaakt met MapComplete",
"ko": "MapComplete로 이루어진 변경 사항" "ko": "MapComplete로 이루어진 변경 사항"
}, },
"shortDescription": {
"en": "Shows changes made by MapComplete",
"de": "Zeigt die von MapComplete vorgenommenen Änderungen an",
"cs": "Zobrazuje změny provedené nástrojem MapComplete",
"es": "Muestra los cambios realizados por MapComplete",
"fr": "Afficher les modifications faites avec MapComplete",
"nl": "Toont wijzigingen gemaakt met MapComplete",
"ko": "MapComplete를 통해 이루어진 변경 사항을 표시합니다"
},
"description": { "description": {
"en": "This maps shows all the changes made with MapComplete", "en": "This maps shows all the changes made with MapComplete",
"de": "Diese Karte zeigt alle mit MapComplete vorgenommenen Änderungen", "de": "Diese Karte zeigt alle mit MapComplete vorgenommenen Änderungen",
@ -28,11 +19,17 @@
"nl": "Deze kaarten tonen alle wijzigingen die zijn gemaakt met MapComplete", "nl": "Deze kaarten tonen alle wijzigingen die zijn gemaakt met MapComplete",
"ko": "이 지도는 MapComplete를 사용하여 이루어진 모든 변경 사항을 표시합니다" "ko": "이 지도는 MapComplete를 사용하여 이루어진 모든 변경 사항을 표시합니다"
}, },
"shortDescription": {
"en": "Shows changes made by MapComplete",
"de": "Zeigt die von MapComplete vorgenommenen Änderungen an",
"cs": "Zobrazuje změny provedené nástrojem MapComplete",
"es": "Muestra los cambios realizados por MapComplete",
"fr": "Afficher les modifications faites avec MapComplete",
"nl": "Toont wijzigingen gemaakt met MapComplete",
"ko": "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",