Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"combine_below": 15
},
"water_lines_labels": {
"minzoom": 4,
"minzoom": 13,
"maxzoom": 14,
"simplify_below": 14,
"simplify_level": 0.0002,
Expand Down Expand Up @@ -140,8 +140,8 @@
"water_polygons": {
"minzoom": 4,
"maxzoom": 14,
"simplify_below": 14,
"simplify_level": 0.0001,
"simplify_below": 12,
"simplify_level": 0.00015,
"simplify_ratio": 2
},
"ocean": {
Expand All @@ -164,7 +164,7 @@
"write_to": "ocean"
},
"water_polygons_labels": {
"minzoom": 14,
"minzoom": 10,
"maxzoom": 14,
"sort_z_level_ascending": false
},
Expand Down
8 changes: 6 additions & 2 deletions process.lua
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,13 @@ function process_water_polygons(way_area)
Attribute("kind", kind)
AttributeNumeric("way_area", way_area)
ZOrder(way_area)
if Holds("name") then
-- don't show river bodys and drop all small polygons always
if Holds("name") and not is_river and way_area > 2500000 then
-- show water poly labels only if they
-- are very big already
labelmz = math.max(mz, zmin_for_area(50, way_area))
LayerAsCentroid("water_polygons_labels")
MinZoom(14)
MinZoom(labelmz)
Attribute("kind", kind)
AttributeNumeric("way_area", way_area)
ZOrder(way_area)
Expand Down