-
Notifications
You must be signed in to change notification settings - Fork 819
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
Add Shading for places defined as areas #2806
Changes from 3 commits
86265a9
72413ae
ee933f1
fae4611
0453820
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -227,6 +227,25 @@ | |
[way_pixels >= 64] { polygon-gamma: 0.3; } | ||
} | ||
|
||
[feature = 'place_village'], | ||
[feature = 'place_hamlet'] { | ||
[zoom >= 10] { | ||
polygon-fill: @built-up-lower-lowzoom; | ||
polygon-opacity: 0.3; | ||
[zoom >= 11] { polygon-fill: @built-up-upper-lowzoom; } | ||
[zoom >= 13] { polygon-fill: @residential; } | ||
[zoom >= 16] { | ||
line-width: .5; | ||
line-color: @residential-line; | ||
[name != ''] { | ||
line-width: 0.7; | ||
} | ||
} | ||
} | ||
[way_pixels >= 4] { polygon-gamma: 0.75; } | ||
[way_pixels >= 64] { polygon-gamma: 0.3; } | ||
} | ||
|
||
[feature = 'landuse_garages'][zoom >= 13] { | ||
polygon-fill: @garages; | ||
[way_pixels >= 4] { polygon-gamma: 0.75; } | ||
|
@@ -474,7 +493,7 @@ | |
[way_pixels >= 4] { polygon-gamma: 0.75; } | ||
[way_pixels >= 64] { polygon-gamma: 0.3; } | ||
} | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. whitespace noise There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This has already been removed as part of a whitespace cleanup which I understood had been merged |
||
[feature = 'wetland_swamp'][zoom >= 8] { | ||
polygon-fill: @forest; | ||
[way_pixels >= 4] { polygon-gamma: 0.75; } | ||
|
@@ -766,7 +785,7 @@ | |
b/line-color: @tourism; | ||
b/line-opacity: 0.3; | ||
b/line-join: round; | ||
b/line-cap: round; | ||
b/line-cap: round; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. whicespace noise There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This has already been removed as part of a whitespace cleanup which I understood had been merged There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, but it shouldn't be in this PR as well. |
||
} | ||
[zoom >= 17] { | ||
a/line-width: 2; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't use opacity.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As already said - the intention in using opacity was to not obfuscate finer detail. This can be removed if preferred.
Please remove if required or advise how I should proceed to remove so as not to cloud the pull. Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given my basic concerns with rendering places like built up areas I'm not sure what changes you should make, except you need to find a way without opacity.