2

I am using skmaps for my Android application. Route is calculated and is drawn on Map, when navigation starts , the blue circle arrow didnot move along with route(screen doesn't follow the cursor) and soon it was out of view. User have to have to keep adjusting the screen to bring the arrow in view again.

Please help in this.

techroid
  • 477
  • 4
  • 11

1 Answers1

2

You have to set the "setFollowPositions" flag to true - this way the map will automatically recenter with the user position updates.

For a more complex navigation scenario, check the "Car Navigation UI" example in the demo project.

Ando
  • 11,199
  • 2
  • 30
  • 46
  • Thanks, Please guide how to set it, as i am not able to setFollowPositions variable to true/false value – techroid Aug 30 '16 at 06:33
  • I am not able to find setFollowPositions flag inside SKMapSettings class – techroid Aug 30 '16 at 06:57
  • which SDK version are you using? In 3.0.X is should be setFollowPositions, prior to that it was setFollowerMode: http://developer.skobbler.com/docs/android/2.5.1/com/skobbler/ngx/map/SKMapSettings.html#setFollowerMode(com.skobbler.ngx.map.SKMapSettings.SKMapFollowerMode) – Ando Aug 30 '16 at 17:47
  • yes i am using 2.5.x one. Please suggest which follower mode should i use? POSITION or POSITION_PLUS_HEADING or NAVIGATION – techroid Aug 31 '16 at 08:30
  • Please answer i am using POSITION_PLUS_HEADING but it didnt position arrow in center. @Ando – techroid Sep 08 '16 at 09:29