[openstreetmap/openstreetmap-website] Minimap migration from Leaflet to MapLibre (PR #6683)
Frank Elsinga
notifications at github.com
Sun Jan 18 21:03:07 UTC 2026
@CommanderStorm commented on this pull request.
> @@ -5,3 +5,26 @@ OSM.MapLibre.Locale = {
"NavigationControl.ZoomOut": OSM.i18n.t("javascripts.map.zoom.out"),
"Popup.Close": OSM.i18n.t("javascripts.map.popup.close")
};
+
+OSM.MapLibre.setMapLanguage = function (map) {
+ if (!map.style.loaded()) {
+ map.once("load", () => OSM.MapLibre.setMapLanguage(map));
+ return;
+ }
+
+ const supportedLanguages = map.style.getLanguage();
🤔 on second thought, I think this needs to be renamed.
This is is not "getting setting the language". This is specifically a OMT-hack that won't work with shortbread.
I think this is because we have `maptiler/maplibre-gl-omt-language` installed and this writes their variabltes into our prototype.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6683#discussion_r2702723173
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6683/review/3675770661 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260118/a663e258/attachment.htm>
More information about the rails-dev
mailing list