Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
        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);
        }