From: Anton Khorev <tony29@yandex.ru>
Date: Fri, 8 Dec 2023 18:42:33 +0000 (+0300)
Subject: Add glacier images with borders
X-Git-Tag: live~1639^2~2
X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/1dcf2fb9f4336fc9f85b1a6e79b66883c56abf07

Add glacier images with borders
---

diff --git a/app/assets/images/key/mapnik/glacier10.svg b/app/assets/images/key/mapnik/glacier10.svg
new file mode 100644
index 000000000..be79f238a
--- /dev/null
+++ b/app/assets/images/key/mapnik/glacier10.svg
@@ -0,0 +1,3 @@
+<svg xmlns='http://www.w3.org/2000/svg' width='26' height='10'>
+<rect x='.5' y='.5' width='25' height='9' fill='#ddecec' stroke='#9cf' stroke-dasharray='4 2' />
+</svg>
diff --git a/app/assets/images/key/mapnik/glacier5.svg b/app/assets/images/key/mapnik/glacier5.svg
new file mode 100644
index 000000000..8e6d368eb
--- /dev/null
+++ b/app/assets/images/key/mapnik/glacier5.svg
@@ -0,0 +1,3 @@
+<svg xmlns='http://www.w3.org/2000/svg' width='26' height='10'>
+<rect x='.5' y='.5' width='25' height='9' fill='#ddecec' stroke='#9cf' />
+</svg>
diff --git a/config/key.yml b/config/key.yml
index f9ce0a3ee..4317b89be 100644
--- a/config/key.yml
+++ b/config/key.yml
@@ -19,7 +19,8 @@ mapnik:
   - { name: admin, width: 52, height: 2, fill: "#8d618b88" }
   # landcover: landcover.mss, water.mss
   - { name: lake, width: 26, height: 10, fill: "#aad3df" }
-  - { name: glacier, width: 26, height: 10, fill: "#ddecec" }
+  - { min_zoom: 5, max_zoom: 9, name: glacier, image: glacier5.svg }
+  - { min_zoom: 10, name: glacier, image: glacier10.svg }
   - { min_zoom: 5, max_zoom: 11, name: forest, width: 26, height: 10, fill: "#bddab1" }
   - { min_zoom: 12, name: forest, width: 26, height: 10, fill: "#add19e" }
   - { min_zoom: 5, max_zoom: 11, name: orchard, width: 26, height: 10, fill: "#bee5b5" }