diff --git a/State.ts b/State.ts
index aac2795a6b..c2fb00c3e2 100644
--- a/State.ts
+++ b/State.ts
@@ -23,7 +23,7 @@ export default class State {
// The singleton of the global state
public static state: State;
- public static vNumber = "0.1.1a";
+ public static vNumber = "0.1.1b";
// The user journey states thresholds when a new feature gets unlocked
public static userJourney = {
diff --git a/UI/Popup/TagRendering.ts b/UI/Popup/TagRendering.ts
index 1f76e0e183..ad4d7826e3 100644
--- a/UI/Popup/TagRendering.ts
+++ b/UI/Popup/TagRendering.ts
@@ -504,7 +504,7 @@ export class TagRendering extends UIElement implements TagDependantUIElement {
return answer.SetStyle(answerStyle);
}
-
+ console.error("Invalid tagrendering: fallthrough",this)
return new FixedUiElement("");
}
diff --git a/assets/themes/charging_stations/charging_stations.json b/assets/themes/charging_stations/charging_stations.json
index 1728d242e9..9db9fea315 100644
--- a/assets/themes/charging_stations/charging_stations.json
+++ b/assets/themes/charging_stations/charging_stations.json
@@ -41,6 +41,96 @@
"en": "A charging station"
},
"tagRenderings": [
+ {
+ "#": "Type",
+ "mappings": [
+ {
+ "if": "bicycle=yes",
+ "then": "This is a charging station for bicycles"
+ },
+ {
+ "if": "motorcar=yes",
+ "then": "This is a charging station for electric vehicles"
+ }
+ ]
+ },
+ {
+ "#": "capacity",
+ "render": "{capacity} vehicles can be charged here",
+ "freeform": {
+ "key": "capacity",
+ "type": "pnat"
+ }
+ },
+ {
+ "#": "Authentication",
+ "multiAnswer": true,
+ "mappings": [
+ {
+ "if": "authentication:membership_card=yes",
+ "then": "Authentication by a membership card"
+ },
+ {
+ "if": "authentication:app=yes",
+ "then": "Authentication by an app"
+ },
+ {
+ "if": "authentication:phone_call=yes",
+ "then": "Authentication via phone call is available"
+ },
+ {
+ "if": "authentication:short_message=yes",
+ "then": "Authentication via phone call is available"
+ },
+ {
+ "if": "authentication:nfc=yes",
+ "then": "Authentication via NFC is available"
+ },
+ {
+ "if": "authentication:money_card=yes",
+ "then": "Authentication via Money Card is available"
+ },
+ {
+ "if": "authentication:debig=yes",
+ "then": "Authentication via debit card is available"
+ },
+ {
+ "if": "authentication:none=yes",
+ "then": "No authentication is needed"
+ }
+ ]
+ },
+ {
+ "#": "Auth phone",
+ "render": "Authenticate by calling or SMS'ing to {authentication:phone_call:number}",
+ "freeform": {
+ "key": "authentication:phone_call:number",
+ "type": "phone"
+ },
+ "condition": {
+ "or": [
+ "authentication:phone_call=yes",
+ "authentication:short_message=yes"
+ ]
+ }
+ },
+ {
+ "#": "OH",
+ "render": "{opening_hours_table(opening_hours)}",
+ "freeform": {
+ "key": "opening_hours",
+ "type": "opening_hours"
+ },
+ "question": {
+ "en": "When is this charging station opened?"
+ },
+ "mappings": [
+ {
+ "if": "opening_hours=24/7",
+ "then": "24/7 opened (including holidays)"
+ }
+ ]
+ },
{
"#": "Network",
"render": {
@@ -94,23 +184,6 @@
}
}
]
- },
- {
- "#": "OH",
- "render": "{opening_hours_table(opening_hours)}",
- "freeform": {
- "key": "opening_hours",
- "type": "opening_hours"
- },
- "question": {
- "en": "When is this charging station opened?"
- },
- "mappings": [
- {
- "if": "opening_hours=24/7",
- "then": "24/7 opened (including holidays)"
- }
- ]
}
],
"hideUnderlayingFeaturesMinPercentage": 0,
@@ -126,7 +199,14 @@
"color": {
"render": "#00f"
},
- "presets": [],
+ "presets": [
+ {
+ "tags": [
+ "amenity=charging_station"
+ ],
+ "title": "Charging station"
+ }
+ ],
"wayHandling": 1
}
],