开发者

cannot draw path on Android GoogleMaps

I'm using the algorithm provided here J2ME/Android/BlackBerry - driving directions, route between two locations for drawing a route on the map. But some times, even if i have all the point to be drawn, the path displayed on the map isn't complete.

开发者_运维技巧

Can somebody tell me why? Thanks!


finnally I found the answer: on the KML file tag "coordinates" apears more that once when the route is a long one. The alghoritm uses an array to store coordinates, that is initialized every time the tag coordinates apear in the KML file. All you have to do is to store cordinates in an ArrayList.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜