X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4cf3c3b6ed7cc6ab0728b320afde5854489629fb..82ca99eea56f4091d15933e30b94e367dbcd0c8b:/app/assets/javascripts/embed.js.erb diff --git a/app/assets/javascripts/embed.js.erb b/app/assets/javascripts/embed.js.erb index 858b31302..947c377be 100644 --- a/app/assets/javascripts/embed.js.erb +++ b/app/assets/javascripts/embed.js.erb @@ -1,4 +1,4 @@ -//= require leaflet +//= require leaflet/dist/leaflet-src //= require leaflet.osm //= require i18n //= require i18n/embed @@ -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); }