openstreetmap / iD

🆔 The easy-to-use OpenStreetMap editor in JavaScript.
https://www.openstreetmap.org/edit?editor=id
ISC License
3.38k stars 1.21k forks source link

fix erroneous `mismatched_geometry` warning for preset-less tags #10523

Open k-yle opened 2 weeks ago

k-yle commented 2 weeks ago

Closes #10522

There is no preset for disused:waterway=security_lock, so it matches the fallback presets (called "Line" and "Area"). But these two presets have different tags ({} vs { area: 'yes' }) which caused the bug.

This edge-case only occurs when the tag has a lifecycle prefix, because the preset for waterway=* does not affect features with a lifecycle preset.