1.系统自带图标
void MapInit()
{
Shapefile towerShapfile = new Shapefile();
//创建新的图层
if (!towerShapfile.CreateNewWithShapeID("", ShpfileType.SHP_POINT)) //此处的第一个参数不为空就会出错,不知道为什么
{
Debug.Assert(true, "\r\nline 31 , CreateNewWithShapeID失败!\r\n");
return;
}
// 指定显示随机点的范围
double xMin = 0.0;
double yMin = 0.0;
double xMax = 1000.0;
double yMax = 1000.0;
// the location of points will be random
Random rnd = new Random(DateTime.Now.Millisecond);
//随机生成点
for (int i = 0; i < 10; i++)
{
MapWinGIS.Point pnt = new MapWinGIS.Point();
pnt.x = xMin +