How to display a custom route on SKmap

2019-02-24 07:49发布

问题:

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

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

回答1:

Yes - drawTrackElement

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

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