Skip to content

Commit 95fea5c

Browse files
committed
Show tidal landcover as soon as their on-ground counterparts
And show beaches/shoals as early as mudflats.
1 parent 8a57bcf commit 95fea5c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

project.mml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ Layer:
6969
way,
7070
('landuse_' || (CASE WHEN landuse IN ('forest', 'farmland', 'residential', 'commercial', 'retail', 'industrial',
7171
'meadow', 'grass', 'village_green', 'vineyard', 'orchard') THEN landuse END)) AS landuse,
72-
('natural_' || (CASE WHEN "natural" IN ('wood', 'sand', 'scree', 'shingle', 'bare_rock', 'heath', 'grassland', 'scrub') THEN "natural" END)) AS "natural",
72+
('natural_' || (CASE WHEN "natural" IN ('wood', 'sand', 'beach', 'shoal', 'scree', 'shingle', 'bare_rock', 'heath', 'grassland', 'scrub') THEN "natural" END)) AS "natural",
7373
('wetland_' || (CASE WHEN "natural" IN ('wetland', 'mud') THEN (CASE WHEN "natural" IN ('mud') THEN "natural" ELSE tags->'wetland' END) END)) AS wetland,
7474
way_area/NULLIF(POW(!scale_denominator!*0.001*0.28,2),0) AS way_pixels,
7575
way_area
7676
FROM planet_osm_polygon
7777
WHERE (landuse IN ('forest', 'farmland', 'residential', 'commercial', 'retail', 'industrial', 'meadow', 'grass', 'village_green', 'vineyard', 'orchard')
78-
OR "natural" IN ('wood', 'wetland', 'mud', 'sand', 'scree', 'shingle', 'bare_rock', 'heath', 'grassland', 'scrub'))
78+
OR "natural" IN ('wood', 'wetland', 'mud', 'beach', 'shoal', 'sand', 'scree', 'shingle', 'bare_rock', 'heath', 'grassland', 'scrub'))
7979
AND way_area > 0.01*!pixel_width!::real*!pixel_height!::real
8080
AND building IS NULL
8181
) AS features
@@ -242,7 +242,7 @@ Layer:
242242
) AS features
243243
properties:
244244
cache-features: true
245-
minzoom: 10
245+
minzoom: 5
246246
- id: water-lines-low-zoom
247247
geometry: linestring
248248
<<: *extents

style/landcover.mss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -686,8 +686,8 @@
686686
[way_pixels >= 64] { polygon-gamma: 0.3; }
687687
}
688688

689-
[feature = 'natural_beach'][zoom >= 10],
690-
[feature = 'natural_shoal'][zoom >= 10] {
689+
[feature = 'natural_beach'][zoom >= 9],
690+
[feature = 'natural_shoal'][zoom >= 9] {
691691
polygon-fill: @beach;
692692
[way_pixels >= 4] { polygon-gamma: 0.75; }
693693
[way_pixels >= 64] { polygon-gamma: 0.3; }
@@ -742,7 +742,7 @@
742742
}
743743
}
744744

745-
#landcover-tidal[zoom >= 10] {
745+
#landcover-tidal {
746746
::low-zoom[zoom < 12] {
747747
// Increase the lightness of the map by scaling color lightness to be in the 20%-100% range
748748
image-filters: scale-hsla(0,1, 0,1, 0.2,1, 0,1);
@@ -822,8 +822,8 @@
822822
}
823823
}
824824

825-
[feature = 'natural_beach'][zoom >= 10],
826-
[feature = 'natural_shoal'][zoom >= 10] {
825+
[feature = 'natural_beach'][zoom >= 9],
826+
[feature = 'natural_shoal'][zoom >= 9] {
827827
polygon-fill: @tidal;
828828
[way_pixels >= 4] { polygon-gamma: 0.75; }
829829
[way_pixels >= 64] { polygon-gamma: 0.3; }

0 commit comments

Comments
 (0)