Workspace wksp = new Workspace(); DataSourceConnectionInfo info = new DataSourceConnectionInfo(); info.setServer("http://map.baidu.com"); info.setEngineType(EngineType.BaiDu); info.setAlias(baidu_map); Datasource ds = wksp.getDatasources.open(info); mapControl.getMap().getLayers().add(ds.getDatasets().get(0),true);
打开百度地图这样写有问题吗?运行之后地图是空白的