From 67b3fb3740af55172dba647a5a198902ebd27328 Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Fri, 10 Jan 2025 02:28:31 +0100 Subject: [PATCH] Themes(charging_station): add charge_point layer --- assets/layers/charge_point/charge_point.json | 76 +++++++++++++++++++ .../charging_station/charging_station.json | 5 +- .../charging_station.proto.json | 7 +- .../charging_stations/charging_stations.json | 8 +- 4 files changed, 89 insertions(+), 7 deletions(-) create mode 100644 assets/layers/charge_point/charge_point.json diff --git a/assets/layers/charge_point/charge_point.json b/assets/layers/charge_point/charge_point.json new file mode 100644 index 000000000..0f2db2df3 --- /dev/null +++ b/assets/layers/charge_point/charge_point.json @@ -0,0 +1,76 @@ +{ + "id": "charge_point", + "name": { + "en": "Charge points" + }, + "description": { + "en": "Layer showing individual charge points within a charging station" + }, + "source": { + "osmTags": "man_made=charge_point" + }, + "minzoom": 18, + "title": { + "render": { + "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", + "charging_station.questions-technical", + "charging_station.technical" + ], + "pointRendering": [ + { + "location": [ + "point", + "centroid" + ], + "marker": [ + { + "icon": "circle", + "color": "lightblue" + }, + { + "icon": "./assets/themes/charging_stations/plug.svg" + } + ], + "iconSize": "25,25" + } + ], + "presets": [ + { + "title": { + "en": "a charge point" + }, + "tags": [ + "man_made=charge_point" + ], + "description": { + "en": "Add an individual charge point within a larger charging station" + } + } + ], + "allowMove": { + "enableImproveAccuracy": true, + "enableRelocation": false + } +} diff --git a/assets/layers/charging_station/charging_station.json b/assets/layers/charging_station/charging_station.json index 80eef86d4..f308cf6ba 100644 --- a/assets/layers/charging_station/charging_station.json +++ b/assets/layers/charging_station/charging_station.json @@ -2175,7 +2175,10 @@ "{{key}}~*", "{{key}}!=0" ] - } + }, + "labels": [ + "plugs-amount" + ] }, { "id": "voltage-{{id}}", diff --git a/assets/layers/charging_station/charging_station.proto.json b/assets/layers/charging_station/charging_station.proto.json index 7f23bb6ee..13c2edb38 100644 --- a/assets/layers/charging_station/charging_station.proto.json +++ b/assets/layers/charging_station/charging_station.proto.json @@ -244,7 +244,10 @@ "{{key}}~*", "{{key}}!=0" ] - } + }, + "labels": [ + "plugs-amount" + ] }, { "id": "voltage-{{id}}", @@ -1031,4 +1034,4 @@ }, "neededChangesets": 10 } -} \ No newline at end of file +} diff --git a/assets/themes/charging_stations/charging_stations.json b/assets/themes/charging_stations/charging_stations.json index d55dfcf4f..25b22b755 100644 --- a/assets/themes/charging_stations/charging_stations.json +++ b/assets/themes/charging_stations/charging_stations.json @@ -62,7 +62,7 @@ }, "icon": "./assets/themes/charging_stations/logo.svg", "layers": [ - "charging_station" - ], - "widenFactor": 1.5 -} \ No newline at end of file + "charging_station", + "charge_point" + ] +}