From d24e93f9267cab5908d5d069340c12efe8d6446e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ko=C4=87?= Date: Sat, 3 Mar 2018 00:17:16 +0100 Subject: [PATCH] Adding tower:type=lighting rendering --- amenity-points.mss | 26 ++++++++++++------ symbols/mast_lighting.svg | 55 ++++++++++++++++++++++++++++++++++++++ symbols/tower_lighting.svg | 55 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 128 insertions(+), 8 deletions(-) create mode 100644 symbols/mast_lighting.svg create mode 100644 symbols/tower_lighting.svg diff --git a/amenity-points.mss b/amenity-points.mss index 12b736bd35..a486ee637f 100644 --- a/amenity-points.mss +++ b/amenity-points.mss @@ -358,10 +358,15 @@ [zoom >= 16][height > 40], [zoom >= 17][height > 20], [zoom >= 18] { - marker-file: url('symbols/mast.svg'); - marker-fill: @man-made-icon; - marker-placement: interior; - marker-clip: false; + ["tower:type" != 'lighting'] { + marker-file: url('symbols/mast.svg'); + marker-fill: @man-made-icon; + marker-placement: interior; + marker-clip: false; + } + ["tower:type" = 'lighting'][zoom >= 18] { + marker-file: url('symbols/mast_lighting.svg'); + } ["tower:type" = 'communication'] { marker-file: url('symbols/mast_communications.svg'); } @@ -373,16 +378,21 @@ [zoom >= 14][height > 50], [zoom >= 15][height > 30], [zoom >= 17] { - marker-file: url('symbols/tower_generic.svg'); - marker-fill: @man-made-icon; - marker-placement: interior; - marker-clip: false; + ["tower:type" != 'lighting'] { + marker-file: url('symbols/tower_generic.svg'); + marker-fill: @man-made-icon; + marker-placement: interior; + marker-clip: false; + } ["tower:type" = 'defensive'] { marker-file: url('symbols/tower_defensive.svg'); } ["tower:type" = 'observation'] { marker-file: url('symbols/tower_observation.svg'); } + ["tower:type" = 'lighting'][zoom >= 18] { + marker-file: url('symbols/tower_lighting.svg'); + } ["tower:construction" = 'lattice'] { marker-file: url('symbols/tower_lattice.svg'); } diff --git a/symbols/mast_lighting.svg b/symbols/mast_lighting.svg new file mode 100644 index 0000000000..daf114a78c --- /dev/null +++ b/symbols/mast_lighting.svg @@ -0,0 +1,55 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + diff --git a/symbols/tower_lighting.svg b/symbols/tower_lighting.svg new file mode 100644 index 0000000000..9adc04b91d --- /dev/null +++ b/symbols/tower_lighting.svg @@ -0,0 +1,55 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + +