Hello everyone. Some days ago I discovered that you can use Google Maps to visualize contact or address information on a map. Since I thought that this is pretty cool I wanted to share this information with you.
Before I uploaded the script I changed the following variables:
var useCoordinates = false; var hideMapUntilClick = false;
I set those variables to false since I wanted to use address information instead of coordinates and I wanted the map to open up by default without having to enable it manually.
Now create a Contacts List. It has already all fields we need to test our Google Maps Script. I called my Contacts List “Addresses”.
Next step: Now add your Contacts List and a Content Editor Webpart to your SharePoint page.
Now your SharePoint page will look like this: (Don´t worry, the map will load after you have at least created one entry in your Contacts List.)
Now we will create our first entry. You need to fill out the following fields to make it work:
- ZIP/Postal Code
I added the address of the Stephansdom (a famous building in Austria) and the Statue of Liberty in the USA to test the Script.
Now Google Maps will show on your SharePoint page and mark your entries on the map.
That´s it. Pretty simple and cool, right? (By the way: You can download the Script I used for my example from here.)
Important note: I did not create this script. I just discovered it and wanted to share it. Please give the guy who created this script some credit for his awesome work. (For more information about this topic have a look at the sources.)