From: Anton Khorev Date: Fri, 29 Dec 2023 03:58:22 +0000 (+0300) Subject: Update main roads mapnik map key X-Git-Tag: live~843^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/511a36e965836f6f15f3c67b7c91d80e6bc83ee8 Update main roads mapnik map key --- diff --git a/app/assets/images/key/mapnik/mainroad.png b/app/assets/images/key/mapnik/mainroad.png deleted file mode 100644 index 269959b65..000000000 Binary files a/app/assets/images/key/mapnik/mainroad.png and /dev/null differ diff --git a/app/assets/images/key/mapnik/mainroad12.png b/app/assets/images/key/mapnik/mainroad12.png deleted file mode 100644 index c289a3f8c..000000000 Binary files a/app/assets/images/key/mapnik/mainroad12.png and /dev/null differ diff --git a/app/assets/images/key/mapnik/mainroad12.svg b/app/assets/images/key/mapnik/mainroad12.svg new file mode 100644 index 000000000..6bf11d915 --- /dev/null +++ b/app/assets/images/key/mapnik/mainroad12.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/app/assets/images/key/mapnik/mainroad15.svg b/app/assets/images/key/mapnik/mainroad15.svg new file mode 100644 index 000000000..96796b86e --- /dev/null +++ b/app/assets/images/key/mapnik/mainroad15.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/app/assets/images/key/mapnik/mainroad8.png b/app/assets/images/key/mapnik/mainroad8.png deleted file mode 100644 index 05b4dac85..000000000 Binary files a/app/assets/images/key/mapnik/mainroad8.png and /dev/null differ diff --git a/app/assets/images/key/mapnik/mainroad8.svg b/app/assets/images/key/mapnik/mainroad8.svg new file mode 100644 index 000000000..ab5ab3f64 --- /dev/null +++ b/app/assets/images/key/mapnik/mainroad8.svg @@ -0,0 +1,4 @@ + + + + diff --git a/app/assets/images/key/mapnik/mainroad9.svg b/app/assets/images/key/mapnik/mainroad9.svg new file mode 100644 index 000000000..75195d9fb --- /dev/null +++ b/app/assets/images/key/mapnik/mainroad9.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/config/key.yml b/config/key.yml index 5341245e5..52c59091e 100644 --- a/config/key.yml +++ b/config/key.yml @@ -1,9 +1,16 @@ mapnik: # transportation: roads.mss - - { min_zoom: 6, name: motorway, width: 52, height: 5, fill: "#e892a2", casing: "#dc2a67" } - - { min_zoom: 6, name: main_road, image: mainroad.png } - - { min_zoom: 8, name: main_road, image: mainroad8.png } - - { min_zoom: 12, name: main_road, image: mainroad12.png } + - { min_zoom: 6, name: motorway, width: 52, height: 1, line: "#e66e89", line-width: 1 } + - { min_zoom: 7, name: motorway, width: 52, height: 3, line: "#e66e89", line-width: 1.5 } + - { min_zoom: 9, name: motorway, width: 52, height: 2, line: "#e66e89", line-width: 2 } + - { min_zoom: 12, name: motorway, width: 52, height: 5, fill: "#e892a2", casing: "#dc2a67", casing-width: 0.5 } + - { min_zoom: 15, name: motorway, width: 52, height: 10, fill: "#e892a2", casing: "#dc2a67" } + - { min_zoom: 6, name: main_road, width: 52, height: 3, line: "#f6967a", line-width: 1 } + - { min_zoom: 7, name: main_road, width: 52, height: 3, line: "#f6967a", line-width: 1.25 } + - { min_zoom: 8, name: main_road, image: mainroad8.svg } + - { min_zoom: 9, name: main_road, image: mainroad9.svg } + - { min_zoom: 12, name: main_road, image: mainroad12.svg } + - { min_zoom: 15, name: main_road, image: mainroad15.svg } - { min_zoom: 13, name: track, width: 52, height: 3, opacity: .8, line: "#996600", line-width: 1.5, line-dasharray: "6 5" } - { min_zoom: 13, name: bridleway, width: 52, height: 3, line: green, line-width: 1.25, line-dasharray: "4 2" } - { min_zoom: 13, name: cycleway, width: 52, height: 1, line: blue, line-dasharray: "3 3.5" }