Skip to content

Commit 57d05cc

Browse files
committed
fix: missing minZoom on towns
On towns with a population, it would fall back to the default places zoom of 7. This sets a mininum of 8, similar to other place types. Also sets fallback population of cities to 50k instead of 5k ref #507
1 parent c52a6fb commit 57d05cc

File tree

1 file changed

+5
-1
lines changed
  • tiles/src/main/java/com/protomaps/basemap/layers

1 file changed

+5
-1
lines changed

tiles/src/main/java/com/protomaps/basemap/layers/Places.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,11 @@ public Places(CountryCoder countryCoder) {
9090
rule(
9191
with("place", "city"),
9292
without("population"),
93-
use("population", 5000),
93+
use("population", 50000),
94+
use("minZoom", 8)
95+
),
96+
rule(
97+
with("place", "town"),
9498
use("minZoom", 8)
9599
),
96100
rule(

0 commit comments

Comments
 (0)