protomaps / basemaps

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

Disconnected roads at zooms < 6 #213

Open dnomadb opened 8 months ago

dnomadb commented 8 months ago

Location https://maps.protomaps.com/#map=5.5/42.624/-90.609&theme=light&renderer=maplibregl&tiles=https://build.protomaps.com/20240131.pmtiles

Screenshots

image image

Required information

nvkelso commented 8 months ago

If we could detect these are part of bigger road relations, we could bring the missing pieces (that aren't motorways) earlier?

bdon commented 8 months ago

Yeah, I think highway relations are the only way to solve this, because right now it's using a naive interpretation of highway=motorway to generalize. A approach similar to what we're doing with minAdminLevel in the boundaries layer could work.

wipfli commented 8 months ago

The ref tag in OSM can also help maybe. At least would for A2 which turns from highway=motorway to highway=trunk in the Gotthard tunnel in Switzerland... https://maps.protomaps.com/#map=9.47/46.6034/8.6464&theme=light&renderer=maplibregl&tiles=https://build.protomaps.com/20240131.pmtiles