Mohamed Taher Alrefaie
Mohamed Taher Alrefaie

Reputation: 16243

How to display a custom route on SKmap

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?

Upvotes: 4

Views: 579

Answers (1)

Ando
Ando

Reputation: 11409

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

Upvotes: 6

Related Questions