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 living street with 20km/h speed limit color by default. #518

Merged
merged 1 commit into from
Feb 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Fix ford on node not rendered #508.
* Use blue shared cycle path for bus/cycle lane #356.
* Add bicycle leisure track for areas.
* Render living street with 20km/h color by default #238.


## v0.4
Expand Down
36 changes: 18 additions & 18 deletions roads.mss
Original file line number Diff line number Diff line change
Expand Up @@ -3063,20 +3063,20 @@
[zoom>=17] { line-width: @rdz17_living_street; }
[zoom>=18] { line-width: @rdz18_living_street; }

line-color: @standard-fill;
#tunnel { line-color: lighten(@standard-fill, 10%); }
[maxspeed_kmh < 33] {
line-color: @speed32-fill;
#tunnel { line-color: lighten(@speed32-fill, 10%); }
}
[maxspeed_kmh < 21] {
line-color: @speed20-fill;
#tunnel { line-color: lighten(@speed20-fill, 10%); }
}
line-color: @speed20-fill;
#tunnel { line-color: lighten(@speed20-fill, 10%); }
[maxspeed_kmh < 10] {
line-color: @speedWalk-fill;
#tunnel { line-color: lighten(@speedWalk-fill, 10%); }
}
[maxspeed_kmh >= 21] {
line-color: @speed32-fill;
#tunnel { line-color: lighten(@speed32-fill, 10%); }
}
[maxspeed_kmh >= 33] {
line-color: @standard-fill;
#tunnel { line-color: lighten(@standard-fill, 10%); }
}
[motor_vehicle='no'][can_bicycle!='no'] {
line-color: @nomotor-fill;
#tunnel { line-color: lighten(@nomotor-fill, 10%); }
Expand Down Expand Up @@ -3134,17 +3134,17 @@

line-color: @pedestrian-fill;
#tunnel { line-color: lighten(@pedestrian-fill, 10%); }
[maxspeed_kmh < 33] {
[maxspeed_kmh >= 10] {
line-color: @speed20-fill;
#tunnel { line-color: lighten(@speed20-fill, 10%); }
}
[maxspeed_kmh >= 21] {
line-color: @speed32-fill;
#tunnel { line-color: lighten(@speed32-fill, 10%); }
}
[maxspeed_kmh < 21] {
line-color: @speed20-fill;
#tunnel { line-color: lighten(@speed20-fill, 10%); }
}
[maxspeed_kmh < 10] {
line-color: @speedWalk-fill;
#tunnel { line-color: lighten(@speedWalk-fill, 10%); }
[maxspeed_kmh >= 33] {
line-color: @standard-fill;
#tunnel { line-color: lighten(@standard-fill, 10%); }
}
// [motor_vehicle='no'][can_bicycle!='no'][type!='pedestrian'] { //Keep pedestrian color even if motor is forbidden.
// line-color: @nomotor-fill;
Expand Down