Skip to content

Commit

Permalink
Merge pull request #4069 from jeisenbe/springs-layer
Browse files Browse the repository at this point in the history
Move natural=spring back to amenity-points layer
  • Loading branch information
pnorman authored Mar 27, 2020
2 parents e19bda8 + d456010 commit 8c18ef8
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 @@ -341,33 +341,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 @@ -1381,6 +1381,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 8c18ef8

Please sign in to comment.