From: Anton Khorev Date: Sun, 31 Dec 2023 03:47:10 +0000 (+0300) Subject: Add cities to mapnik map key X-Git-Tag: live~796^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/06a40fda9353fcda6b210261b83ca8e37fa5ad5d Add cities to mapnik map key --- diff --git a/app/assets/images/key/mapnik/capital4.svg b/app/assets/images/key/mapnik/capital4.svg new file mode 100644 index 000000000..712c904d0 --- /dev/null +++ b/app/assets/images/key/mapnik/capital4.svg @@ -0,0 +1,4 @@ + + + + diff --git a/app/assets/images/key/mapnik/capital7.svg b/app/assets/images/key/mapnik/capital7.svg new file mode 100644 index 000000000..69011cfa9 --- /dev/null +++ b/app/assets/images/key/mapnik/capital7.svg @@ -0,0 +1,4 @@ + + + + diff --git a/app/assets/images/key/mapnik/city4.svg b/app/assets/images/key/mapnik/city4.svg new file mode 100644 index 000000000..542236cad --- /dev/null +++ b/app/assets/images/key/mapnik/city4.svg @@ -0,0 +1,3 @@ + + + diff --git a/app/assets/images/key/mapnik/city6.svg b/app/assets/images/key/mapnik/city6.svg new file mode 100644 index 000000000..40fc3aebc --- /dev/null +++ b/app/assets/images/key/mapnik/city6.svg @@ -0,0 +1,4 @@ + + + + diff --git a/config/key.yml b/config/key.yml index 52c59091e..def6283b0 100644 --- a/config/key.yml +++ b/config/key.yml @@ -34,6 +34,11 @@ mapnik: - { min_zoom: 11, name: apron_only, width: 26, height: 10, fill: "#dadae0" } # landcover.mss # administrative boundaries: admin.mss - { name: admin, width: 52, height: 2, fill: "#8d618b88" } + # places: placenames.mss + - { min_zoom: 4, max_zoom: 6, name: capital, image: capital4.svg } + - { min_zoom: 7, max_zoom: 7, name: capital, image: capital7.svg } + - { min_zoom: 4, max_zoom: 5, name: city, image: city4.svg } + - { min_zoom: 6, max_zoom: 7, name: city, image: city6.svg } # landcover z5: landcover.mss, water.mss - { name: [lake_only, reservoir], width: 26, height: 10, fill: "#aad3df" } - { name: intermittent_water, image: intermittent_water.svg } diff --git a/config/locales/en.yml b/config/locales/en.yml index 792dcdef1..25cb6c21e 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2321,6 +2321,8 @@ en: taxiway: "Taxiway" apron_only: "Airport apron" admin: "Administrative boundary" + capital: "Capital" + city: "City" orchard_only: "Orchard" vineyard: "Vineyard" forest_only: "Forest"