/// <summary> /// Clone this instance /// </summary> public override DrawObject Clone() { DrawMarker drawMarker = new DrawMarker(); drawMarker.property = this.property.Clone(); drawMarker.PointsArray = new List <PointLatLng>(this.PointsArray); FillDrawObjectFields(drawMarker); return(drawMarker); }
public override void OnMouseDown(MapControl control, MouseEventArgs e, int zoom) { var obj = new DrawMarker(control.Objects.Property.ID, e.X, e.Y, zoom, TOOL_TYPE.model, control.MarkerType); AddNewObject(control, obj); }