Skip to content

Commit

Permalink
reduce forest landcover min zoom to 7 (onthegomap#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
msbarry authored Apr 14, 2022
1 parent 0312928 commit 7631199
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public void process(Tables.OsmLandcoverPolygon element, FeatureCollector feature
.setAttr(Fields.CLASS, clazz)
.setAttr(Fields.SUBCLASS, subclass)
.setNumPointsAttr(TEMP_NUM_POINTS_ATTR)
.setMinZoom(WOOD_OR_FOREST.contains(subclass) ? 9 : 7);
.setMinZoom(7);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public void testOsmLandcover() {
"class", "wood",
"_minpixelsize", 8d,
"_numpointsattr", "_numpoints",
"_minzoom", 9,
"_minzoom", 7,
"_maxzoom", 14
)), process(polygonFeature(Map.of(
"natural", "wood"
Expand All @@ -115,7 +115,7 @@ public void testOsmLandcover() {
"subclass", "forest",
"class", "wood",
"_minpixelsize", 8d,
"_minzoom", 9,
"_minzoom", 7,
"_maxzoom", 14
)), process(polygonFeature(Map.of(
"landuse", "forest"
Expand Down

0 comments on commit 7631199

Please sign in to comment.