diff --git a/amenity-points.mss b/amenity-points.mss index 674590107d..1ac381b0dd 100644 --- a/amenity-points.mss +++ b/amenity-points.mss @@ -1201,12 +1201,6 @@ marker-clip: false; } - [feature = 'natural_spring'][zoom >= 14] { - marker-file: url('symbols/spring.svg'); - marker-placement: interior; - marker-clip: false; - } - [feature = 'power_generator']['generator:source' = 'wind'], [feature = 'power_generator'][power_source = 'wind'] { [zoom >= 15] { diff --git a/project.mml b/project.mml index ecc5fc16a4..fdb99c16d0 100644 --- a/project.mml +++ b/project.mml @@ -278,6 +278,24 @@ Layer: type: shape properties: minzoom: 8 + - id: springs + geometry: point + <<: *extents + Datasource: + <<: *osm2pgsql + table: |- + (SELECT + way, "natural" + FROM planet_osm_polygon + WHERE "natural" IN ('spring') + UNION ALL + SELECT + way, "natural" + FROM planet_osm_point + WHERE "natural" IN ('spring') + ) AS springs + properties: + minzoom: 14 - id: water-lines class: water-lines geometry: linestring diff --git a/symbols/spring.svg b/symbols/spring.svg index bab09a9254..47644c0c44 100644 --- a/symbols/spring.svg +++ b/symbols/spring.svg @@ -1,9 +1,23 @@ - - - - + + + + + + diff --git a/water-features.mss b/water-features.mss index 43005c2d55..f097f81678 100644 --- a/water-features.mss +++ b/water-features.mss @@ -163,3 +163,11 @@ } } } + +#springs { + [natural = 'spring'][zoom >= 14] { + marker-file: url('symbols/spring.svg'); + marker-placement: interior; + marker-clip: false; + } +}