如何在谷歌地图 v2 中更正平滑移动标记?
本文介绍了如何在谷歌地图 v2 中更正平滑移动标记?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的应用程序中需要显示从一个点到另一个点的平滑移动"谷歌地图标记.我对动画使用以下方法:
In my application needs to display a smooth "move" google maps marker from one point to another. I use the following method for the animation:
但是由于简单地为新位置创建了一个新标记(虽然旧的没有被删除):
But as a result of simply creating a new marker to the new location (though old is not removed):
推荐答案
我从项目中复制了一些代码官方视频中提到.
I copied some of the code from the project mentioned in the official video.
我试图用这段代码重现它,而这似乎对我有用,所以希望我的代码能帮助你,即使是有点.
I tried to reproduce it with this code and this seems to be working for me, so hopefully my code would help you, even for a bit.
这篇关于如何在谷歌地图 v2 中更正平滑移动标记?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!