mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-27 02:12:24 +02:00
Feature Filtering: don't match multipolygon lines as 'others'
(fixes #2548) If the entity is a way that is a member of a parent relation, use that parent relation's matches instead of matching 'other'
This commit is contained in:
@@ -135,6 +135,15 @@ describe('iD.Features', function() {
|
||||
iD.Way({id: 'scrub', tags: {area: 'yes', natural: 'scrub'}, version: 1}),
|
||||
iD.Way({id: 'industrial', tags: {area: 'yes', landuse: 'industrial'}, version: 1}),
|
||||
iD.Way({id: 'parkinglot', tags: {area: 'yes', amenity: 'parking', parking: 'surface'}, version: 1}),
|
||||
iD.Way({id: 'inner', version: 1}),
|
||||
iD.Way({id: 'outer', version: 1}),
|
||||
iD.Relation({id: 'retail', tags: {landuse: 'retail', type: 'multipolygon'},
|
||||
members: [
|
||||
{id: 'outer', role: 'outer', type: 'way'},
|
||||
{id: 'inner', role: 'inner', type: 'way'}
|
||||
],
|
||||
version: 1
|
||||
}),
|
||||
|
||||
// Boundaries
|
||||
iD.Way({id: 'boundary', tags: {boundary: 'administrative'}, version: 1}),
|
||||
@@ -279,7 +288,7 @@ describe('iD.Features', function() {
|
||||
|
||||
doMatch([
|
||||
'forest', 'scrub', 'industrial', 'parkinglot', 'building_no',
|
||||
'rail_landuse', 'landuse_construction'
|
||||
'rail_landuse', 'landuse_construction', 'retail', 'inner', 'outer'
|
||||
]);
|
||||
|
||||
dontMatch([
|
||||
@@ -385,7 +394,7 @@ describe('iD.Features', function() {
|
||||
dontMatch([
|
||||
'point_bar', 'motorway', 'service', 'path', 'building_yes',
|
||||
'forest', 'boundary', 'water', 'railway', 'power_line',
|
||||
'motorway_construction',
|
||||
'motorway_construction', 'retail', 'inner', 'outer'
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user