如何显示在SKmap自定义路线 [英] How to display a custom route on SKmap

查看:144
本文介绍了如何显示在SKmap自定义路线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此​​,如果我们有一个当地的旅程规划,才有可能显示Skobbler地图上的路线?

So if we have a local journey planner, would it be possible to display the route on the Skobbler map?

是否有关于 SKMapSurfaceView 在Android SDK的任何方法传递的路线,以显示它?

Is there any method on SKMapSurfaceView on Android SDK to pass a route to display it?

推荐答案

是 - <一个href="http://developer.skobbler.com/docs/android/2.1.0/com/skobbler/ngx/map/SKMapSurfaceView.html#drawTrackElement(com.skobbler.ngx.tracks.SKTrackElement)"相对=nofollow> drawTrackElement

您可以看到在演示工程,轨道菜单项的例子。

You can see an example in the demo project, the Tracks menu entry.

如果您有航路点/段列表,那么你可以得出它们使用的 SkPolyline - 参阅入门篇: HTTP: //developer.skobbler.com/getting-started/android#sec009

If you have the route points/list of segments, then you can draw them on the map using a SkPolyline - see the getting started chapter: http://developer.skobbler.com/getting-started/android#sec009

这篇关于如何显示在SKmap自定义路线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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