Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Major road minzoom #221

Open
wipfli opened this issue Feb 26, 2024 · 3 comments
Open

Major road minzoom #221

wipfli opened this issue Feb 26, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@wipfli
Copy link
Collaborator

wipfli commented Feb 26, 2024

In many development countries the fastest roads are of type major_road. However, such roads show only up starting from z6 and more. Motorways would usually be shown at z3 to z6 but if a country has no motorways, the map looks very empty at these zoom levels.

Example: Tanzania at z4.5 looks like this:

Screenshot_20240227-032838

While Switzerland at z4.5 looks like this:
Screenshot_20240227-032821

@nvkelso
Copy link
Collaborator

nvkelso commented Feb 27, 2024

A few solutions (there are probably more):

  • Brute force: Show non-motorway roads earlier, at expense of clutter in more developed countries and large file size increases in same tile areas.
  • Algo: Calculate directions between major cities shown at the next zoom (or zoom +2) using that "next" zoom's place nodes and OSM road network and show the deduplicated way results (to reduce tile size) at the current zoom, regardless of the highway class, while preserving the highway tag so motorways versus non-motorway could optionally be styled distinctly. This should ideally be done per data release but in practice happens one-off and then can go stale with bit rot and operational decay.
  • Curation: Switch to Natural Earth for low zoom roads from OSM. While this would provide coverage and not be too big a tile size incrase, downside is the roads there in NE v5 are out of date and don't match up geometry wise on zoom in to OSM zooms. However, NE v6 is around 50% done redrawing the roads to solve that problem. Overtime the curation would need to be updated.

@wipfli
Copy link
Collaborator Author

wipfli commented Feb 27, 2024

What about a per-country minzoom? For example in Switzerland I am happy with trunk at z6, but in Tanzania I would prefer trunk already at z3. This of course leads to some questions about styling...

@nvkelso
Copy link
Collaborator

nvkelso commented Feb 27, 2024

What about a per-country minzoom? For example in Switzerland I am happy with trunk at z6, but in Tanzania I would prefer trunk already at z3. This of course leads to some questions about styling...

That can work well for clusters of countries that all have the same network pattern (eg trunk versus motorway more common as highest functional class in the country). It works less well if a more developed country is next to a less developed country and the roads might appear to start/stop at country boundaries because different threshold were used. In Europe this could be observed between Germany and Poland and Poland and Ukraine. In Africa this might add extra road detail in say Egypt and South Africa but overall improve the whole continent (a collection of countries with a localized config enabled).

It could be a good interim approach, but is blocked here in Protomaps basemap repo by #44. Now that the NL.net grant is active this may be a priority @bdon?

@nvkelso nvkelso added the enhancement New feature or request label Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants