BingMapsLayer in WPF

908
2
Jump to solution
10-20-2017 05:39 AM
KrishnaPriya
New Contributor II

Can Someone provide me some details on how to use BingMapsLayer(arcgis runtime 100.1.0) in  a WPF application ?

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
MatveiStefarov
Esri Contributor

A Bing maps layer displays map content from a Bing Maps web service, providing access to static map tiles and imagery meta-data. Map style and culture can be customized prior to loading the layer.

The Bing Maps API key must be set prior to loading this layer, or loading will fail. There are two ways to set this key:

  1. By providing an ArcGISPortal configured with a Bing Maps key. For more information, see "How to install a Microsoft Bing Key" (esri.com).
  2. By providing a Bing Maps key directly for this layer. For more information, see "Getting a Bing Maps Key" (msdn.microsoft.com).

Here is a simple C# example, using Bing Maps a basemap with a provided API key:

var myBingLayer = new BingMapsLayer("YourBingKeyGoesHere", BingMapsLayerStyle.Aerial);
var myBasemap = new Basemap(myBingLayer);
var myMap = new Map(myBasemap);
myMapView.Map = myMap;

View solution in original post

2 Replies
MatveiStefarov
Esri Contributor

A Bing maps layer displays map content from a Bing Maps web service, providing access to static map tiles and imagery meta-data. Map style and culture can be customized prior to loading the layer.

The Bing Maps API key must be set prior to loading this layer, or loading will fail. There are two ways to set this key:

  1. By providing an ArcGISPortal configured with a Bing Maps key. For more information, see "How to install a Microsoft Bing Key" (esri.com).
  2. By providing a Bing Maps key directly for this layer. For more information, see "Getting a Bing Maps Key" (msdn.microsoft.com).

Here is a simple C# example, using Bing Maps a basemap with a provided API key:

var myBingLayer = new BingMapsLayer("YourBingKeyGoesHere", BingMapsLayerStyle.Aerial);
var myBasemap = new Basemap(myBingLayer);
var myMap = new Map(myBasemap);
myMapView.Map = myMap;
KrishnaPriya
New Contributor II

Thanks a lot... Can you help me with pushpin clustering in arcgis runtime

wpf 100. 1. 0??

Thanks in advance

0 Kudos