User Tools

Site Tools


map_suite_desktop_for_wpf_how_to_use_bingmaps

This is an old revision of the document!


How to Use Bing Maps in Map Suite Desktop (WPF) Edition

This guide helps you to create a bing maps key and apply it in Map Suite.

Basically, there are two types of bing maps key. One is Basic Key, and the other one is Bing Maps Enterprise Key. ( see picture 1 below )

picture 1

How to Create a Basic Key ( Notice: This key is only for developing/testing purpose. )

  1. Log in with your Microsoft account. ( Note: If you do not have one, create one then log in. )
  2. Click My Account and select My keys.
  3. Select the options to create the key. ( Note: If you already have an existing key, you may use that key. )

Read more details about how to create a new key.

How to Create a Bing Maps Enterprise Key

  1. Go to the licensing page to read more and get a quote.

How to Use Bing Maps Key in Map Suite Desktop Edition

The BingMapsTileOverlay will work after assigning your Bing Maps Key to the property BingMapsOverlay.ApplicationId. Here below is how to do that in a sample.

  1. Download Sample Source Code and open it in Visual Studio.
  2. Open MainWindow.xaml.cs and replace the value in the appropriate field. ( see the code sample below )
  3. Restore NuGet Packages, build and run the sample.

Code Usage

  // Create a BingMapsTileOverlay and add it to wpfMap1
  BingMapsTileOverlay bingMapsOverlay = new BingMapsTileOverlay();
  bingMapsOverlay.MapStyle = BingMapsMapType.AerialWithLabels;
  bingMapsOverlay.ApplicationId = "Place Bing Maps Key Here";
  wpfMap1.Overlays.Add(bingMapsOverlay);


map_suite_desktop_for_wpf_how_to_use_bingmaps.1522428123.txt.gz · Last modified: 2018/03/30 16:42 by cloudhu