[openstreetmap/openstreetmap-website] Enable exporting direction paths (PR #5694)
Marwin Hochfelsner
notifications at github.com
Mon Feb 17 09:45:05 UTC 2025
@hlfan commented on this pull request.
> @@ -36,6 +36,9 @@ OSM.Directions = function (map) {
OSM.DirectionsEndpoint(map, $("input[name='route_to']"), OSM.MARKER_RED, endpointDragCallback, endpointChangeCallback)
];
+ const exportGroup = L.layerGroup([...endpoints.map(m => m.marker), polyline]);
+ let downloadURL = null;
+
Well, this doesn't need to be done for every route displayed, so I want it to be outside of a function. For the download URL, I want to be able to revoke the last blob URL when creating the new one.
For now, I could drop the marker-color assignment or just export the polyline, as the pages linked in https://github.com/openstreetmap/openstreetmap-website/issues/5224#issuecomment-2362118967 do.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5694#discussion_r1957919727
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5694/review/2620532007 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250217/a09a2743/attachment.htm>
More information about the rails-dev
mailing list