/// <summary> /// 更新坐标点集合 /// </summary> /// <param name="pList">坐标点集合</param> /// <returns></returns> public bool UpdatePosition(List <Core.Model.MapLngLat> pList) { Dosomething((Action)(delegate { IPolygon polygon = new PolygonClass(); IPoint newPoint = new PointClass(); IPointCollection newPointCollection = polygon as IPointCollection; foreach (var p in pList) { newPoint.PutCoords(p.Lng, p.Lat); newPointCollection.AddPoint(newPoint); } pointCollection.SetPointCollection(newPointCollection); base.Geometry = (IGeometry)pointCollection; }), true); Update(); pointList = pList; return(true); }