From f833e1dc3380c65a62842265e481ec98a7e0a5cb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Minh=20Nguy=E1=BB=85n?= Date: Mon, 10 Nov 2025 17:33:28 -0800 Subject: [PATCH] Corrected MIME type of exported directions GeoJSON --- app/assets/javascripts/index/directions-route-output.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/index/directions-route-output.js b/app/assets/javascripts/index/directions-route-output.js index 36a49d47d..cbad36f81 100644 --- a/app/assets/javascripts/index/directions-route-output.js +++ b/app/assets/javascripts/index/directions-route-output.js @@ -130,7 +130,7 @@ OSM.DirectionsRouteOutput = function (map) { writeSteps(route); }); - const blob = new Blob([JSON.stringify(polyline.toGeoJSON())], { type: "application/json" }); + const blob = new Blob([JSON.stringify(polyline.toGeoJSON())], { type: "application/geo+json" }); URL.revokeObjectURL(downloadURL); downloadURL = URL.createObjectURL(blob); $("#directions_route_download").prop("href", downloadURL); -- 2.39.5