如何解决如何保存地图并使用ArcGIS Run-time for Android重新加载
我将学习适用于android的Arcgis运行时SDK,并且可以通过示例文档成功显示地图,但是当我将形状文件导入地图时,我不知道如何保存该地图并加载它再次。
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的帮助,有人可以给我一些帮助吗?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。