Using Latitude & Longitude

Sep 21, 2010 at 1:44 AM

Hi,

I am quite new with this GoogleMap Control and can somebody teach me on how to find a location by using latitude and longitude.

I am creating a simple application to locate vehicle so I need to use coordinate instead of address. Below is my code but it is not working.

 

            string address = _txtAddress.Text;
            string latitude = _latitude.Text;
            string longitude = _longitude.Text;
            double lat = double.Parse(latitude);
            double lon = double.Parse(longitude);
            googlemap1.Address = address;
            //googlemap1.Latitude = lat;
            //googlemap1.Longitude = lon;
            googlemap1.Markers.Clear();
            googlemap1.Markers.Add(new GoogleMarker(address));//, "Address: " + address));
           
Thanks!

Sep 21, 2010 at 8:04 AM

Problem solved. Thanks!