[openstreetmap/openstreetmap-website] Minimap migration from Leaflet to MapLibre (PR #6683)
Tom Hughes
notifications at github.com
Sun Jan 18 19:15:04 UTC 2026
@tomhughes requested changes 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();
There is no `getLanguage` function on the style so this is erroring?
The old code used `maplibregl.Map.prototype.supportedLanguages` to get the list of supported languages.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6683#pullrequestreview-3675683837
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6683/review/3675683837 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260118/e6d813e7/attachment.htm>
More information about the rails-dev
mailing list