Small improvements to the charging station theme, don't update tagging of new features if they are selected

This commit is contained in:
Pieter Vander Vennet 2021-10-14 20:31:04 +02:00
parent fea020956a
commit 7e053b3ada
4 changed files with 3655 additions and 3681 deletions

View file

@ -47,6 +47,11 @@ export default class SelectedElementTagsUpdater {
return; return;
} }
if(id.indexOf("-") >= 0){
// This is a new object
return;
}
OsmObject.DownloadPropertiesOf(id).then(tags => { OsmObject.DownloadPropertiesOf(id).then(tags => {
SelectedElementTagsUpdater.applyUpdate(state, tags, id) SelectedElementTagsUpdater.applyUpdate(state, tags, id)
}).catch(e => { }).catch(e => {

File diff suppressed because it is too large Load diff

View file

@ -37,9 +37,6 @@
"ru": "Зарядная станция", "ru": "Зарядная станция",
"zh_Hant": "充電站" "zh_Hant": "充電站"
}, },
"calculatedTags": [
"motorcar=feat.properties.motorcar ?? feat.properties.car"
],
"tagRenderings": [ "tagRenderings": [
"images", "images",
{ {
@ -58,13 +55,7 @@
}, },
{ {
"if": "motorcar=yes", "if": "motorcar=yes",
"extraTags": "car=", "ifnot": "motorcar=no",
"ifnot": {
"and": [
"car=",
"motorcar=no"
]
},
"then": { "then": {
"en": "<b>Cars</b> can be charged here" "en": "<b>Cars</b> can be charged here"
} }
@ -212,7 +203,7 @@
"if": "authentication:none=yes", "if": "authentication:none=yes",
"ifnot": "authentication:none=no", "ifnot": "authentication:none=no",
"then": { "then": {
"en": "No authentication is needed" "en": "Charging here is (also) possible without authentication"
} }
} }
] ]

View file

@ -1040,7 +1040,7 @@
"then": "Authentication via debit card is available" "then": "Authentication via debit card is available"
}, },
"7": { "7": {
"then": "No authentication is needed" "then": "Charging here is (also) possible without authentication"
} }
}, },
"question": "What kind of authentication is available at the charging station?" "question": "What kind of authentication is available at the charging station?"