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

Road class and bridge/junction disambiguation #184

Merged
merged 3 commits into from
Feb 22, 2022
Merged

Conversation

adamfranco
Copy link
Collaborator

@adamfranco adamfranco commented Feb 21, 2022

This PR disambiguates highway (#84) levels by always showing primary and lower highways with either dark or light treatments rather than a mix of both. The current dark/light switch happens at z15, but it could be changed earlier or later.

Additionally, the dark treatment from highways changes from from using the fill layer to draw "strokes" (without a casing layer) to always drawing both the casing and fill layers, but using a light casing with dark fill and a dark casing with light fill at the different zooms of primary and down. This partially or fully addresses #169 by allowing the the dark treatment's lighter casing to disambiguate between junctions and bridges/overpasses.

LA (localhost, demo)
Screen Shot 2022-02-21 at 3 48 00 PM

We may still wish to add additional rails as suggested in #169 , but the dark-style highway rendering used at the lower zooms is now not as problematic.

Another potential direction opened up by this change is using the dark style for all zooms and not switching to light at all, but that can be left for a future PR.

Clarifies the relative imporance of roads at all zooms (#84). As primary 
and lower roads all use the same style at a given zoom, their relative 
widths are now the indicator of their relative importance.
Low-zoom "stroke" rendering is now handled as a dark fill with thin 
light casing. At high zooms the color pallet flips to light fill.

This addresses the bridge layering challenge noted in #169 by always 
using casing for all highways. Even without extra bridge rails, the 
light casing allows viewers to distinguish overlaps versus junctions in 
"stroke" style.
@adamfranco
Copy link
Collaborator Author

LA before:
la before

LA after:
la after

Copy link
Member

@1ec5 1ec5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the hairline casing works really well for distinguishing roads from each other. We’ll have to keep an eye on how it interacts with other backgrounds for landuse, but for now I’m not even worried about how it looks over water, because it’s thin enough to look like a normal road casing without appearing to be the color of land.

Copy link
Member

@ZeLonewolf ZeLonewolf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Styling over water seems OK as an initial step. I'm glad to have everything switch at a common zoom level, this is definitely an improvement.

image

@adamfranco adamfranco merged commit 9cf8039 into main Feb 22, 2022
@adamfranco adamfranco deleted the road-disambiguation branch February 22, 2022 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants