MissionPlanner.GMapMarkerRect.GMapMarkerRect C# (CSharp) Method

GMapMarkerRect() public method

public GMapMarkerRect ( GMap.NET.PointLatLng p ) : System
p GMap.NET.PointLatLng
return System
        public GMapMarkerRect(PointLatLng p)
            : base(p)
        {
            Pen.DashStyle = DashStyle.Dash;

            // do not forget set Size of the marker
            // if so, you shall have no event on it ;}
            Size = new System.Drawing.Size(50, 50);
            Offset = new System.Drawing.Point(-Size.Width/2, -Size.Height/2 - 20);
        }