Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
logicalravii opened this issue Jul 2, 2018 · 2 comments
Open

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

logicalravii opened this issue Jul 2, 2018 · 2 comments

Comments

@logicalravii
Copy link

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
Copy link

lucahan commented Jul 4, 2018

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants