c# +supermap object 10i 加载工程中的天地图不显示。源代码:
workspaceControl = new WorkspaceControl();
workspace = new Workspace();
workspace.Close();
workspaceConnectionInfo = new WorkspaceConnectionInfo(Path.Combine(root, @"E:\2023\DjiAir\DjiAir\bin\x64\Debug\Data\DB\Air2000.smwu"));
workspace.Open(workspaceConnectionInfo);
workspaceControl.WorkspaceTree.Workspace = workspace;
workspaceControl.Dock = DockStyle.Fill;
map = new Map();
map.Workspace = workspace;
map.Open(workspace.Maps[0]);
// 将地图关联到图层管理器,使其管理其中的地图图层
layersControl = new LayersControl();
layersControl.Dock = DockStyle.Fill;
//将工作空间中的地图绑定地图控件
mapControl = new MapControl();
mapControl.Map.Close();
mapControl.Map.Refresh();
mapControl.Dock = DockStyle.Fill;
mapControl.Map.Workspace = workspace;
mapControl.Map.Open(workspace.Maps[0]);
mapControl.Map.Refresh();
layersControl.Map = mapControl.Map;
splitContainerControl1.Panel1.AddControl(layersControl);
splitContainerControl1.Panel2.AddControl(mapControl);