]> git.openstreetmap.org Git - rails.git/commitdiff
Update major building mapnik map key
authorAnton Khorev <tony29@yandex.ru>
Mon, 11 Dec 2023 08:50:35 +0000 (11:50 +0300)
committerAnton Khorev <tony29@yandex.ru>
Mon, 11 Dec 2023 08:50:35 +0000 (11:50 +0300)
https://github.com/gravitystorm/openstreetmap-carto/blob/47a96cb6092198ba37992351a4059336ed58ae96/style/buildings.mss#L23

app/assets/images/key/mapnik/building.png [deleted file]
app/assets/images/key/mapnik/building15.svg [new file with mode: 0644]
app/assets/images/key/mapnik/building16.svg [new file with mode: 0644]
config/key.yml

diff --git a/app/assets/images/key/mapnik/building.png b/app/assets/images/key/mapnik/building.png
deleted file mode 100644 (file)
index bc074fe..0000000
Binary files a/app/assets/images/key/mapnik/building.png and /dev/null differ
diff --git a/app/assets/images/key/mapnik/building15.svg b/app/assets/images/key/mapnik/building15.svg
new file mode 100644 (file)
index 0000000..cc05073
--- /dev/null
@@ -0,0 +1,3 @@
+<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10'>
+<rect x='.5' y='.5' width='9' height='9' fill='#b9a99c' stroke='#a99a8d' />
+</svg>
diff --git a/app/assets/images/key/mapnik/building16.svg b/app/assets/images/key/mapnik/building16.svg
new file mode 100644 (file)
index 0000000..6ff2210
--- /dev/null
@@ -0,0 +1,3 @@
+<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10'>
+<rect x='.5' y='.5' width='9' height='9' fill='#c4b6ab' stroke='#a99a8d' />
+</svg>
index 8eab1ed8d30583841a3604772bcfec0f0fffb2cf..835b1ba33d4e2fb08cc5bc4b565c98bbfcd8bbe6 100644 (file)
@@ -59,8 +59,11 @@ mapnik:
   - { min_zoom: 10, name: reserve, image: reserve.svg } # admin.mss
   - { min_zoom: 8, name: military, image: military.svg }
   - { min_zoom: 13, name: school, image: school.svg }
+  # buildings: buildings.mss
+  - { min_zoom: 14, name: building, width: 10, height: 10, fill: "#ab9793" }
+  - { min_zoom: 15, name: building, image: building15.svg }
+  - { min_zoom: 16, name: building, image: building16.svg }
   # other
-  - { min_zoom: 12, max_zoom: 19, name: building, image: building.png }
   - { min_zoom: 12, max_zoom: 19, name: station, image: station.png }
   - { min_zoom: 11, max_zoom: 19, name: summit, image: summit.png }
   - { min_zoom: 12, max_zoom: 19, name: tunnel, image: tunnel.png }