X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/31a6d207286ed46e5ef582cfa77b76fa9d74ea9e..c533fb4b7430c5c9e194bde7a047b7479c758130:/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); }