From ebf46550166428d44c106812a31a7f44058053e4 Mon Sep 17 00:00:00 2001 From: Lukas Sommer Date: Sat, 6 Jan 2018 10:33:55 +0000 Subject: [PATCH] toll booth symbol --- amenity-points.mss | 7 +++++++ project.mml | 26 +++++++++++++++++++++++--- symbols/toll_booth.svg | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+), 3 deletions(-) create mode 100755 symbols/toll_booth.svg diff --git a/amenity-points.mss b/amenity-points.mss index d0fce6f5c2..e46d7e50b7 100644 --- a/amenity-points.mss +++ b/amenity-points.mss @@ -1070,6 +1070,13 @@ } } + [feature = 'barrier_toll_booth'][zoom >= 16] { + marker-file: url('symbols/toll_booth.svg'); + marker-placement: interior; + marker-clip: false; + marker-fill: @transportation-icon; + } + [feature = 'railway_level_crossing'][zoom >= 14]::railway, [feature = 'railway_crossing'][zoom >= 15]::railway{ point-file: url('symbols/level_crossing.svg'); diff --git a/project.mml b/project.mml index 552e875116..5617370abb 100644 --- a/project.mml +++ b/project.mml @@ -2318,7 +2318,7 @@ Layer: 'amenity_' || CASE WHEN amenity IN ('parking', 'bicycle_parking', 'motorcycle_parking', 'bench', 'waste_basket') THEN amenity ELSE NULL END, 'historic_' || CASE WHEN historic IN ('wayside_cross') 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') THEN barrier ELSE NULL END + 'barrier_' || CASE WHEN barrier IN ('bollard', 'gate', 'lift_gate', 'swing_gate', 'block', 'toll_booth') THEN barrier ELSE NULL END ) AS feature, access, CASE WHEN amenity='waste_basket' THEN 2 ELSE 1 END AS prio @@ -2328,11 +2328,31 @@ Layer: OR amenity IN ('parking', 'bicycle_parking', 'motorcycle_parking', 'bench', 'waste_basket') OR historic IN ('wayside_cross') OR man_made IN ('cross') - OR barrier IN ('bollard', 'gate', 'lift_gate', 'swing_gate', 'block') + OR barrier IN ('bollard', 'gate', 'lift_gate', 'swing_gate', 'block', 'toll_booth') ORDER BY prio ) AS amenity_low_priority properties: minzoom: 14 + - id: amenity-low-priority-line + class: amenity-low-priority + geometry: linestring + <<: *extents + Datasource: + <<: *osm2pgsql + table: |- + (SELECT + 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') THEN barrier ELSE NULL END + ) AS feature, + access + FROM planet_osm_line p + WHERE amenity IN ('parking', 'bicycle_parking', 'motorcycle_parking') + OR barrier IN ('bollard', 'gate', 'lift_gate', 'swing_gate', 'block', 'toll_booth') + ) AS amenity_low_priority_line + properties: + minzoom: 14 - id: amenity-low-priority-poly class: amenity-low-priority geometry: polygon @@ -2349,7 +2369,7 @@ Layer: access FROM planet_osm_polygon p WHERE amenity IN ('parking', 'bicycle_parking', 'motorcycle_parking') - OR barrier IN ('bollard', 'gate', 'lift_gate', 'swing_gate', 'block') + OR barrier IN ('bollard', 'gate', 'lift_gate', 'swing_gate', 'block', 'toll_booth') ) AS amenity_low_priority_poly properties: minzoom: 14 diff --git a/symbols/toll_booth.svg b/symbols/toll_booth.svg new file mode 100755 index 0000000000..7742b1048d --- /dev/null +++ b/symbols/toll_booth.svg @@ -0,0 +1,32 @@ + + + + + + + image/svg+xml + + + + + + + +