mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-19 09:33:32 +00:00
Avoid barriers as well
This commit is contained in:
@@ -124,7 +124,12 @@ iD.Way.isClosed = function(d) {
|
||||
iD.Way.isArea = function(d) {
|
||||
return (d.tags.area && d.tags.area === 'yes') ||
|
||||
(iD.Way.isClosed(d) &&
|
||||
(!d.tags.area || d.tags.area === 'no') && !d.tags.highway);
|
||||
// area-ness is disabled
|
||||
(!d.tags.area || d.tags.area !== 'no') &&
|
||||
// Tags that disable area-ness unless they are accompanied by
|
||||
// area=yes
|
||||
!d.tags.highway &&
|
||||
!d.tags.barrier);
|
||||
};
|
||||
|
||||
iD.Relation = function(attrs) {
|
||||
|
||||
Reference in New Issue
Block a user