Fix marker paths for embedded map

Fixes #2763
This commit is contained in:
Tom Hughes 2020-08-10 18:20:23 +01:00
parent e1da786c99
commit b74977ba8d

View file

@ -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);
}