Esempio n. 1
0
        /// <summary>
        /// Clone this instance
        /// </summary>
        public override DrawObject Clone()
        {
            DrawPolygon drawPolygon = new DrawPolygon();

            drawPolygon.property    = this.property.Clone();
            drawPolygon.PointsArray = new List <PointLatLng>(PointsArray);
            FillDrawObjectFields(drawPolygon);
            return(drawPolygon);
        }
Esempio n. 2
0
        public override void OnMouseDown(MapControl control, MouseEventArgs e, int zoom)
        {
            var obj = new DrawPolygon(e.X, e.Y, zoom, TOOL_TYPE.polygon);

            AddNewObject(control, obj);
        }