Allow tourism=artwork on line geometry

And when used on a line, silence `tag_suggests_area` warning
(closes #5206)
This commit is contained in:
Bryan Housel
2018-08-05 23:37:06 -04:00
parent 2e6799ac60
commit 184e37253c
5 changed files with 37 additions and 4 deletions
+5 -1
View File
@@ -12,7 +12,11 @@ export function validationTagSuggestsArea() {
var presence = ['landuse', 'amenities', 'tourism', 'shop'];
for (var i = 0; i < presence.length; i++) {
if (tags[presence[i]] !== undefined) {
return presence[i] + '=' + tags[presence[i]];
if (presence[i] === 'tourism' && tags[presence[i]] === 'artwork') {
continue; // exception for tourism=artwork - #5206
} else {
return presence[i] + '=' + tags[presence[i]];
}
}
}