[openstreetmap/openstreetmap-website] Migrate `/export/embed.html` from leaflet to maplibre (PR #6804)
Frank Elsinga
notifications at github.com
Sun Mar 22 21:28:45 UTC 2026
@CommanderStorm 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 });
Not sure I am following.
For raster layers, the requested bbox bounds are the same..
The bbox does not change...
Yes, I still have not gotten around to implemeting the touchpad `snapZoom` if that is what you are refering too.
Will have to postpone implementing this by about a month.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6804#discussion_r2972118147
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6804/review/3988628580 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260322/00d18758/attachment.htm>
More information about the rails-dev
mailing list