Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enabling "navigation" mode in skobbler Android API

Tags:

android

skmaps

I can't find a way to make my app, which currently implements SKmaps to the point of showing a route, show the route and follow the route like a car navigator.

example: enter image description here

This is my "route loading" method:

 @Override
public void onAllRoutesCompleted() {
    SKNavigationSettings navigationSettings = new SKNavigationSettings();
    navigationSettings.setNavigationType(SKNavigationSettings.SKNavigationType.REAL);
    navigationSettings.setNavigationMode(SKNavigationSettings.SKNavigationMode.CAR);
    navigationSettings.setCcpAsCurrentPosition(true);
    navigationSettings.setFcdEnabled(true);
    SKNavigationManager navigationManager = SKNavigationManager.getInstance();
    navigationManager.setMapView(mapView);
    navigationManager.setNavigationListener(MainActivity.this);
    navigationManager.startNavigation(navigationSettings);
}
like image 909
CptEric Avatar asked Oct 20 '22 04:10

CptEric


1 Answers

found it on the demo app code.

mapView.getMapSettings().setMapDisplayMode(SKMapSettings.SKMapDisplayMode.MODE_3D);
like image 144
CptEric Avatar answered Oct 21 '22 22:10

CptEric