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