mirror of
https://github.com/FoggedLens/iD.git
synced 2026-06-01 04:31:36 +02:00
Add feature filters for pistes and aerialways
This commit is contained in:
@@ -141,7 +141,8 @@ export function rendererFeatures(context) {
|
||||
!_rules.buildings.filter(tags) &&
|
||||
!_rules.building_parts.filter(tags) &&
|
||||
!_rules.indoor.filter(tags) &&
|
||||
!_rules.water.filter(tags);
|
||||
!_rules.water.filter(tags) &&
|
||||
!_rules.pistes.filter(tags);
|
||||
});
|
||||
|
||||
defineRule('boundaries', function isBoundary(tags) {
|
||||
@@ -184,6 +185,16 @@ export function rendererFeatures(context) {
|
||||
);
|
||||
});
|
||||
|
||||
defineRule('pistes', function isPiste(tags) {
|
||||
return tags['piste:type'];
|
||||
});
|
||||
|
||||
defineRule('aerialways', function isPiste(tags) {
|
||||
return tags.aerialway &&
|
||||
tags.aerialway !== 'yes' &&
|
||||
tags.aerialway !== 'station';
|
||||
});
|
||||
|
||||
defineRule('power', function isPower(tags) {
|
||||
return !!tags.power;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user