This project is read-only.

Using Latitude & Longitude

Sep 21, 2010 at 2:44 AM


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.Add(new GoogleMarker(address));//, "Address: " + address));

Sep 21, 2010 at 9:04 AM

Problem solved. Thanks!