]> git.openstreetmap.org Git - rails.git/commitdiff
Update rail mapnik map key
authorAnton Khorev <tony29@yandex.ru>
Mon, 11 Dec 2023 11:46:35 +0000 (14:46 +0300)
committerAnton Khorev <tony29@yandex.ru>
Mon, 11 Dec 2023 11:46:35 +0000 (14:46 +0300)
app/assets/images/key/mapnik/rail.png [deleted file]
app/assets/images/key/mapnik/rail12.png [deleted file]
app/assets/images/key/mapnik/rail12.svg [new file with mode: 0644]
app/assets/images/key/mapnik/rail18.svg [new file with mode: 0644]
config/key.yml

diff --git a/app/assets/images/key/mapnik/rail.png b/app/assets/images/key/mapnik/rail.png
deleted file mode 100644 (file)
index 0abf0c1..0000000
Binary files a/app/assets/images/key/mapnik/rail.png and /dev/null differ
diff --git a/app/assets/images/key/mapnik/rail12.png b/app/assets/images/key/mapnik/rail12.png
deleted file mode 100644 (file)
index 957f17c..0000000
Binary files a/app/assets/images/key/mapnik/rail12.png and /dev/null differ
diff --git a/app/assets/images/key/mapnik/rail12.svg b/app/assets/images/key/mapnik/rail12.svg
new file mode 100644 (file)
index 0000000..45c76a4
--- /dev/null
@@ -0,0 +1,4 @@
+<svg xmlns='http://www.w3.org/2000/svg' width='52' height='3'>
+<rect width='100%' height='100%' fill='#707070' />
+<line x2='100%' y1='50%' y2='50%' stroke='white' stroke-dasharray='8' stroke-dashoffset='2' />
+</svg>
diff --git a/app/assets/images/key/mapnik/rail18.svg b/app/assets/images/key/mapnik/rail18.svg
new file mode 100644 (file)
index 0000000..5094baf
--- /dev/null
@@ -0,0 +1,4 @@
+<svg xmlns='http://www.w3.org/2000/svg' width='52' height='4'>
+<rect width='100%' height='100%' fill='#707070' />
+<line x2='100%' y1='50%' y2='50%' stroke='white' stroke-dasharray='8' stroke-dashoffset='2' stroke-width='2' />
+</svg>
index 5ee24e9137428bdf3efc7c181a9a8d253f388e44..534cce3b545b2687cc9fecdecf6458c34c6d0b14 100644 (file)
@@ -1,5 +1,5 @@
 mapnik:
-  # transportation
+  # transportation: roads.mss
   - { min_zoom: 6, max_zoom: 19, name: motorway, image: motorway.png }
   - { min_zoom: 6, max_zoom: 7, name: main_road, image: mainroad.png }
   - { min_zoom: 8, max_zoom: 11, name: main_road, image: mainroad8.png }
@@ -8,8 +8,9 @@ mapnik:
   - { min_zoom: 13, max_zoom: 19, name: bridleway, image: bridleway.png }
   - { min_zoom: 13, max_zoom: 19, name: cycleway, image: cycleway.png }
   - { min_zoom: 13, max_zoom: 19, name: footway, image: footway.png }
-  - { min_zoom: 8, max_zoom: 11, name: rail, image: rail.png }
-  - { min_zoom: 12, max_zoom: 19, name: rail, image: rail12.png }
+  - { min_zoom:  8, name: rail, width: 52, height: 1, fill: "#787878" }
+  - { min_zoom: 12, name: rail, image: rail12.svg }
+  - { min_zoom: 18, name: rail, image: rail18.svg }
   - { min_zoom: 13, max_zoom: 19, name: subway, image: subway.png }
   - { min_zoom: 13, max_zoom: 19, name: tram, image: tram.png }
   - { min_zoom: 12, max_zoom: 19, name: cable, image: cable.png }