Themes(charging_station): add charge_point layer

This commit is contained in:
Robin van der Linde 2025-01-10 02:28:31 +01:00
parent b9092b24b8
commit 67b3fb3740
Signed by: Robin-van-der-Linde
GPG key ID: 53956B3252478F0D
4 changed files with 89 additions and 7 deletions

View file

@ -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
}
}

View file

@ -2175,7 +2175,10 @@
"{{key}}~*",
"{{key}}!=0"
]
}
},
"labels": [
"plugs-amount"
]
},
{
"id": "voltage-{{id}}",

View file

@ -244,7 +244,10 @@
"{{key}}~*",
"{{key}}!=0"
]
}
},
"labels": [
"plugs-amount"
]
},
{
"id": "voltage-{{id}}",
@ -1031,4 +1034,4 @@
},
"neededChangesets": 10
}
}
}

View file

@ -62,7 +62,7 @@
},
"icon": "./assets/themes/charging_stations/logo.svg",
"layers": [
"charging_station"
],
"widenFactor": 1.5
}
"charging_station",
"charge_point"
]
}