Skip to content

Commit

Permalink
Restore rendering of barrier=embankment
Browse files Browse the repository at this point in the history
  • Loading branch information
jeisenbe committed Nov 15, 2019
1 parent ebf68bf commit 1c09169
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions landcover.mss
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,10 @@
line-width: 0.4;
line-color: #444;
}
[feature = 'barrier_embankment'][zoom >= 14] {
line-width: 0.4;
line-color: #444;
}
[feature = 'barrier_hedge'][zoom >= 16] {
line-width: 1.5;
line-color: @hedge;
Expand Down
8 changes: 4 additions & 4 deletions project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -582,11 +582,11 @@ Layer:
(SELECT
way, COALESCE(historic, barrier) AS feature
FROM (SELECT way,
('barrier_' || (CASE WHEN barrier IN ('chain', 'city_wall', 'ditch', 'fence', 'guard_rail',
('barrier_' || (CASE WHEN barrier IN ('chain', 'city_wall', 'embankment', 'ditch', 'fence', 'guard_rail',
'handrail', 'hedge', 'retaining_wall', 'wall') THEN barrier ELSE NULL END)) AS barrier,
('historic_' || (CASE WHEN historic = 'citywalls' THEN historic ELSE NULL END)) AS historic
FROM planet_osm_line
WHERE barrier IN ('chain', 'city_wall', 'ditch', 'fence', 'guard_rail',
WHERE barrier IN ('chain', 'city_wall', 'ditch', 'embankment', 'fence', 'guard_rail',
'handrail', 'hedge', 'retaining_wall', 'wall')
OR historic = 'citywalls'
AND (waterway IS NULL OR waterway NOT IN ('river', 'canal', 'stream', 'drain', 'ditch'))
Expand Down Expand Up @@ -617,11 +617,11 @@ Layer:
(SELECT
way, COALESCE(historic, barrier) AS feature
FROM (SELECT way,
('barrier_' || (CASE WHEN barrier IN ('chain', 'city_wall', 'ditch', 'fence', 'guard_rail',
('barrier_' || (CASE WHEN barrier IN ('chain', 'city_wall', 'ditch', 'embankment', 'fence', 'guard_rail',
'handrail', 'hedge', 'retaining_wall', 'wall') THEN barrier ELSE NULL END)) AS barrier,
('historic_' || (CASE WHEN historic = 'citywalls' THEN historic ELSE NULL END)) AS historic
FROM planet_osm_polygon
WHERE (barrier IN ('chain', 'city_wall', 'ditch', 'fence', 'guard_rail',
WHERE (barrier IN ('chain', 'city_wall', 'ditch', 'embankment', 'fence', 'guard_rail',
'handrail', 'hedge', 'retaining_wall', 'wall')
OR historic = 'citywalls')
AND building IS NULL
Expand Down

0 comments on commit 1c09169

Please sign in to comment.