Bounce a pin in google maps once

后端 未结 9 1248
渐次进展
渐次进展 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:32

      marker.setAnimation(google.maps.Animation.BOUNCE);
            setTimeout(function() {
                 marker.setAnimation(null)
            }, 6000);
    

提交回复
热议问题