Skip to content

Commit

Permalink
Revert "Optimize Z9 rendering (cyclosm#645)"
Browse files Browse the repository at this point in the history
This reverts commit d3bfe49.
  • Loading branch information
Phyks committed Mar 21, 2023
1 parent d3bfe49 commit 2e2f74b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
4 changes: 2 additions & 2 deletions base.mss
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
polygon-gamma: 0.75;
}

#landuse_gen0[zoom>1][zoom<=8],
#landuse_gen1[zoom>8][zoom<=12],
#landuse_gen0[zoom>1][zoom<=9],
#landuse_gen1[zoom>9][zoom<=12],
#landuse[zoom>=13] {
[type='amenity_grave_yard'],
[type='landuse_cemetery'] {
Expand Down
12 changes: 3 additions & 9 deletions project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Layer:
CASE WHEN "natural" IS NOT NULL THEN ('natural_' || "natural") ELSE NULL END,
CASE WHEN leisure IS NOT NULL THEN ('leisure_' || leisure) ELSE NULL END,
CASE WHEN amenity IS NOT NULL THEN ('amenity_' || amenity) ELSE NULL END,
CASE WHEN highway IS NOT NULL THEN ('highway_' || highway) ELSE NULL END
CASE WHEN highway IN ('pedestrian') THEN ('highway_' || highway) ELSE NULL END
) AS type,
sport
FROM planet_osm_polygon
Expand All @@ -102,7 +102,7 @@ Layer:
geometry: polygon
properties:
minzoom: 2
maxzoom: 8
maxzoom: 9
- id: landuse_gen1
<<: *extents
Datasource:
Expand All @@ -129,13 +129,12 @@ Layer:
OR highway IN ('pedestrian')
)
AND way_area > 1*!pixel_width!::real*!pixel_height!::real
AND way && !bbox!
ORDER BY way_area DESC
) AS data
geometry: polygon
properties:
cache-features: true
minzoom: 9
minzoom: 10
maxzoom: 12
- id: landuse
<<: *extents
Expand Down Expand Up @@ -183,7 +182,6 @@ Layer:
("natural" = 'wood' OR landuse = 'forest')
AND building IS NULL
AND way_area > 1*!pixel_width!::real*!pixel_height!::real
AND way && !bbox!
ORDER BY way_area DESC
) AS data
geometry: polygon
Expand Down Expand Up @@ -338,7 +336,6 @@ Layer:
OR landuse in ('basin', 'reservoir')
)
AND way_area > 0.1*!pixel_width!::real*!pixel_height!::real
AND way && !bbox!
AND (tunnel IS NULL OR tunnel NOT IN ('yes', 'culvert'))
) AS data
geometry: polygon
Expand Down Expand Up @@ -366,7 +363,6 @@ Layer:
OR landuse in ('basin', 'reservoir')
)
AND way_area > 1*!pixel_width!::real*!pixel_height!::real
AND way && !bbox!
AND (tunnel IS NULL OR tunnel NOT IN ('yes', 'culvert'))
) AS data
geometry: polygon
Expand Down Expand Up @@ -928,7 +924,6 @@ Layer:
OR (boundary = 'protected_area' AND tags->'protect_class' IN ('1','1a','1b','2','3','4','5','6','7','24','97','98','99')))
AND building IS NULL
AND way_area > 1*!pixel_width!::real*!pixel_height!::real
AND way && !bbox!
) AS protected_areas
properties:
cache-features: true
Expand Down Expand Up @@ -1925,7 +1920,6 @@ Layer:
(landuse = 'military' OR military = 'danger_area')
AND building IS NULL
AND way_area > 1*!pixel_width!::real*!pixel_height!::real
AND way && !bbox!
ORDER BY way_area DESC
) AS data
geometry: polygon
Expand Down

0 comments on commit 2e2f74b

Please sign in to comment.