SharePoint 2013 introduces functionality to integrate location information and maps in SharePoint lists and location-based web and mobile apps for SharePoint with the following capabilities:
- new field type named Geolocation that enables you to annotate SharePoint lists with location information. The built-in Geolocation field can render only with Bing Maps. However, you can create a custom field by using the Geolocation field as a parent field type, for example see my blog post about using Google Maps as map service.
- Map View that displays a map (with data obtained from the Bing Maps service), using longitude and latitude entries from the Geolocation field type
Client-side rendering for Map List View in SharePoint 2013
Map List View in SharePoint 2010
But what about SharePoint 2010? Let’s discuss one approach related with customizing List View for XSLTListViewWebPart (XLV) . So, in proposed solution geographical locations are stored in Custom List and custom View is used to render data on Map using Google Maps service For example, list items
will be represented in Map View as shown below
Implementation of Map List View in SharePoint 2010
As was noted earlier for storing geographical location on a map and visualizing it in Map View we will define Custom List named GeoMap List.
GeoMap Content Type
For storing geographical locations we define the following Content Type
GeoMap List is based on Generic List with GeoMap Content Type and with custom View
XSLT stylesheet for Map List View
GeoMap rendering control
- How to: Customize the Rendering of a Field on a List View in SharePoint 2010 on MSDN
- How to: Customize a list view in apps for SharePoint using client-side rendering on MSDN