From b7f1048d3c35aa7533e256c5bd6c8b8362d0837c Mon Sep 17 00:00:00 2001 From: Eike Send Date: Tue, 31 Oct 2023 19:55:23 +0100 Subject: [PATCH] Adds bus stops to POIs (#164) * Adds bus_stop to pois * Set minZoom for "highway: bus_stop" * bus_stop to 18 (not 16) And fold logic into main if/else block --------- Co-authored-by: Nathaniel V. KELSO --- tiles/src/main/java/com/protomaps/basemap/layers/Pois.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tiles/src/main/java/com/protomaps/basemap/layers/Pois.java b/tiles/src/main/java/com/protomaps/basemap/layers/Pois.java index ba1ed6f8..173e2937 100644 --- a/tiles/src/main/java/com/protomaps/basemap/layers/Pois.java +++ b/tiles/src/main/java/com/protomaps/basemap/layers/Pois.java @@ -51,6 +51,7 @@ public void processFeature(SourceFeature sf, FeatureCollector features) { sf.hasTag("leisure") || sf.hasTag("natural", "beach") || sf.hasTag("railway", "station") || + sf.hasTag("highway", "bus_stop") || sf.hasTag("shop") || sf.hasTag("tourism") && (!sf.hasTag("historic", "district")))) { @@ -113,6 +114,8 @@ public void processFeature(SourceFeature sf, FeatureCollector features) { } else if (sf.hasTag("tourism", "attraction", "camp_site", "hotel")) { kind = sf.getString("tourism"); minZoom = 15; + } else if (sf.hasTag("highway", "bus_stop")) { + minZoom = 18; } else { // Avoid problem of too many "other" kinds // All these will default to min_zoom of 15 @@ -134,6 +137,8 @@ public void processFeature(SourceFeature sf, FeatureCollector features) { kind = sf.getString("natural"); } else if (sf.hasTag("railway")) { kind = sf.getString("railway"); + } else if (sf.hasTag("highway")) { + kind = sf.getString("highway"); } else if (sf.hasTag("shop")) { kind = sf.getString("shop"); } else if (sf.hasTag("tourism")) {