Chore: lint themes

This commit is contained in:
Pieter Vander Vennet 2024-01-12 23:43:25 +01:00
parent 310c41fd16
commit a571d857d6
6 changed files with 162 additions and 166 deletions

View file

@ -1,17 +1,5 @@
{ {
"id": "bank", "id": "bank",
"description": {
"en": "A financial institution to deposit money",
"de": "Ein Finanzinstitut, um Geld einzuzahlen",
"nl": "Een financiële instelling waar je geld kunt",
"ca": "Una institució financera per a dipositar diners",
"cs": "Finanční instituce pro ukládání peněz",
"he": "מוסד פיננסי להפקדת כסף",
"pl": "Instytucja finansowa pozwalająca wpłacić pieniądze",
"pt_BR": "Um instituição financeira para depositar dinheiro",
"es": "Una institución financiera para depositar dinero",
"pt": "Uma instituição financeira para depositar dinheiro"
},
"name": { "name": {
"en": "Banks", "en": "Banks",
"de": "Banken", "de": "Banken",
@ -26,6 +14,21 @@
"es": "Bancos", "es": "Bancos",
"pt": "Bancos" "pt": "Bancos"
}, },
"description": {
"en": "A financial institution to deposit money",
"de": "Ein Finanzinstitut, um Geld einzuzahlen",
"nl": "Een financiële instelling waar je geld kunt",
"ca": "Una institució financera per a dipositar diners",
"cs": "Finanční instituce pro ukládání peněz",
"he": "מוסד פיננסי להפקדת כסף",
"pl": "Instytucja finansowa pozwalająca wpłacić pieniądze",
"pt_BR": "Um instituição financeira para depositar dinheiro",
"es": "Una institución financiera para depositar dinero",
"pt": "Uma instituição financeira para depositar dinheiro"
},
"source": {
"osmTags": "amenity=bank"
},
"title": { "title": {
"render": "Bank", "render": "Bank",
"mappings": [ "mappings": [
@ -35,9 +38,24 @@
} }
] ]
}, },
"source": { "pointRendering": [
"osmTags": "amenity=bank" {
"marker": [
{
"icon": "circle",
"color": "white"
}, },
{
"icon": "./assets/layers/bank/bank.svg"
}
],
"location": [
"point",
"centroid"
]
}
],
"lineRendering": [],
"tagRenderings": [ "tagRenderings": [
"images", "images",
{ {
@ -127,24 +145,6 @@
] ]
} }
], ],
"pointRendering": [
{
"marker": [
{
"icon": "circle",
"color": "white"
},
{
"icon": "./assets/layers/bank/bank.svg"
}
],
"location": [
"point",
"centroid"
]
}
],
"lineRendering": [],
"deletion": { "deletion": {
"softDeletionTags": "amenity=" "softDeletionTags": "amenity="
} }

View file

@ -5,7 +5,11 @@
"nl": "Oplaadpunten", "nl": "Oplaadpunten",
"de": "Ladestationen" "de": "Ladestationen"
}, },
"minzoom": 10, "description": {
"en": "A charging station",
"nl": "Oplaadpunten",
"de": "Eine Ladestation"
},
"source": { "source": {
"osmTags": { "osmTags": {
"and": [ "and": [
@ -20,6 +24,7 @@
] ]
} }
}, },
"minzoom": 10,
"title": { "title": {
"render": { "render": {
"en": "Charging station", "en": "Charging station",
@ -65,12 +70,103 @@
} }
] ]
}, },
"description": { "pointRendering": [
"en": "A charging station", {
"nl": "Oplaadpunten", "location": [
"de": "Eine Ladestation" "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": [],
"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 Elektrofahrräder"
}
}
],
"tagRenderings": [ "tagRenderings": [
"images", "images",
{ {
@ -2227,103 +2323,6 @@
} }
} }
], ],
"lineRendering": [],
"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 Elektrofahrräder"
}
}
],
"filter": [ "filter": [
{ {
"id": "vehicle-type", "id": "vehicle-type",
@ -2517,6 +2516,20 @@
] ]
} }
], ],
"deletion": {
"softDeletionTags": {
"and": [
"amenity=",
"disused:amenity=charging_station"
]
},
"neededChangesets": 10
},
"allowMove": {
"enableRelocation": false,
"enableImproveAccuracy": true
},
"#": "no-question-hint-check",
"units": [ "units": [
{ {
"maxstay": { "maxstay": {
@ -2665,18 +2678,5 @@
] ]
} }
} }
],
"allowMove": {
"enableRelocation": false,
"enableImproveAccuracy": true
},
"deletion": {
"softDeletionTags": {
"and": [
"amenity=",
"disused:amenity=charging_station"
] ]
},
"neededChangesets": 10
}
} }

View file

@ -40,12 +40,12 @@
] ]
} }
}, },
"minzoom": 12,
"calculatedTags": [ "calculatedTags": [
"_closest_other_drinking_water=closestn(feat)('drinking_water', 1, undefined, 5000).map(f => ({id: f.feat.id, distance: ''+f.distance}))[0]", "_closest_other_drinking_water=closestn(feat)('drinking_water', 1, undefined, 5000).map(f => ({id: f.feat.id, distance: ''+f.distance}))[0]",
"_closest_other_drinking_water_id=get(feat)('_closest_other_drinking_water')?.id", "_closest_other_drinking_water_id=get(feat)('_closest_other_drinking_water')?.id",
"_closest_other_drinking_water_distance=Math.floor(Number(get(feat)('_closest_other_drinking_water')?.distance))" "_closest_other_drinking_water_distance=Math.floor(Number(get(feat)('_closest_other_drinking_water')?.distance))"
], ],
"minzoom": 12,
"title": { "title": {
"render": { "render": {
"en": "Drinking water", "en": "Drinking water",

View file

@ -4,6 +4,8 @@
"en": "Library layer with all common units. Units can _only_ be imported from this file." "en": "Library layer with all common units. Units can _only_ be imported from this file."
}, },
"source": "special:library", "source": "special:library",
"pointRendering": null,
"lineRendering": null,
"units": [ "units": [
{ {
"quantity": "power", "quantity": "power",
@ -378,7 +380,5 @@
} }
] ]
} }
], ]
"pointRendering": null,
"lineRendering": null
} }

View file

@ -22,7 +22,6 @@
"startZoom": 9, "startZoom": 9,
"startLat": 51.0249, "startLat": 51.0249,
"startLon": 4.026489, "startLon": 4.026489,
"defaultBackgroundId": "osm", "defaultBackgroundId": "osm",
"credits": [ "credits": [
"Pieter Vander Vennet" "Pieter Vander Vennet"

View file

@ -3,19 +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,
"widenFactor": 0.05,
"clustering": false,
"layers": [ "layers": [
{ {
"id": "mapcomplete-changes", "id": "mapcomplete-changes",
@ -655,5 +650,7 @@
] ]
} }
} }
] ],
"widenFactor": 0.05,
"clustering": false
} }