-
Notifications
You must be signed in to change notification settings - Fork 56
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
Concurrent highway shields #6
Comments
Post-processing code would need to either split the way Achieving a grid-like layout in the Mapbox Style Specification language may be difficult:
The existing shield renderers display concurrent route shields in a grid either out of convenience or because it looks similar to sign assemblies on the road. However, it leads to ambiguities: In my opinion, it’s also unsightly to have two shields hanging off a north–south bridge: In my opinion, the shields should be strung out along the line instead of grouped into a horizontal row or cluster. This is the approach both Google Maps and Apple Maps take, though they’re pretty inconsistent about it. Another possibility is to combine shields. Conventionally, American paper maps combine concurrent routes of the same network into a single shield with two or three numbers stacked vertically: The Mapbox Streets source also combines shields, but it does so with an interpunct instead of a line break because originally Mapbox GL couldn’t handle line breaks in text labels: mapbox/mapbox-gl-js#955. This leads to unsightly, extra-wide Interstate shields (though the wide U.S. Route shields do look kind of snazzy): |
The following render samples show an initial implementation of grouped highway shields, in which the shields are placed along the route. The vector tile implementation for these samples is based on a custom OpenMapTiles implementation of exposed route concurrencies, as described in openmaptiles/openmaptiles#1128 The styling is done with a formatted expression, which generates composite image IDs based on the route network and ref:
Lastly, a Additional work is needed on the renderer side in order to get images in the formatted expression to be viewport-aligned rather than LineString-aligned. |
just fyi, at https://zelonewolf.github.io/openstreetmap-americana/#map=10.83/39.9769/-78.2036/27.2/6 (source: https://rhodesmill.org/thefox/maps.html - is: https://rhodesmill.org/thefox/maps/at3.jpg , left-center) |
It is an occasional technique used for expressing concurrencies. However, after research into the different methods used in American cartography, we settled on the snake pattern style. |
For roads which share multiple routes, it is desirable to show grouped shields at higher zooms. This is consistent with highway shield groupings on American road signs.
Real-world examples of group signs:
![image](https://user-images.githubusercontent.com/3254090/118997400-a3b7f480-b956-11eb-9291-a61a51296c80.png)
Depends on #5
The text was updated successfully, but these errors were encountered: