X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/31a6d207286ed46e5ef582cfa77b76fa9d74ea9e..3d7eb387a7c3573f1a1d17df00adcaa1fb9b9fa5:/app/assets/javascripts/embed.js.erb?ds=sidebyside diff --git a/app/assets/javascripts/embed.js.erb b/app/assets/javascripts/embed.js.erb index 09e211b0a..742061fa6 100644 --- a/app/assets/javascripts/embed.js.erb +++ b/app/assets/javascripts/embed.js.erb @@ -28,7 +28,10 @@ window.onload = function () { if (args.marker) { L.marker(args.marker, {icon: L.icon({ iconUrl: <%= asset_path('images/marker-icon.png').to_json %>, - shadowUrl: <%= asset_path('images/marker-shadow.png').to_json %> + iconSize: new L.Point(25, 41), + iconAnchor: new L.Point(12, 41), + shadowUrl: <%= asset_path('images/marker-shadow.png').to_json %>, + shadowSize: new L.Point(41, 41) })}).addTo(map); }