How to set navigation mode to 3d with SKNavigationManager in Skobbler maps?

431 Views Asked by At

I have added code for getting map view in 3D but its not working. Map is always coming in 2d mode.

Here's my mapView settings

mapView.getMapSettings().setMapDisplayMode(SKMapDisplayMode.MODE_3D)

Here's my code for starting navigation

SKNavigationSettings navigationSettings = new SKNavigationSettings();
navigationSettings.setNavigationType(SKNavigationType.SIMULA‌​TION); 
navigationSettings.setDistanceUnit(SKDistanceUnitType.DISTAN‌CE_UNIT_MILES_FEET); 
SKNavigationManager navigationManager = SKNavigationManager.getInstance(); 
System.out.println("Navigation MOde >>>>> "+navigationManager.getNavigationMode()); 
navigationManager.setMapView(mapView);
navigationManager.setNavigationListener(this); 
navigationManager.startNavigation(navigationSettings); 
1

There are 1 best solutions below

2
On

I found the solution for this.

Problem was not in the code but when is was running the application from eclipse it was showing 2D maps, but when I open the application directly from mobile, It worked !!!