mapView.removeLayer(currentMapLayer); currentMapLayer = new ArcGISLocalTiledLayer("file:///mnt/sdcard/"+mapFileName); mapView.addLayer(currentMapLayer); mapView.setExtent(currentMapLayer.getFullExtent());
it zooms the minimum LOD if the next level of LOD has no image, so i wonder how to do this.
Dixon, can you explain the requirements for when you switch from local map to ArcGIS Online base map? Usually when you swap maps the intention is to keep the exact same extent and zoom level.And, is the ArcGIS Online base map a "WebMap" or an ArcGIS Server Map Service (REST endpoint)?If you need to change the extent and resolution/zoom level there are methods for those that you can apply that after a layer has been added to the map, for example:zoomToResolution(Point centerPt, double res) setExtent(Geometry geometry) -Andy
zoomToResolution(Point centerPt, double res) setExtent(Geometry geometry)
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.