]> git.openstreetmap.org Git - rails.git/commitdiff
Add glacier images with borders
authorAnton Khorev <tony29@yandex.ru>
Fri, 8 Dec 2023 18:42:33 +0000 (21:42 +0300)
committerAnton Khorev <tony29@yandex.ru>
Fri, 8 Dec 2023 18:42:33 +0000 (21:42 +0300)
app/assets/images/key/mapnik/glacier10.svg [new file with mode: 0644]
app/assets/images/key/mapnik/glacier5.svg [new file with mode: 0644]
config/key.yml

diff --git a/app/assets/images/key/mapnik/glacier10.svg b/app/assets/images/key/mapnik/glacier10.svg
new file mode 100644 (file)
index 0000000..be79f23
--- /dev/null
@@ -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 (file)
index 0000000..8e6d368
--- /dev/null
@@ -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>
index f9ce0a3ee2db764975e1c85fecc8ff3004114d40..4317b89beae66e02b49f10da1d4aafef88a1f8c5 100644 (file)
@@ -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" }