主要的类:
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;
using SuperMap.Data;
using SuperMap.Mapping;
using SuperMap.UI;
namespace showLayer
{
internal class SampleRun
{
private Workspace m_workspace;
private MapControl m_mapControl;
private Layer mylayer;
private static readonly Double fontHeight = 0.4;
public Boolean m_isWaitCursor
{
get
{
return m_mapControl.IsWaitCursorEnabled;
}
set
{
m_mapControl.IsWaitCursorEnabled = value;
}
}
public SampleRun(Workspace workspace, MapControl mapcontrol)
{
this.m_workspace = workspace;
this.m_mapControl = mapcontrol;
this.m_mapControl.Map.Workspace = m_workspace;
Initialize(); //加载地图方法
}
/// <summary>
///