Skip to content

Commit

Permalink
bus_stop zoom off by 1 [#163] (#176)
Browse files Browse the repository at this point in the history
* allow for POIs that have a display minZoom of >15 [#163]

* formatting
  • Loading branch information
bdon authored Nov 9, 2023
1 parent 23a4bb3 commit a37d807
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tiles/src/main/java/com/protomaps/basemap/layers/Pois.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public void processFeature(SourceFeature sf, FeatureCollector features) {
kind = sf.getString("tourism");
minZoom = 15;
} else if (sf.hasTag("highway", "bus_stop")) {
minZoom = 18;
minZoom = 17;
} else {
// Avoid problem of too many "other" kinds
// All these will default to min_zoom of 15
Expand Down Expand Up @@ -523,7 +523,7 @@ public void processFeature(SourceFeature sf, FeatureCollector features) {
.setAttr("cuisine", sf.getString("cuisine"))
.setAttr("religion", sf.getString("religion"))
.setAttr("sport", sf.getString("sport"))
.setZoomRange(minZoom, 15)
.setZoomRange(Math.min(minZoom, 15), 15)
.setBufferPixels(128);

// Core Tilezen schema properties
Expand Down

0 comments on commit a37d807

Please sign in to comment.