[openstreetmap/openstreetmap-website] Migrate `/export/embed.html` from leaflet to maplibre (PR #6804)
Marwin Hochfelsner
notifications at github.com
Thu Feb 12 14:22:37 UTC 2026
@hlfan 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(",");
+ new OSM.MapLibre.Marker({color: "var(--marker-blue)"})
It's the default Leaflet marker color. It was just replaced to consistently use vector images.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6804#discussion_r2799173011
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6804/review/3791311918 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260212/2b47334e/attachment-0001.htm>
More information about the rails-dev
mailing list