From d4560106064156c9d99593a98a88b303f4e35da8 Mon Sep 17 00:00:00 2001 From: jeisenbe Date: Tue, 10 Mar 2020 13:39:40 +0900 Subject: [PATCH] Move natural=spring back to amenity-points Previously springs were rendered below water-lines. This is not longer the case, so springs can be rendered with other symbols again --- project.mml | 27 --------------------------- style/amenity-points.mss | 5 +++++ style/water-features.mss | 7 ------- 3 files changed, 5 insertions(+), 34 deletions(-) diff --git a/project.mml b/project.mml index 29eb0dc955..da0ee22e1c 100644 --- a/project.mml +++ b/project.mml @@ -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 diff --git a/style/amenity-points.mss b/style/amenity-points.mss index 472de3f3e8..e2d3d066ff 100644 --- a/style/amenity-points.mss +++ b/style/amenity-points.mss @@ -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; diff --git a/style/water-features.mss b/style/water-features.mss index 95ab6ffcd3..8cd93bcb89 100644 --- a/style/water-features.mss +++ b/style/water-features.mss @@ -158,10 +158,3 @@ } } } - -#springs { - [natural = 'spring'][zoom >= 14] { - marker-file: url('symbols/spring.svg'); - marker-clip: false; - } -}