Use GMap.net in C# Windows Form application

Topics: Windows Forms
Feb 19, 2012 at 11:03 AM

Hi

I have used GMap.net in my C# Windows Form Application, it is working fine, but i am not able to drag it to see different places on the map, the thing which i can do is just zoom in and zoom out, So can any one tell me that how i can make it drag able?

Code which i have used up till now is,

try
            {
                System.Net.IPHostEntry e = System.Net.Dns.GetHostEntry("www.bing.com");
            }
            catch
            {
                gMapControl1.Manager.Mode = AccessMode.CacheOnly;
                MessageBox.Show("No internet connection available, going to CacheOnly mode.", "GMap.NET - Demo.WindowsForms", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }

gMapControl1.MapProvider = GMapProviders.OpenStreetMap;
            gMapControl1.Position = new PointLatLng(54.6961334816182, 25.2985095977783);
            gMapControl1.MinZoom = 1;
            gMapControl1.MaxZoom = 30;
            gMapControl1.Zoom = 9;

..................

What else should i do so that i can make GMap dragable.

Regards

umair

Feb 19, 2012 at 11:32 AM

READ http://greatmaps.codeplex.com/documentation

..some people want more documentation, but they even don't read just a few lines, it's decided, no more documentation