[openstreetmap/openstreetmap-website] Add transportation map key for opnvkarte (PR #4371)
Anton Khorev
notifications at github.com
Mon Nov 27 00:01:26 UTC 2023
I decided to check how adding a map key would work by adding one for opnvkarte.
At first I wanted to copy the images from the key at https://publictransportmap.org/. They were base64 data uris, so I added the ability to specify image sources directly in `key.yml`, otherwise they are composed as `key/<layer name>/<image name>`. But I ended up making my own images because the already existing i18n strings want to combine light rail and tram.
I only did the transportation section. Now it's possible to see if a line is a bus or a tram. Other things on that map are more obvious.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/4371
-- Commit Summary --
* Allow to specify map key image directly with uri
* Allow to omit zoom levels for map key entries
* Add transportation map key for opnvkarte
-- File Changes --
M app/assets/javascripts/leaflet.key.js (10)
M app/views/site/key.html.erb (10)
M config/key.yml (7)
M config/locales/en.yml (5)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/4371.patch
https://github.com/openstreetmap/openstreetmap-website/pull/4371.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4371
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4371 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231126/819de814/attachment.htm>
More information about the rails-dev
mailing list