1 界面搭建
地图显示视图,菜单栏
2代码
private void DrawPoint_Click(object sender, EventArgs e)
{
MapGIS.GeoObjects.Geometry.Dot dot = new MapGIS.GeoObjects.Geometry.Dot();
MapGIS.GeoObjects.Info.PntInfo PntInfo=new MapGIS.GeoObjects.Info.PntInfo();
//几何信息
dot.X = 100;
dot.Y = 100;
//参数信息
PntInfo.SymID = 1;
int[] Color = new int[3] { 255, 255, 3 };
PntInfo.OutClr = Color;
PntInfo.Height = 20;
PntInfo.Width = 20;
Display MyDisplay = mapControl1.Display;
MyDisplay.Begin();
bool s= MyDisplay.DispPoint(dot, PntInfo);
MyDisplay.End();
}
3运行效果