码迷,mamicode.com
首页 > 其他好文 > 详细

Arcgis Runtime for andriod 100 加载TPK

时间:2017-08-21 22:20:25      阅读:252      评论:0      收藏:0      [点我收藏+]

标签:his   cgi   show   andriod   ffline   view   map   tiled   line   

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

标签:his   cgi   show   andriod   ffline   view   map   tiled   line   

原文地址:http://www.cnblogs.com/gisoracle/p/7406953.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!