-1
我需要縮小我的地圖。我試過--mMapView.zoomout(); - 但它只能縮小1級,我想進一步縮小。我知道可以在.xml中做--mapoptions.ZoomLevel =「5」 - 但我想放入我的Activity類。需要一些指南,非常感謝。Arcgis for Android 10.2 mapView縮小級別
我需要縮小我的地圖。我試過--mMapView.zoomout(); - 但它只能縮小1級,我想進一步縮小。我知道可以在.xml中做--mapoptions.ZoomLevel =「5」 - 但我想放入我的Activity類。需要一些指南,非常感謝。Arcgis for Android 10.2 mapView縮小級別
MapOptions option = new MapOptions(MapOptions.MapType type);
// Sets zoom level.
option.setZoom(int zoom);
// Switches basemap by the given options.
mMapView.setMapOptions(MapOptions options);
我認爲,處理與動畫縮放,甚至,它的工作很好,如果你添加任何其他層像「一張圖」的最佳方式。
/* set zoom level */
double LEVEL=5;
mMapView.centerAt(lat, lng, false);
mMapView.setScale(ZOOM_LEVEL, true);
,如果你想顯示當前位置與正確使用變焦下面的代碼
mMapView.getLocationDisplayManager().setAutoPanMode(LocationDisplayManager.AutoPanMode.LOCATION);
mMapView.getLocationDisplayManager().start();
更多細節會有所幫助,其中包括一些代碼。你正在使用哪個庫? – PearsonArtPhoto