Closed enginhazar closed 8 years ago
Hi, What do you mean? You want to have animation_complete event for a marker, and do something each time animation finishes?
I want to draw the line when you move animation
thank you for your help
2016-01-05 11:40 GMT+02:00 viskin notifications@github.com:
Hi, What do you mean? You want to have animation_complete event for a marker, and do something each time animation finishes?
— Reply to this email directly or view it on GitHub https://github.com/terikon/marker-animate-unobtrusive/issues/5#issuecomment-168948861 .
You can use animationposition_changed event, like this:
google.maps.event.addListener(mymarker, "animationposition_changed", function () {
console.log("Marker position: " + mymarker.getAnimationPosition());
//draw something with mymarker.getAnimationPosition()
});
Did my solution work for you? If so, I will close the issue.
Hi I wrote to animation complete event then, draw polyline