如何显示在SKmap自定义路线 [英] How to display a custom route on 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屋!