Skip to content

Commit

Permalink
Move natural=spring back to amenity-points
Browse files Browse the repository at this point in the history
Previously springs were rendered below water-lines. This is not longer the case, so springs can be rendered with other symbols again
  • Loading branch information
jeisenbe committed Mar 10, 2020
1 parent 2756ee6 commit d456010
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 34 deletions.
27 changes: 0 additions & 27 deletions project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -342,33 +342,6 @@ Layer:
) AS water_barriers_poly
properties:
minzoom: 13
- id: springs
geometry: point
<<: *extents
Datasource:
<<: *osm2pgsql
table: |-
(SELECT
way,
"natural"
FROM
(SELECT
ST_PointOnSurface(way) AS way,
"natural"
FROM planet_osm_polygon
WHERE way && !bbox!
AND way_area < 768000*POW(!scale_denominator!*0.001*0.28,2)
UNION ALL
SELECT
way,
"natural"
FROM planet_osm_point
WHERE way && !bbox!
) _
WHERE "natural" IN ('spring')
) AS springs
properties:
minzoom: 14
- id: piers-poly
geometry: polygon
<<: *extents
Expand Down
5 changes: 5 additions & 0 deletions style/amenity-points.mss
Original file line number Diff line number Diff line change
Expand Up @@ -1382,6 +1382,11 @@
marker-clip: false;
}

[feature = 'natural_spring'][zoom >= 14] {
marker-file: url('symbols/spring.svg');
marker-clip: false;
}

[feature = 'natural_cave_entrance'][zoom >= 15] {
marker-file: url('symbols/natural/cave.svg');
marker-clip: false;
Expand Down
7 changes: 0 additions & 7 deletions style/water-features.mss
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,3 @@
}
}
}

#springs {
[natural = 'spring'][zoom >= 14] {
marker-file: url('symbols/spring.svg');
marker-clip: false;
}
}

0 comments on commit d456010

Please sign in to comment.