ewoken / Leaflet.MovingMarker

A Leaflet plug-in to create moving marker
MIT License
342 stars 177 forks source link

How to change moving icon with custom Icon or Image. #31

Open logicalravii opened 6 years ago

logicalravii commented 6 years ago

Hi,

Ravi here, would you please tell me how i can change the moving icon with my custom icon. Please replay soon if you can.

Thanks.

Regards, Ravi Kumar.

lucahan commented 6 years ago

var myicon = L.icon({ iconUrl: 'leaf-green.png', }); var myMovingMarker = L.Marker.movingMarker([[48.8567, 2.3508],[50.45, 30.523333]], [20000],{icon:myicon}).addTo(map); myMovingMarker.start();

CaptainMik commented 5 years ago

Hi, Is it possible to set a new Image on each point of the polyline? Regards Mik