[openstreetmap/openstreetmap-website] Minimap migration from Leaflet to MapLibre (PR #6683)
Frank Elsinga
notifications at github.com
Wed Jan 7 02:48:40 UTC 2026
### Description
This PR migrates the leaflet based minimaps to maplibre.
I did not fix the bug, that moving the main vs the minimaps is not synced nicely (aka, just as on osm.org) but rather rubber-string-elasic.
### How has this been tested?
Manually, everything works approximately the same.
I have a bit of trouble fully verifying that all styles work.
How does this work?
When I run the development version, only these styles seem to want to cooperate and be showable in the minimap:
- Standard
- CycleOSM
- HOT
- Shortbread
So all of the ones, that don't need API keys, according to `leaflet.osm.js` and `layers.yml`.
I think how this works is that I now need to find the production `settigs.yml` yoink me the keys from there and test that.
How is the recomend workflow there?
I think I need partial access to this here to test this (=> at least one of the keys, prefarably MapTiler to test the `OSM.MapLibre.setMapLanguage`):
https://github.com/openstreetmap/chef/blob/7e2404298d4062f4ddf2359bce45a950f6733584/cookbooks/web/recipes/rails.rb#L30
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/6683
-- Commit Summary --
* Create raster tile equivalents to leaflets definitions
* migrate the minimaps
* fix order of maplibre styles
* i18n
* i18n
* i18n
* add maybe missing imports
* eslint fix
* maybe fix i18n
-- File Changes --
M app/assets/javascripts/leaflet.layers.js (36)
M app/assets/javascripts/leaflet.map.js (14)
M app/assets/javascripts/leaflet.maptiler.js (16)
M app/assets/javascripts/maplibre.i18n.js (25)
M app/assets/javascripts/maplibre.map.js (22)
A app/assets/javascripts/maplibre.styles.js (36)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/6683.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6683.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6683
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6683 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260106/af6ab9c4/attachment.htm>
More information about the rails-dev
mailing list