From e4219e0e52c2b47d063e199240237e88f4b6fc77 Mon Sep 17 00:00:00 2001 From: HeikoGr Date: Sat, 29 Apr 2023 12:02:05 +0200 Subject: [PATCH] Filter old tracks (#35) * Update Transit.java filter for razed, demolished and removed railways * Update Roads.java filter for abandoned, razed, demolished and removed --- tiles/src/main/java/com/protomaps/basemap/layers/Roads.java | 2 +- tiles/src/main/java/com/protomaps/basemap/layers/Transit.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tiles/src/main/java/com/protomaps/basemap/layers/Roads.java b/tiles/src/main/java/com/protomaps/basemap/layers/Roads.java index c699f307..b60c07db 100644 --- a/tiles/src/main/java/com/protomaps/basemap/layers/Roads.java +++ b/tiles/src/main/java/com/protomaps/basemap/layers/Roads.java @@ -21,7 +21,7 @@ public String name() { @Override public void processFeature(SourceFeature sourceFeature, FeatureCollector features) { if (sourceFeature.canBeLine() && sourceFeature.hasTag("highway") && - !(sourceFeature.hasTag("highway", "proposed", "construction"))) { + !(sourceFeature.hasTag("highway", "proposed", "abandoned", "razed", "demolished", "removed", "construction"))) { String highway = sourceFeature.getString("highway"); var feat = features.line("roads") .setId(FeatureId.create(sourceFeature)) diff --git a/tiles/src/main/java/com/protomaps/basemap/layers/Transit.java b/tiles/src/main/java/com/protomaps/basemap/layers/Transit.java index 01a639f7..d21ae9d7 100644 --- a/tiles/src/main/java/com/protomaps/basemap/layers/Transit.java +++ b/tiles/src/main/java/com/protomaps/basemap/layers/Transit.java @@ -22,7 +22,7 @@ public void processFeature(SourceFeature sf, FeatureCollector features) { sf.hasTag("aerialway", "cable_car") || sf.hasTag("route", "ferry") || sf.hasTag("aeroway", "runway", "taxiway")) && - (!sf.hasTag("railway", "abandoned", "construction", "platform", "proposed"))) { + (!sf.hasTag("railway", "abandoned", "razed", "demolished", "removed", "construction", "platform", "proposed"))) { int minzoom = 11;