diff --git a/amenity-points.mss b/amenity-points.mss index 00aa93bbcd..6e6e7a8d15 100644 --- a/amenity-points.mss +++ b/amenity-points.mss @@ -143,7 +143,7 @@ } [feature = 'barrier_toll_booth'][zoom >= 16] { - marker-file: url('symbols/toll_booth.svg'); + marker-file: url('symbols/barrier/toll_booth.svg'); marker-fill: @transportation-icon; marker-placement: interior; marker-clip: false; @@ -1499,7 +1499,7 @@ [feature = 'barrier_gate']::barrier { [zoom >= 17] { - marker-file: url('symbols/gate.svg'); + marker-file: url('symbols/barrier/gate.svg'); marker-placement: interior; marker-clip: false; } @@ -1507,12 +1507,26 @@ [feature = 'barrier_lift_gate'][zoom >= 17]::barrier, [feature = 'barrier_swing_gate'][zoom >= 17]::barrier { - marker-file: url('symbols/liftgate.svg'); + marker-file: url('symbols/barrier/lift_gate.svg'); marker-fill: #3f3f3f; marker-placement: interior; marker-clip: false; } + [feature = 'barrier_cattle_grid'][zoom >= 17]::barrier { + marker-file: url('symbols/barrier/cattle_grid.svg'); + marker-fill: #3f3f3f; + marker-placement: interior; + marker-clip: false; + } + + [feature = 'barrier_stile'][zoom >= 17]::barrier { + marker-file: url('symbols/barrier/stile.svg'); + marker-fill: #3f3f3f; + marker-placement: interior; + marker-clip: false; + } + [feature = 'barrier_bollard'], [feature = 'barrier_block'], [feature = 'barrier_log'] { diff --git a/project.mml b/project.mml index 108d1d2dcf..52b258b11b 100644 --- a/project.mml +++ b/project.mml @@ -2478,7 +2478,7 @@ Layer: 'waste_basket', 'waste_disposal') THEN amenity ELSE NULL END, 'historic_' || CASE WHEN historic IN ('wayside_cross', 'wayside_shrine') THEN historic ELSE NULL END, 'man_made_' || CASE WHEN man_made IN ('cross') THEN man_made ELSE NULL END, - 'barrier_' || CASE WHEN barrier IN ('bollard', 'gate', 'lift_gate', 'swing_gate', 'block', 'log') THEN barrier ELSE NULL END + 'barrier_' || CASE WHEN barrier IN ('bollard', 'gate', 'lift_gate', 'swing_gate', 'block', 'log', 'cattle_grid', 'stile') THEN barrier ELSE NULL END ) AS feature, access, CASE WHEN amenity IN ('waste_basket', 'waste_disposal') THEN 2 ELSE 1 END AS prio @@ -2488,7 +2488,7 @@ Layer: OR amenity IN ('parking', 'bicycle_parking', 'motorcycle_parking', 'bench', 'waste_basket', 'waste_disposal') OR historic IN ('wayside_cross', 'wayside_shrine') OR man_made IN ('cross') - OR barrier IN ('bollard', 'gate', 'lift_gate', 'swing_gate', 'block', 'log') + OR barrier IN ('bollard', 'gate', 'lift_gate', 'swing_gate', 'block', 'log', 'cattle_grid', 'stile') ORDER BY prio ) AS amenity_low_priority properties: @@ -2504,12 +2504,12 @@ Layer: way, COALESCE( 'amenity_' || CASE WHEN amenity IN ('parking', 'bicycle_parking', 'motorcycle_parking') THEN amenity ELSE NULL END, - 'barrier_' || CASE WHEN barrier IN ('bollard', 'gate', 'lift_gate', 'swing_gate', 'block', 'log') THEN barrier ELSE NULL END + 'barrier_' || CASE WHEN barrier IN ('bollard', 'gate', 'lift_gate', 'swing_gate', 'block', 'log', 'cattle_grid', 'stile') THEN barrier ELSE NULL END ) AS feature, access FROM planet_osm_polygon p WHERE amenity IN ('parking', 'bicycle_parking', 'motorcycle_parking') - OR barrier IN ('bollard', 'gate', 'lift_gate', 'swing_gate', 'block', 'log') + OR barrier IN ('bollard', 'gate', 'lift_gate', 'swing_gate', 'block', 'log', 'cattle_grid', 'stile') ) AS amenity_low_priority_poly properties: minzoom: 14 diff --git a/symbols/barrier/cattle_grid.svg b/symbols/barrier/cattle_grid.svg new file mode 100644 index 0000000000..869fb8d2f4 --- /dev/null +++ b/symbols/barrier/cattle_grid.svg @@ -0,0 +1,63 @@ + + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/symbols/gate.svg b/symbols/barrier/gate.svg similarity index 100% rename from symbols/gate.svg rename to symbols/barrier/gate.svg diff --git a/symbols/liftgate.svg b/symbols/barrier/lift_gate.svg similarity index 100% rename from symbols/liftgate.svg rename to symbols/barrier/lift_gate.svg diff --git a/symbols/barrier/stile.svg b/symbols/barrier/stile.svg new file mode 100644 index 0000000000..d089ff212d --- /dev/null +++ b/symbols/barrier/stile.svg @@ -0,0 +1,36 @@ + + + + + + + image/svg+xml + + + + + + + + + diff --git a/symbols/toll_booth.svg b/symbols/barrier/toll_booth.svg similarity index 100% rename from symbols/toll_booth.svg rename to symbols/barrier/toll_booth.svg