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

Render unpaved roads differently #5967

Open
pastk opened this issue Sep 7, 2023 · 3 comments
Open

Render unpaved roads differently #5967

pastk opened this issue Sep 7, 2023 · 3 comments
Labels
Enhancement New feature or request, an improvement of some existing feature Styles Map drawing styles

Comments

@pastk
Copy link
Contributor

pastk commented Sep 7, 2023

Especially for vehicle navigation mode its important to visually hint the driver that a road is unpaved / bad surface quality.

There was an attempt to do it already, in data/styles/vehicle/include/Roads.mapcss there is:

line|z14[psurface=unpaved_good],
line|z14[psurface=unpaved_bad]
{width: 1.4;dashes: 2,1.35;}

The idea was to draw a dashed line on top of the main road line if a feature has psurface-unpaved_good/bad type (its a specially processed type that combines smoothness and surface tags).

ATM its effectively disabled. To enable increase psurface-unpaved_good/bad line priorities to be higher than highways' and change their color to something more visible on white.

It needs some experimenting with line's color, thickness and dash pattern to be usable and look good when applied to different road types. I think in some countries (e.g. Mongolia) even major primary/trunk roads (colored orange) could be unpaved.

@pastk pastk added Enhancement New feature or request, an improvement of some existing feature Styles Map drawing styles labels Sep 7, 2023
@RedAuburn
Copy link
Sponsor Member

RedAuburn commented Sep 9, 2023

image

I really like the faint grain that Carto recently added (link to PR), not sure how possible it would be to implement though

@pastk
Copy link
Contributor Author

pastk commented Dec 24, 2023

There was an attempt to do it already, in data/styles/vehicle/include/Roads.mapcss there is:

line|z14[psurface=unpaved_good],
line|z14[psurface=unpaved_bad]
{width: 1.4;dashes: 2,1.35;}

In the current form it lead to bugs, see

So we need a better approach.

@pastk
Copy link
Contributor Author

pastk commented Dec 25, 2023

Probably the same mechanism should be used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request, an improvement of some existing feature Styles Map drawing styles
Projects
None yet
Development

No branches or pull requests

2 participants