Bing Maps- geolocation column

  1. Overview bing Map

This feature was integrated  in SharePoint 2013 (automatically in SharePoint Online).  based on Bing map service  https://www.bingmapsportal.com/ISDK/AjaxV7#CreateMap1.

Mostly, there is a field type « Geolocation »  (Hidden)  that integrate any call of the Map service, and show the data in the list.  We will can also create a view from type MAP.

 

Add item:

Display Item

Create Map view

2. Installation

In SharePoint Online this column already exist.

In SharePoint On premise we need :
Bing Maps Key 
-Install SQLSysClrTypes.msi in all front-end servers.

To edit the BingMapsKey, open "SharePoint Management Shell" and execute: 
Set-SPBingMapsKey -BingKey $key
To add column to the list:
web=Get-SPWeb($urlSite)
$list=$web.Lists[$listTitle] 
$list.Fields.AddFieldAsXml("<Field Type='Geolocation' DisplayName='Location' />",
$true,[Microsoft.SharePoint.SPAddFieldOptions]::Default)

 

 

 

Advertisements
This entry was posted in SharePoint 2013, sharepoint online. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s