如何沿路线为自定义 Google 地图标记设置动画? [英] How to animate a custom Google Maps marker along a route?
本文介绍了如何沿路线为自定义 Google 地图标记设置动画?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用 JavaScript 和 Google Maps API 为手持设备编写了一个小型应用程序,现在我需要使用计时器功能将我的标记图标沿路线移动到地图上的任何位置.我有一个男人图标,我需要在地图上自动移动它.我该怎么做?
I have written a small application for a handheld device using JavaScript and Google Maps API's, now II need to move my marker icon anywhere on the map along a route using a timer function. I have a man icon and I need to move it automatically on the map. How can I do this?
推荐答案
一个很酷的例子在这里:
A pretty cool example is here:
http://www.kmcgraphics.com/google/
这篇关于如何沿路线为自定义 Google 地图标记设置动画?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文