[openstreetmap/openstreetmap-website] Directions route output module (PR #5913)
Tom Hughes
notifications at github.com
Wed Apr 9 17:34:20 UTC 2025
@tomhughes commented on this pull request.
> + row
+ .on("mouseenter", function () {
+ highlight
+ .setLatLngs(lineseg)
+ .addTo(map);
+ })
+ .on("mouseleave", function () {
+ map.removeLayer(highlight);
+ });
+ }
+
+ const blob = new Blob([JSON.stringify(polyline.toGeoJSON())], { type: "application/json" });
+ URL.revokeObjectURL(downloadURL);
+ downloadURL = URL.createObjectURL(blob);
+
+ $("#directions_content").append(`<p class="text-center"><a href="${downloadURL}" download="${
Shouldn't this, and the one that follows, be appending to the `content` parameter rather than looking it up in the DOM again?
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5913#pullrequestreview-2754232810
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5913/review/2754232810 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250409/9314f0a6/attachment.htm>
More information about the rails-dev
mailing list