.cs
GooglePoint GP = new GooglePoint(); GP.Address = txtAddress.Text; //GeocodeAddress() function will geocode address and set Latitude and Longitude of GP(GooglePoint) to it's respected value. if (GP.GeocodeAddress(txtAPIKey.Text)) { //Once GP is geocoded, you can add it to google map. GP.InfoHTML = GP.Address; //Set GP as center point. GoogleMapForASPNet1.GoogleMapObject.CenterPoint = GP; //Clear any existing GoogleMapForASPNet1.GoogleMapObject.Points.Clear(); //Add geocoded GP to GoogleMapObject GoogleMapForASPNet1.GoogleMapObject.Points.Add(GP); GoogleMapForASPNet1.GoogleMapObject.ZoomLevel = 15; GoogleMapForASPNet1.GoogleMapObject.ShowDirections = true; }
var marker = new GMarker(point); map.addOverlay(marker); marker.openInfoWindow(address);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)