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

Interstate rendering at low zoom levels #1

Closed
ZeLonewolf opened this issue May 20, 2021 · 4 comments
Closed

Interstate rendering at low zoom levels #1

ZeLonewolf opened this issue May 20, 2021 · 4 comments

Comments

@ZeLonewolf
Copy link
Owner

ZeLonewolf commented May 20, 2021

At low zoom levels, the highway network should only show Interstate highways, and not other highway=motorway.
At even lower zoom levels, the highway network should only show Interstate highways that end in a 0 or 5.
At the lowest zoom levels, shield rendering should be suppressed and the route network shown only.

Blocked by #9.

@ZeLonewolf ZeLonewolf added the help wanted Extra attention is needed label May 20, 2021
@ZeLonewolf
Copy link
Owner Author

ZeLonewolf commented May 25, 2021

At low zoom levels, highway-intense locations like New York can be quite cluttered. Suggested zoom levels based on Slack discussions:
Zoom 3-4: 1-2 digit interstates ending in 0/5
Zoom 5-6: all interstates
Zoom 7+: all highway=motorway

@ZeLonewolf
Copy link
Owner Author

To implement this properly, regular expression matching is required in the style layer. We would need to also deal with corner cases which use letters in interstate refs, for example:

  • I-35E and I-35W in Texas should probably be treated as 2-digit interstates
  • I-H* interstates in Hawaii would need to be mapped into this scheme and may be special cases.

For historical background, regex matching has been proposed for quite some time in mapbox-gl-js (mapbox/mapbox-gl-js#4089) but was never resolved. It has not been added to mapLibre.

A plugin has been developed to add regex expressions to mapbox-gl-js (https://github.com/maphubs/mapbox-gl-regex-query) which may be helpful. This library has an attribution requirement which would need to be added.

@ZeLonewolf
Copy link
Owner Author

OpenMapTiles 3.13 will support interstate differentiation (but not 2/3 digit separation).

@ZeLonewolf ZeLonewolf added blocked and removed help wanted Extra attention is needed labels Dec 24, 2021
@ZeLonewolf
Copy link
Owner Author

Fixed in #72

ZeLonewolf pushed a commit that referenced this issue Mar 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants