Interactive Google Map Web Part for Sharepoint 2010

 Computer, Sharepoint, Software  Comments Off on Interactive Google Map Web Part for Sharepoint 2010
Dec 202011
 
Share

I needed a way to display an interactive Google Map against a Sharepoint list over SSL. I did a slight modification to Mazin’s great Google Map Web Part on Codeplex.

In MapWebPart.cs – Look for ResolveAddress function and add the following line at the top of function.

ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };

Change the String.Format to HTTPS instead of HTTP.

Add System.Net to the References. Build and Deploy.

Here’s the link to my modified source. the .WSP is in the /bin/release folder.

And the obligatory keywords to make this solution “google-able”:  .Net C# WebClient DownloadString XMLDocument.XML https://maps.googleapis.com/maps/api Google Maps Web Part