From 53e760437cde0cd1582700f136a9921f5d5e2157 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Tue, 14 Jun 2022 18:43:35 +0200 Subject: [PATCH] Add charging stations to cyclofix theme --- assets/themes/cyclofix/cyclofix.json | 55 +++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/assets/themes/cyclofix/cyclofix.json b/assets/themes/cyclofix/cyclofix.json index 125500d9b..4b0e03237 100644 --- a/assets/themes/cyclofix/cyclofix.json +++ b/assets/themes/cyclofix/cyclofix.json @@ -50,6 +50,59 @@ "drinking_water", "bike_themed_object", "bike_cleaning", - "bike_parking" + "bike_parking", + { + "builtin": [ + "charging_station" + ], + "override": { + "id": "charging_station_ebikes", + "minzoom": 14, + "source": { + "osmTags": { + "and+": [ + "bicycle=yes" + ] + } + }, + "filter": null, + "=mapRendering": [ + { + "location": [ + "point", + "centroid" + ], + "icon": "./assets/themes/toerisme_vlaanderen/charging_station_ebike.svg" + } + ], + "=presets": [ + { + "tags": [ + "amenity=charging_station", + "motorcar=no", + "bicycle=yes" + ], + "title": { + "nl": "laadpunt voor elektrische fietsen" + }, + "preciseInput": { + "preferredBackground": "map" + } + } + ] + } + }, + { + "#": "All charging stations at a high zoom level, to avoid duplicates", + "builtin": "charging_station", + "override": { + "name": null, + "filter": { + "sameAs": "charging_station_ebike" + }, + "minzoom": 18, + "=presets": [] + } + } ] } \ No newline at end of file