您好,imobile支持OGC标准的在线服务,示例代码如下
String url = "
http://supermap.com.cn:8090/iserver/services/map-china400/wmts-china";
Workspace workspace = new Workspace();
DatasourceConnectionInfo info = new DatasourceConnectionInfo();
info.setServer(url);
info.setEngineType(EngineType.OGC);
info.setDriver("WMTS");
info.setAlias("iserver_wmts");
Datasource datasource = workspace.getDatasources().open(info);
if (datasource == null){
Toast.makeText(this,"数据源打开失败",Toast.LENGTH_SHORT).show();
return;
}