Hi ,
Im writing a WPF app to display the map from google maps api.
I was successfuly able to get info from google weather but google maps im not able to display.I dono what is exact reason.
Below is the snippet.
string url = @"http://maps.googleapis.com/maps/api/staticmap?center=Berkeley,CA&zoom=14&size=400x400&sensor=false";
WebRequest webrequest = WebRequest.Create(url);
WebProxy proxy = new WebProxy(addressVar);
proxy.Credentials = CredentialCache.DefaultCredentials;
webrequest.Proxy = proxy;
BitmapImage bitmap1 = new BitmapImage();
bitmap1.BeginInit();
bitmap1.UriSource = new Uri(url);
bitmap1.EndInit();
imageMap.Source = bitmap1;