diff --git a/landcover.mss b/landcover.mss index f3d4251704..058e162093 100644 --- a/landcover.mss +++ b/landcover.mss @@ -825,11 +825,16 @@ } #area-barriers { - [zoom >= 16] { - line-color: #444; - line-width: 0.4; - [feature = 'barrier_hedge'] { + [feature = 'barrier_hedge'][area = 'yes'] { polygon-fill: #aed1a0; + [zoom >= 17] { + line-width: 2; + } + [zoom >= 18] { + line-width: 1; + } + [zoom >= 19] { + line-width: 0.5; } } } diff --git a/project.mml b/project.mml index 2ce761545a..4acc8ef98b 100644 --- a/project.mml +++ b/project.mml @@ -613,8 +613,8 @@ Layer: <<: *osm2pgsql table: |- (SELECT - way, COALESCE(historic, barrier) AS feature - FROM (SELECT way, + way, area, COALESCE(historic, barrier) AS feature + FROM (SELECT way, tags->'area' AS area, ('barrier_' || (CASE WHEN barrier IN ('chain', 'city_wall', 'embankment', 'ditch', 'fence', 'guard_rail', 'handrail', 'hedge', 'kerb', 'retaining_wall', 'wall') THEN barrier ELSE NULL END)) AS barrier, ('historic_' || (CASE WHEN historic = 'citywalls' THEN historic ELSE NULL END)) AS historic