如何使用ArcGIS Android运行时保存地图并再次加载
我将学习Arcgis runtime SDK for android,我可以使用示例文档成功地显示地图,但当我将形状文件导入地图时,我不知道如何保存此地图并再次加载它如何使用ArcGIS Android运行时保存地图并再次加载,android,sdk,arcgis,Android,Sdk,Arcgis,我将学习Arcgis runtime SDK for android,我可以使用示例文档成功地显示地图,但当我将形状文件导入地图时,我不知道如何保存此地图并再次加载它 ShapefileFeatureTable shapefileFeatureTable = new ShapefileFeatureTable(uri); shapefileFeatureTable.loadAsync(); shapefileFeatureTable.addDon
ShapefileFeatureTable shapefileFeatureTable = new ShapefileFeatureTable(uri);
shapefileFeatureTable.loadAsync();
shapefileFeatureTable.addDoneLoadingListener(() -> {
if (shapefileFeatureTable.getLoadStatus() == LoadStatus.LOADED) {
// create a feature layer to display the shapefile
FeatureLayer shapefileFeatureLayer = new FeatureLayer(shapefileFeatureTable);
// add the feature layer to the map
mMapView.getMap().getOperationalLayers().add(shapefileFeatureLayer);
// zoom the map to the extent of the shapefile
mMapView.setViewpointAsync(new Viewpoint(shapefileFeatureLayer.getFullExtent()));
} else {
String error = "Shapefile feature table failed to load: " + shapefileFeatureTable.getLoadError().toString();
Toast.makeText(SketcherActivity.this, error, Toast.LENGTH_LONG).show();
//Log.e(TAG, error);
}
});
但是我没有找到任何帮助来保存ShapefileFeatureTable,有人能给我一些帮助吗