This project is read-only.

namespace GMap.NET.WindowsForms.Markers
{
   using System.Drawing;
   using GMap.NET.WindowsForms;

   public class GMapMarkerRect : GMapMarker
   {
      public Pen Pen;

      public GMapMarkerRect(PointLatLng p)  : base(p)
      {
         Pen = new Pen(Brushes.Red, 5);

         // do not forget set Size of the marker
         // if so, you shall have no event on it ;}
         Size = new Size(55, 55);
      }

      public override void OnRender(Graphics g)
      {
         g.DrawRectangle(Pen, new System.Drawing.Rectangle(LocalPosition.X - Size.Width / 2, LocalPosition.Y - Size.Height / 2, Size.Width, Size.Height));
      }
   }
}
Image Marker Class, and Other Markers as Time Allows

Last edited Oct 26, 2009 at 9:40 PM by radioman, version 4

Comments

ruwantha Oct 23, 2013 at 12:18 PM 
is there any option to use a name label (1,2,3... or A,B,C....) on current label ?