@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/2754232...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev