mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-22 00:07:03 +02:00
Merge pull request #6352 from tordans/filder-for-building-part-and-indoor
Add filter building:part and indoor
This commit is contained in:
@@ -120,7 +120,6 @@ export function rendererFeatures(context) {
|
||||
|
||||
defineRule('buildings', function isBuilding(tags) {
|
||||
return (
|
||||
!!tags['building:part'] ||
|
||||
(!!tags.building && tags.building !== 'no') ||
|
||||
tags.parking === 'multi-storey' ||
|
||||
tags.parking === 'sheds' ||
|
||||
@@ -129,6 +128,14 @@ export function rendererFeatures(context) {
|
||||
);
|
||||
}, 250);
|
||||
|
||||
defineRule('building_parts', function isBuildingPart(tags) {
|
||||
return tags['building:part'];
|
||||
});
|
||||
|
||||
defineRule('indoor', function isIndoor(tags) {
|
||||
return tags.indoor;
|
||||
});
|
||||
|
||||
defineRule('landuse', function isLanduse(tags, geometry) {
|
||||
return geometry === 'area' &&
|
||||
!_rules.buildings.filter(tags) &&
|
||||
|
||||
Reference in New Issue
Block a user