[openstreetmap/openstreetmap-website] Migrate `/export/embed.html` from leaflet to maplibre (PR #6804)
Frank Elsinga
notifications at github.com
Sat Mar 21 15:11:39 UTC 2026
@CommanderStorm commented on this pull request.
>
- this._container.innerHTML =
- this._container.innerHTML
- .replace("{x}", this._map.getCenter().lat)
- .replace("{y}", this._map.getCenter().lng)
- .replace("{z}", this._map.getZoom());
+ if (args.has("marker")) {
+ const markerCoords = args.get("marker").split(",").map(parseFloat);
+ new maplibregl.Marker({ color: "#7ebc6f" })
Ok, is adjusted.
<img width="625" height="451" alt="image" src="https://github.com/user-attachments/assets/3fdaaeb5-68a0-4c4d-bbcb-ab0335ce9c67" />
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6804#discussion_r2969693482
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6804/review/3986135344 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260321/92eb04c0/attachment-0001.htm>
More information about the rails-dev
mailing list