mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Allow values in addTags to blacklist tags from implying a way should be an area (close #6800)
This commit is contained in:
@@ -134,15 +134,14 @@ export function presetIndex(context) {
|
||||
|
||||
// blacklist
|
||||
presets.forEach(function(d) {
|
||||
for (var key in d.tags) break;
|
||||
if (!key) return;
|
||||
if (ignore.indexOf(key) !== -1) return;
|
||||
|
||||
var value = d.tags[key];
|
||||
if (key in areaKeys && // probably an area...
|
||||
d.geometry.indexOf('line') !== -1 && // but sometimes a line
|
||||
value !== '*') {
|
||||
areaKeys[key][value] = true;
|
||||
for (var key in d.addTags) {
|
||||
// examine all addTags to get a better sense of what can be tagged on lines - #6800
|
||||
var value = d.addTags[key];
|
||||
if (key in areaKeys && // probably an area...
|
||||
d.geometry.indexOf('line') !== -1 && // but sometimes a line
|
||||
value !== '*') {
|
||||
areaKeys[key][value] = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user