GMap.net in C# Windows Form application

Topics: Windows Forms
Feb 27, 2012 at 5:12 AM

hi radioman,I am doing project in c#.....and i have only basic knowledge in this language..

my program is

namespace WindowsFormsApplication7
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();

            SuspendLayout();
            GMapControl MainMap = new GMapControl();
            {
                MainMap.MapProvider = GMapProviders.YahooMap;
                MainMap.Position = new GMap.NET.PointLatLng(12.9461334816182, 80.1485095977783);
                MainMap.MinZoom = 1;
                MainMap.MaxZoom = 17;
                MainMap.Zoom = 15;
                MainMap.Dock = DockStyle.Fill;
            }
            Controls.Add(MainMap);
            ResumeLayout(false);
        }
    }
}

i need to add marker to map and i need to get lat,long values from GPS receiver through serial port and show it on map..

help me please..

Coordinator
Feb 27, 2012 at 6:35 AM

i recommend you to check source of the demos, it shows some basics and how to add layers/markers/routes..

Mar 7, 2012 at 5:01 AM

hello radioman

 my trackbar zoom is not working can you help me

from demo i got this code


                trackBar1.Minimum = MainMap.MinZoom * 100;
                trackBar1.Maximum = MainMap.MaxZoom * 100;
                trackBar1.TickFrequency = 100

but its not working