Skip to content

Commit

Permalink
Fix marker paths for embedded map
Browse files Browse the repository at this point in the history
Fixes #2763
  • Loading branch information
tomhughes committed Aug 10, 2020
1 parent e1da786 commit b74977b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/assets/javascripts/embed.js.erb
Expand Up @@ -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);
}
Expand Down

0 comments on commit b74977b

Please sign in to comment.