Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…p-carto into spring_icon
  • Loading branch information
Penegal committed Feb 19, 2018
2 parents 77e112e + 699e51f commit ec52845
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 12 deletions.
6 changes: 0 additions & 6 deletions amenity-points.mss
Original file line number Diff line number Diff line change
Expand Up @@ -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] {
Expand Down
20 changes: 20 additions & 0 deletions project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
26 changes: 20 additions & 6 deletions symbols/spring.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions symbols/spring_small.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions water-features.mss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit ec52845

Please sign in to comment.