简体   繁体   English

Google Map中的动画标记

[英]Animate marker in google map

I'm going to develop a location based game in android. 我将在android中开发基于位置的游戏。 I want to move a marker from one coordinate to other.Two points are in line! 我想将一个标记从一个坐标移动到另一个坐标,两个点在一条直线上! I'm trying to split the distance with points every 1m in order to create frames. 我正在尝试以每1m的点数分割距离,以创建框架。 Any help with the stracture of the class? 对课程结构有帮助吗?

Thanks you 谢谢

If you are using Google Maps Android API v2, you may want to check out Android Maps Extensions library , which adds animatePosition(LatLng) method to Marker s. 如果您使用的是Google Maps Android API v2,则可能要签出Android Maps Extensions库 ,该animatePosition(LatLng)方法添加到Marker

You can see animated markers on the demo app here: https://play.google.com/store/apps/details?id=pl.mg6.android.maps.extensions.demo 您可以在以下演示应用程序上查看动画标记: https : //play.google.com/store/apps/details?id=pl.mg6.android.maps.extensions.demo

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM