public MapControl()
{
InitializeComponent();
this.gMapControl1.DragButton = System.Windows.Forms.MouseButtons.Left;
this.gMapControl1.CanDragMap = false;
this.gMapControl1.EmptyMapBackground = System.Drawing.Color.White;
this._center = new Point2D(0, 0);
this.gMapControl1.MouseMove += new MouseEventHandler(gMapControl1_MouseMove);
this.gMapControl1.MouseDown += new MouseEventHandler(gMapControl1_MouseDown);
this.gMapControl1.MouseUp += new MouseEventHandler(gMapControl1_MouseUp);
this.gMapControl1.MouseCaptureChanged += new EventHandler(gMapControl1_MouseCaptureChanged);
this.gMapControl1.MouseClick += new MouseEventHandler(gMapControl1_MouseClick);
this.gMapControl1.MouseDoubleClick += new MouseEventHandler(gMapControl1_MouseDoubleClick);
this.gMapControl1.MouseEnter += new EventHandler(gMapControl1_MouseEnter);
this.gMapControl1.MouseHover += new EventHandler(gMapControl1_MouseHover);
this.gMapControl1.MouseLeave += new EventHandler(gMapControl1_MouseLeave);
this.gMapControl1.MouseWheel += new MouseEventHandler(gMapControl1_MouseWheel);
this.gMapControl1.KeyDown += new KeyEventHandler(gMapControl1_KeyDown);
this.gMapControl1.KeyUp += new KeyEventHandler(gMapControl1_KeyUp);
this.gMapControl1.Click += new EventHandler(gMapControl1_Click);
this.gMapControl1.DoubleClick += new EventHandler(gMapControl1_DoubleClick);
this.gMapControl1.DragDrop += new DragEventHandler(gMapControl1_DragDrop);
this.gMapControl1.DragEnter += new DragEventHandler(gMapControl1_DragEnter);
this.gMapControl1.DragLeave += new EventHandler(gMapControl1_DragLeave);
this.gMapControl1.DragOver += new DragEventHandler(gMapControl1_DragOver);
this.gMapControl1.OnMapZoomChanged += new GMap.NET.MapZoomChanged(gMapControl1_OnMapZoomChanged);
this.gMapControl1.OnPositionChanged += new PositionChanged(gMapControl1_OnPositionChanged);
this.gMapControl1.OnTileLoadComplete += new GMap.NET.TileLoadComplete(gMapControl1_OnTileLoadComplete);
this.GraphicsLayers.CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(GraphicsLayers_CollectionChanged);
}