From 19869f4540f5f909e24e4b8f1167dc140473b62a Mon Sep 17 00:00:00 2001 From: Brian Sperlongano Date: Fri, 12 Feb 2021 23:45:25 -0500 Subject: [PATCH 1/4] Adding volcano icon and changing natural=volcano to use the new icon. --- style/amenity-points.mss | 2 +- symbols/natural/volcano.svg | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 symbols/natural/volcano.svg diff --git a/style/amenity-points.mss b/style/amenity-points.mss index f475ba627c..38e9d84576 100644 --- a/style/amenity-points.mss +++ b/style/amenity-points.mss @@ -1372,7 +1372,7 @@ } [feature = 'natural_volcano'][zoom >= 11] { - marker-file: url('symbols/natural/peak.svg'); + marker-file: url('symbols/natural/volcano.svg'); marker-fill: #d40000; marker-clip: false; } diff --git a/symbols/natural/volcano.svg b/symbols/natural/volcano.svg new file mode 100644 index 0000000000..9e7e076840 --- /dev/null +++ b/symbols/natural/volcano.svg @@ -0,0 +1,37 @@ + + + + + + image/svg+xml + + + + + + + + + From a8636ab4d116c8948326318fc7cb8e4a2ecd0f9a Mon Sep 17 00:00:00 2001 From: Brian Sperlongano Date: Sat, 27 Feb 2021 00:08:22 -0500 Subject: [PATCH 2/4] volcano & peak style consolidation Volcano and peak will now show at 50% width at zoom 10. Combined peak/volcano section to take advantage of common styling. --- style/amenity-points.mss | 20 +++++----- symbols/natural/volcano.svg | 74 ++++++++++++++++++++++++++++--------- 2 files changed, 68 insertions(+), 26 deletions(-) diff --git a/style/amenity-points.mss b/style/amenity-points.mss index 38e9d84576..374038d9f6 100644 --- a/style/amenity-points.mss +++ b/style/amenity-points.mss @@ -1365,16 +1365,19 @@ marker-fill: @man-made-icon; } - [feature = 'natural_peak'][zoom >= 11] { - marker-file: url('symbols/natural/peak.svg'); + [feature = 'natural_peak'][zoom >= 10], + [feature = 'natural_volcano'][zoom >= 10] { marker-fill: @landform-color; marker-clip: false; - } - - [feature = 'natural_volcano'][zoom >= 11] { - marker-file: url('symbols/natural/volcano.svg'); - marker-fill: #d40000; - marker-clip: false; + [feature = 'natural_peak'] { + marker-file: url('symbols/natural/peak.svg'); + } + [feature = 'natural_volcano'] { + marker-file: url('symbols/natural/volcano.svg'); + } + [zoom = 10] { + marker-width: 4; + } } [feature = 'natural_saddle'][zoom >= 15] { @@ -1833,7 +1836,6 @@ text-wrap-width: @standard-wrap-width; text-line-spacing: @standard-line-spacing-size; text-fill: darken(@landform-color, 30%); - [feature = 'natural_volcano'] { text-fill: #d40000; } text-dy: 7; [feature = 'tourism_viewpoint'] { text-dy: 11; } text-face-name: @standard-font; diff --git a/symbols/natural/volcano.svg b/symbols/natural/volcano.svg index 9e7e076840..af6dc6f03b 100644 --- a/symbols/natural/volcano.svg +++ b/symbols/natural/volcano.svg @@ -5,12 +5,40 @@ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" - id="svg2" - height="8" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="8" - version="1.1"> + height="8" + viewBox="0 0 2.1166667 2.1166667" + version="1.1" + id="svg8" + inkscape:version="1.0.2 (e86c870879, 2021-01-15, custom)" + sodipodi:docname="volcano.svg"> + + + id="metadata5"> @@ -21,17 +49,29 @@ - -