]> git.openstreetmap.org Git - rails.git/commitdiff
Add intermittent waterbody mapnik map key
authorAnton Khorev <tony29@yandex.ru>
Mon, 11 Dec 2023 10:23:35 +0000 (13:23 +0300)
committerAnton Khorev <tony29@yandex.ru>
Mon, 11 Dec 2023 10:23:55 +0000 (13:23 +0300)
https://github.com/gravitystorm/openstreetmap-carto/blob/47a96cb6092198ba37992351a4059336ed58ae96/style/water.mss#L30

app/assets/images/key/mapnik/intermittent_water.svg [new file with mode: 0644]
config/key.yml
config/locales/en.yml

diff --git a/app/assets/images/key/mapnik/intermittent_water.svg b/app/assets/images/key/mapnik/intermittent_water.svg
new file mode 100644 (file)
index 0000000..ab728ce
--- /dev/null
@@ -0,0 +1,8 @@
+<svg xmlns='http://www.w3.org/2000/svg' width='26' height='10'>
+<defs>
+<pattern id='stripes' width='8' height='4' patternUnits='userSpaceOnUse'>
+<line x2='8' y1='1' y2='1' stroke='#aad3df' stroke-width='2' />
+</pattern>
+</defs>
+<rect width='100%' height='100%' fill='url(#stripes)' />
+</svg>
index 5ee24e9137428bdf3efc7c181a9a8d253f388e44..ae1918af2e864db64bbdfc8b7894742c95752918 100644 (file)
@@ -19,6 +19,7 @@ mapnik:
   - { name: admin, width: 52, height: 2, fill: "#8d618b88" }
   # landcover z5: landcover.mss, water.mss
   - { name: lake, width: 26, height: 10, fill: "#aad3df" }
+  - { name: intermittent_water, image: intermittent_water.svg }
   - { 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" }
index 9c6dbc3bdea9701e840de58ba9adb15dda72d1a8..599c4c05b8c97f3f511a6205ee7cb66b60d4f687 100644 (file)
@@ -2338,6 +2338,7 @@ en:
           lake:
             - Lake
             - reservoir
+          intermittent_water: "Intermittent waterbody"
           glacier: "Glacier"
           farm: "Farm"
           brownfield: "Brownfield site"