-
Notifications
You must be signed in to change notification settings - Fork 66
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
Render traffic signals #795
Comments
They are not in OMT, so a corresponding ticket should be logged at https://github.com/openmaptiles/openmaptiles |
I've submitted an issue there to add |
Along with traffic signals I'd like to see stop signs as well. For both signals and stop signs these may be mapped as a single node at the road intersection or as separate nodes on each approach at the location of the stop-bar marking. I'd think that placing the icons at the mapped location would be fine in either case, rather than trying to coalesce the intersection details into a single point. |
In that case, the style should only show traffic signals at zoom levels where the four signals at an intersection wouldn’t mostly collide each other out, leaving only one signal awkwardly offset from the intersection. This would be a great use case for clustering, but GL JS only supports clustering in GeoJSON sources. Perhaps the clustering can happen on the server side. |
Server side clustering should be feasible, my only concern would be whether it looks right if the centroid of the cluster isn't dead center in the intersection. |
That’s true. Some routing engines such as OSRM might have code for making the mapping style more consistent for traffic signals and stop signs. If they rewrite traffic signals from the intersection to the incoming ways, we could go in the other direction. |
Opened a new issue to track stop signs: #796. The exact considerations for things like zoom level and coalescing nodes will likely be different between the two anyways, so it's good to have two issues beyond the OMT discussion. I'm definitely in favor of rendering both signals and stop signs in this style. |
Traffic signals are a key part of the road landscape, and it's important for road users using a variety of modes to know which intersections have them. Many city-wide road maps omit them, but smaller-scope neighborhood-level maps can show them. So they would be nice to render at high zoom levels, maybe z>16.
I think the icons should probably be black, which would match the road outlines. The Carto icons are quite oval, which seems very European to me; an American icon would probably be rectangular, as on the road sign:
I think it would be pretty cute to have the red-yellow-green light coloration in the icon, but I'm not sure whether that's stylistically desirable. It would run afoul of the runtime styling implemented in #776, though signals are in a sense more part of the road than part of the POI class anyways.
It might not be possible to nicely implement signal icons currently because roads at high zoom are very thin. Thicker roads which better match the physical width, as suggested in #372, would better accommodate signals and other potential icons that would lie in the roadway, like crosswalks or stop signs.
Unfortunately, I think traffic signals do not currently appear in the OMT tiles.
The text was updated successfully, but these errors were encountered: