安卓:对mapv2为移动设备绘制路径 [英] Android:Draw path on mapv2 as device moves

查看:114
本文介绍了安卓:对mapv2为移动设备绘制路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想提出一个应用程序中,我有绘制在地图上的路径,我的移动设备即可。我搜索我的教程的但都展示了绘制路径/黑白两分,但我想为绘制路径,我的设备移动
任何有关这种帮助将AP preciated。

i am making an app in which i have to draw path on map as my devices moves. I searched my tutorials but all show to draw path b/w two points but i want to draw path as my device moves. Any help regarding this will be appreciated.

推荐答案

你是什么意思为您的设备的举动?无论哪种方式,您在使用位置监听器来获得位置更新,并在每一个新的更新创造新的更新的坐标和previous一个之间的折线。

what do you mean as your device move? either way you have to get location updates using location listener and on every new update create a Polyline between the coordinates of the new update and the previous one.

更新:这里有一些帖子,告诉你如何绘制折线与方向:

UPDATE: Here are some post that show you how to draw a polyline with direction:

<一个href=\"http://stackoverflow.com/questions/14554078/is-there-a-way-to-show-road-directions-in-google-map-api-v2\">Is有没有办法来显示谷歌地图API V2路方向?

<一个href=\"http://stackoverflow.com/questions/14495030/google-map-api-v2-get-driving-directions/15053901#15053901\">Google地图API第2版 - 行车路线

我可以使用概念有吸引你想要的就行了。

I could use the concepts there to draw you the line you want.

这篇关于安卓:对mapv2为移动设备绘制路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆