我已經添加了以3D形式獲取地圖視圖的代碼,但它不起作用。地圖總是以2D模式進入。如何使用Skobbler地圖中的SKNavigationManager將導航模式設置爲3d?
這裏是我的mapView
設置
mapView.getMapSettings().setMapDisplayMode(SKMapDisplayMode.MODE_3D)
這裏是我開始導航
SKNavigationSettings navigationSettings = new SKNavigationSettings();
navigationSettings.setNavigationType(SKNavigationType.SIMULATION);
navigationSettings.setDistanceUnit(SKDistanceUnitType.DISTANCE_UNIT_MILES_FEET);
SKNavigationManager navigationManager = SKNavigationManager.getInstance();
System.out.println("Navigation MOde >>>>> "+navigationManager.getNavigationMode());
navigationManager.setMapView(mapView);
navigationManager.setNavigationListener(this);
navigationManager.startNavigation(navigationSettings);
請添加您用於配置3D導航的代碼。 – Ando
這是我的代碼,用於開始導航 SKNavigationSettings navigationSettings = new SKNavigationSettings(); \t navigationSettings.setNavigationType(SKNavigationType.SIMULATION); \t navigationSettings.setDistanceUnit(SKDistanceUnitType.DISTANCE_UNIT_MILES_FEET); \t SKNavigationManager navigationManager = SKNavigationManager.getInstance(); System.out.println(「Navigation MOde >>>>>」+ navigationManager.getNavigationMode()); \t navigationManager.setMapView(mapView); \t navigationManager.setNavigationListener(this); \t navigationManager.startNavigation(navigationSettings); –
請在問題中添加此代碼。你的mapView設置是什麼? – Ando