protomaps / basemaps

Basemap PMTiles generation and cartographic styles for OpenStreetMap data and more
https://maps.protomaps.com/
Other
347 stars 44 forks source link

Poor low-zoom generalization of linear water features comprised of areas #198

Closed bdon closed 8 months ago

bdon commented 9 months ago

Location https://maps.protomaps.com/#tiles=https://build.protomaps.com/20231225.pmtiles&map=7.96/4.732/-74.904&theme=light&renderer=maplibregl

Screenshots

Screenshot 2024-01-01 at 16 10 25

The key issue here is our area filter around zooms 6-8. A polygon feature for water will become close to 0 area. If that's filtered out and represents the width of river, we get discontinuous rivers like in the above screenshot. Our possible solutions:

  1. Use Natural Earth to a deeper zoom level, but this won't have enough detail.
  2. Make the area filter more lenient, but this will also increase tile size by adding in more isolated small lakes.
  3. Continue with roughly the same area threshold but start visualizing centerlines from zoom 6 instead of zoom 9. This will eliminate the discontinuous areal rivers, as long as there's a centerline mapped in OSM. This will also increase the tile size.

Also investigating a polygon merge + area filter as a better solution.

@makella @nvkelso

bdon commented 8 months ago

This affects London (Thames) as well