[openstreetmap/openstreetmap-website] Migrate `/export/embed.html` from leaflet to maplibre (PR #6804)
Marwin Hochfelsner
notifications at github.com
Mon Mar 23 09:29:47 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 });
leaflet automatically snaps to the highest integer zoom level that fits the bbox, maplibre usually sets a fractional zoom.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6804#discussion_r2973844978
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6804/review/3990413708 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260323/8d4982d8/attachment-0001.htm>
More information about the rails-dev
mailing list