Bounce a pin in google maps once

后端 未结 9 1272
渐次进展
渐次进展 2020-12-13 00:34

I want to bounce a pin on a google map once. The following code will make the marker bounce but it just keeps going...

myPin.setAnimation(google.maps.Animati         


        
9条回答
  •  生来不讨喜
    2020-12-13 01:11

    At the moment there is no built in animation for bouncing once.

    If you are OK with it bouncing twice then i strongly suggest that you use this:

    marker.setAnimation(4);

提交回复
热议问题