Google Maps API: Change marker animation speed

时光总嘲笑我的痴心妄想 提交于 2020-01-21 11:01:26

问题


Google Maps API v3 currently supports two types of animation for markers: DROP and BOUNCE

Is there a way I can speed up the BOUNCE or slow down the DROP animation?


回答1:


Google Maps API doesn't support animation properties or customization, just the ability to select "drop" or "bounce" as you said.

It should be possible to apply custom animations to marker elements through jQuery or other framework. Alternatively you could supply an animated GIF as a marker.



来源:https://stackoverflow.com/questions/6321975/google-maps-api-change-marker-animation-speed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!