Arcgis Runtime for andriod 100 加载TPK

Posted gisoracle

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Arcgis Runtime for andriod 100 加载TPK相关的知识,希望对你有一定的参考价值。

private void LoadTPK() {

YLPub.pContext = this;
String path = YLPub.getMapData() + "/gismap/map.tpk";
mMapView = (MapView) findViewById(R.id.mapView);
try {
//String theOfflineTiledLayers = "/sdcard/Hymn/basemap/ImageBasemap.tpk";

TileCache mainTileCache = new TileCache(path);
ArcGISTiledLayer mainArcGISTiledLayer = new ArcGISTiledLayer(mainTileCache);
Basemap mainBasemap = new Basemap(mainArcGISTiledLayer);
pMap = new ArcGISMap(mainBasemap);
mMapView.setMap(pMap);

} catch (Exception e) {
YLPub.ShowMessage("文件:" + path + "不存在");
}

}

以上是关于Arcgis Runtime for andriod 100 加载TPK的主要内容,如果未能解决你的问题,请参考以下文章

Arcgis Runtime for andriod 100 加载geodatabase

Arcgis Runtime for andriod 100 加载TPK

Arcgis Runtime for andriod 100 Simple marker symbol

ArcGIS Runtime for Android 5 加载地图

用ArcGIS Runtime for Android建立简单App,展示地图

ArcGIS Runtime for Android 1 开发环境部署