Do not overwrite existing *=no tags by a preset's addTags

This commit is contained in:
Martin Raifer
2022-05-24 14:18:17 +02:00
parent 67bd692bc0
commit 2ca52e75ce
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -56,6 +56,7 @@ _Breaking developer changes, which may affect downstream projects or sites that
* Use value of `vehicle` tag as placeholder value of `access` fields for `motor_vehicle` and `bicycle`
* Render `golf` features `tee`, `fairway`, `rough` and `green` in green color and using a grass pattern ([#8927])
* Tweak preset-matching to penalize non-searchable presets when matching OSM objects to presets
* Do not overwrite existing `*=no` tags by a preset's `addTags`
#### Other
* Redact more API tokens from custom imagery sources in changeset metadata tags ([#8976], thanks [@k-yle])
#### :hammer: Development
+1 -1
View File
@@ -207,7 +207,7 @@ export function presetPreset(presetID, preset, addable, allFields, allPresets) {
for (let k in addTags) {
if (addTags[k] === '*') {
// if this tag is ancillary, don't override an existing value since any value is okay
if (_this.tags[k] || !tags[k] || tags[k] === 'no') {
if (_this.tags[k] || !tags[k]) {
tags[k] = 'yes';
}
} else {