From e85d3168644a9cf942e52f16c1f5d8a8988c3cbe 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 | 9 +++++++++ project.mml | 4 ++++ symbols/toll_booth.svg | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100755 symbols/toll_booth.svg diff --git a/amenity-points.mss b/amenity-points.mss index d0fce6f5c2..dbc65bd2e2 100644 --- a/amenity-points.mss +++ b/amenity-points.mss @@ -122,6 +122,13 @@ marker-clip: false; } + [feature = 'barrier_toll_booth'][zoom >= 16] { + marker-file: url('symbols/toll_booth.svg'); + marker-fill: @transportation-icon; + marker-placement: interior; + marker-clip: false; + } + [feature = 'amenity_cafe'][zoom >= 17] { marker-file: url('symbols/cafe.svg'); marker-fill: @gastronomy; @@ -1209,6 +1216,7 @@ [feature = 'amenity_car_rental'][zoom >= 17], [feature = 'amenity_bicycle_rental'][zoom >= 17], + [feature = 'barrier_toll_booth'][zoom >= 17], [feature = 'leisure_slipway'][zoom >= 17] { text-name: "[name]"; text-size: @standard-font-size; @@ -1217,6 +1225,7 @@ text-fill: @transportation-text; [feature = 'amenity_car_rental'] { text-dy: 10; } [feature = 'amenity_bicycle_rental'] { text-dy: 10; } + [feature = 'barrier_toll_booth'] { text-dy: 13; } [feature = 'leisure_slipway'] { text-dy: 13; } text-face-name: @standard-font; text-halo-radius: @standard-halo-radius; diff --git a/project.mml b/project.mml index 552e875116..38565a23cb 100644 --- a/project.mml +++ b/project.mml @@ -1542,6 +1542,7 @@ Layer: WHEN tags @> 'ford=>yes' OR tags @> 'ford=>stepping_stones' THEN 'ford' ELSE NULL END, 'power_' || CASE WHEN power IN ('generator') THEN power ELSE NULL END, 'tourism_' || CASE WHEN tourism IN ('viewpoint') THEN tourism ELSE NULL END, + 'barrier_' || CASE WHEN barrier IN ('toll_booth') THEN barrier ELSE NULL END, 'man_made_' || CASE WHEN man_made IN ('cross') THEN man_made ELSE NULL END, 'historic_' || CASE WHEN historic IN ('wayside_cross') THEN historic ELSE NULL END ) AS feature, @@ -1580,6 +1581,7 @@ Layer: OR shop IS NOT NULL OR leisure IN ('water_park', 'playground', 'miniature_golf', 'golf_course', 'picnic_table', 'slipway', 'dog_park', 'fitness_centre', 'fitness_station', 'firepit') + OR barrier IN ('toll_booth') OR man_made IN ('mast', 'water_tower', 'lighthouse', 'windmill', 'cross', 'obelisk') OR "natural" IN ('peak', 'volcano', 'saddle', 'spring', 'cave_entrance') OR historic IN ('memorial', 'monument', 'archaeological_site', 'wayside_cross') @@ -2113,6 +2115,7 @@ Layer: 'scree', 'shingle', 'bare_rock', 'sand', 'heath', 'grassland', 'scrub', 'beach', 'glacier', 'tree') THEN "natural" ELSE NULL END, 'place_' || CASE WHEN place IN ('island', 'islet') THEN place ELSE NULL END, + 'barrier_' || CASE WHEN barrier IN ('toll_booth') THEN barrier ELSE NULL END, 'military_' || CASE WHEN military IN ('danger_area', 'bunker') THEN military ELSE NULL END, 'historic_' || CASE WHEN historic IN ('memorial', 'monument', 'archaeological_site') THEN concat_ws('_', historic, CASE WHEN tags->'memorial' IN ('plaque') THEN tags->'memorial' ELSE NULL END) @@ -2156,6 +2159,7 @@ Layer: OR man_made IN ('lighthouse', 'windmill', 'mast', 'water_tower', 'cross', 'obelisk', 'works') OR "natural" IS NOT NULL OR place IN ('island', 'islet') + OR barrier IN ('toll_booth') OR military IN ('danger_area', 'bunker') OR historic IN ('memorial', 'monument', 'archaeological_site', 'wayside_cross') OR tags->'memorial' IN ('plaque') 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 + + + + + + + +