[openstreetmap/openstreetmap-website] Migrate `/export/embed.html` from leaflet to maplibre (PR #6804)

Marwin Hochfelsner notifications at github.com
Tue Mar 24 07:00:40 UTC 2026


@hlfan commented on this pull request.



>  
-    map.on("moveend", this._update, this);
+  const bbox = (args.get("bbox") || "-180,-90,180,90").split(",");
+  map.fitBounds([[bbox[0], bbox[1]], [bbox[2], bbox[3]]], { animate: false });

I see. A zoom level flooring conditional in OSM.MapLibre.Map.fitBounds is clean enough for now and presumably easier to remove with the upstream fix in Q3.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6804#discussion_r2979456875
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/6804/review/3996774818 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260324/9741ea32/attachment.htm>


More information about the rails-dev mailing list