<!--StartFragment -->
我用的下面的代码加载天地图影像,为啥会出现大片黑色?
private void openTianMap()
{
DatasourceConnectionInfo dsInfo = new DatasourceConnectionInfo();
dsInfo.setServer("http://t0.tianditu.gov.cn/img_w/esri/wmts?tk=35052b7d544910d82dd393b183f24edf");
// dsInfo.setPassword("35052b7d544910d82dd393b183f24edf");
dsInfo.setEngineType(EngineType.MapWorldMaps);
dsInfo.setAlias("mapworld");
Datasource ds = mWorkspace.getDatasources().open(dsInfo);
if (ds != null) {
Datasets datasets=ds.getDatasets();
for(int i=0;i<datasets.getCount();i++) {
layers.add(datasets.get(i), true);
}
}
}