.net x64
1.代码实例化supermap控件
private Workspace workspace1 = new Workspace();
// SceneControl sceneControl = new SceneControl();//新建一个场景
MapControl mapControl1 = new MapControl();
//WorkspaceControl workspaceControl1 = new WorkspaceControl();
public Form1()
{
InitializeComponent();
// workspaceControl1.Dock = DockStyle.Fill;
// panel3.Controls.Add(workspaceControl1);
//layersControl1.Dock = DockStyle.Fill;
// panel4.Controls.Add(layersControl1);
// workspaceControl1.WorkspaceTree.NodeMouseClick += WorkspaceTree_NodeMouseClick;//添加鼠标单击事件
// workspaceControl1.WorkspaceTree.NodeMouseDoubleClick += WorkspaceTree_NodeMouseDoubleClick;//添加鼠标双击事件
// sceneControl.Dock = DockStyle.Fill;//让场景填充满对话框
// panel1.Controls.Add(sceneControl);//将新建的三维场景添加到panel1中
mapControl1.Dock = DockStyle.Fill;//让场景填充满对话框
splitContainer1.Panel2.Controls.Add(mapControl1);//将新建的三维场景添加到panel1中
mapControl1.Map.Workspace = workspace1;
}
2.平台x64
引用也是x64的