Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bouncy marker in Google Maps v3

In Google Maps API v2 we can set to marker an option bouncy:true. It adds to marker eye-candy ability - after dragging this marker, it is bouncing.

Is it possible to do in API v3 ?

like image 511
hsz Avatar asked Dec 04 '09 15:12

hsz


1 Answers

Here's how you do it in V3

google.maps.event.addListener(marker, "dragend", function(){

   marker.setAnimation(google.maps.Animation.BOUNCE);

});
like image 91
Ervald Avatar answered Oct 11 '22 14:10

Ervald