diff --git a/amenity-points.mss b/amenity-points.mss index 026806af80..1aaf547cdb 100644 --- a/amenity-points.mss +++ b/amenity-points.mss @@ -1025,12 +1025,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 30513adc2c..201cc04462 100644 --- a/project.mml +++ b/project.mml @@ -275,6 +275,26 @@ Layer: type: shape properties: minzoom: 8 + - id: "springs" + name: "springs" + geometry: "point" + <<: *extents + Datasource: + <<: *osm2pgsql + table: |- + (SELECT + St_Centroid(way) AS 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 + advanced: {} - id: water-lines class: water-lines geometry: linestring diff --git a/symbols/spring.svg b/symbols/spring.svg index bab09a9254..c73ce08da7 100644 --- a/symbols/spring.svg +++ b/symbols/spring.svg @@ -1,9 +1,23 @@ + - - - + + + + + diff --git a/symbols/spring_small.svg b/symbols/spring_small.svg new file mode 100644 index 0000000000..f69b36a45f --- /dev/null +++ b/symbols/spring_small.svg @@ -0,0 +1,21 @@ + + + + + + + + diff --git a/water-features.mss b/water-features.mss index 43005c2d55..dea0476cde 100644 --- a/water-features.mss +++ b/water-features.mss @@ -163,3 +163,15 @@ } } } + +#springs { + [natural = 'spring'][zoom >= 14] { + marker-file: url('symbols/spring_small.svg'); + [zoom >= 15] { + marker-file: url('symbols/spring.svg'); + } + marker-placement: interior; + marker-clip: false; + marker-fill: @water-color; + } +}