From: Tom Hughes Date: Mon, 10 Aug 2020 17:20:23 +0000 (+0100) Subject: Fix marker paths for embedded map X-Git-Tag: live~2594 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/b74977ba8df0fa89d09f9ced27b22af4c4f36fdb?ds=inline Fix marker paths for embedded map Fixes #2763 --- diff --git a/app/assets/javascripts/embed.js.erb b/app/assets/javascripts/embed.js.erb index e76b6c356..947c377be 100644 --- a/app/assets/javascripts/embed.js.erb +++ b/app/assets/javascripts/embed.js.erb @@ -43,10 +43,10 @@ window.onload = function () { if (args.marker) { L.marker(args.marker.split(','), {icon: L.icon({ - iconUrl: <%= asset_path('images/marker-icon.png').to_json %>, + iconUrl: <%= asset_path('leaflet/dist/images/marker-icon.png').to_json %>, iconSize: new L.Point(25, 41), iconAnchor: new L.Point(12, 41), - shadowUrl: <%= asset_path('images/marker-shadow.png').to_json %>, + shadowUrl: <%= asset_path('leaflet/dist/images/marker-shadow.png').to_json %>, shadowSize: new L.Point(41, 41) })}).addTo(map); }