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

Landcover=* #9

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from 8 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
8 changes: 6 additions & 2 deletions landcover.mss
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@
}

[feature = 'landuse_forest'],
[feature = 'landcover_trees'],
[feature = 'natural_wood'] {
[zoom >= 8] {
polygon-fill: @forest;
Expand Down Expand Up @@ -340,6 +341,7 @@
[feature = 'natural_grassland'][zoom >= 8],
[feature = 'landuse_meadow'][zoom >= 8],
[feature = 'landuse_grass'][zoom >= 10],
[feature = 'landcover_grass'],
jbelien marked this conversation as resolved.
Show resolved Hide resolved
[feature = 'landuse_village_green'][zoom >= 10],
[feature = 'leisure_common'][zoom >= 10] {
polygon-fill: @grass;
Expand Down Expand Up @@ -476,7 +478,8 @@
}
}

[feature = 'natural_sand'][zoom >= 8] {
[feature = 'natural_sand'][zoom >= 8],
[feature = 'landcover_sand'][zoom >= 8] {
polygon-fill: @sand;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
Expand All @@ -488,7 +491,8 @@
[way_pixels >= 64] { polygon-gamma: 0.3; }
}

[feature = 'natural_scrub'][zoom >= 10] {
[feature = 'natural_scrub'][zoom >= 10],
[feature = 'landcover_bushes'][zoom >= 10] {
polygon-fill: @scrub;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
Expand Down
1 change: 1 addition & 0 deletions openstreetmap-carto.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ local polygon_keys = {
'harbour',
'historic',
'landuse',
'landcover',
'leisure',
'man_made',
'military',
Expand Down
1 change: 1 addition & 0 deletions openstreetmap-carto.style
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ node,way historic text polygon
way horse text linear
node,way junction text linear
node,way landuse text polygon
node,way landcover text polygon
node,way layer int4 linear
node,way leisure text polygon
node,way lock text linear
Expand Down