DatasourceConnectionInfo KMLconnectionInfo = new DatasourceConnectionInfo(); KMLconnectionInfo.setAlias("kml");
// KMLconnectionInfo.setDriver("WMTS");
if(kmlDataSource == null){
kmlDataSource = m_mapControl.getMap().getWorkspace().getDatasources().create(KMLconnectionInfo);
}
kml = DataConversion.importKML( kmlPath,kmlDataSource,"mykml3",true);
如下图:只是显示了点和线,并没有文字显示