This Custom HTML Widget allows for you to add a Google Map to your Group Details page without any customizations to SW what-so-ever.
How? It utilizes the World Map Lat / Long fields for Groups! Super easy if you have an existing API KEY for Google Maps.
If your group doesn't have the Lat / Long field, it adds a customizable message and resizes the DIV.
The map will re-center based on the group Lat / Long once rendered.
1) Add Custom HTML Widget into the Group Detail page
2) Paste the contents of the attached code into the Custom HTML Resource and add your own APIKEY for googleapi.
3) Make sure your groups have the Latitude and Longitude World Map fields filled in.
4) Optional: Uncomment out the //var image = response.d.Rows[i][5]; and //icon: image lines to use the status icon of the location rather than the google pin.
Originally inspired by lharbour
Top Comments