Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/219.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Arcgis for Android 10.2地图视图缩小级别_Android_Arcgis - Fatal编程技术网

Arcgis for Android 10.2地图视图缩小级别

Arcgis for Android 10.2地图视图缩小级别,android,arcgis,Android,Arcgis,我需要缩小我的地图。我试过--mMapView.zoomout();--但它只缩小了1级,我想进一步缩小。我知道可以在.xml中使用mappoptions.ZoomLevel=“5”--但我想在活动类中使用。需要一些指南,非常感谢。我认为,这是处理动画缩放的最佳方法,甚至,如果您添加任何其他层(如“一张地图”),它也会很好地工作 MapOptions option = new MapOptions(MapOptions.MapType type); // Sets zoom level. opt

我需要缩小我的地图。我试过--mMapView.zoomout();--但它只缩小了1级,我想进一步缩小。我知道可以在.xml中使用mappoptions.ZoomLevel=“5”--但我想在活动类中使用。需要一些指南,非常感谢。

我认为,这是处理动画缩放的最佳方法,甚至,如果您添加任何其他层(如“一张地图”),它也会很好地工作

MapOptions option = new MapOptions(MapOptions.MapType type);
// Sets zoom level.
option.setZoom(int zoom);

// Switches basemap by the given options.
mMapView.setMapOptions(MapOptions options);
如果您想通过适当的缩放显示当前位置,请使用下面的代码

mMapView.getLocationDisplayManager().setAutoPanMode(LocationDisplayManager.AutoPanMode.LOCATION);

mMapView.getLocationDisplayManager().start();

更多细节会有所帮助,包括一些代码。你到底在用什么图书馆?
mMapView.getLocationDisplayManager().setAutoPanMode(LocationDisplayManager.AutoPanMode.LOCATION);

mMapView.getLocationDisplayManager().start();