User Tools

Site Tools


map_suite_desktop_for_wpf_how_to_use_bingmaps

This is an old revision of the document!


Map Suite Desktop For Wpf How to Use Bingmaps

Note: If you are using Map Suite 9.0 or previous versions of Map Suite product, please go to MapSuite 9.0 Wiki. The current page is for Map Suite 10.0 and future versions. It has different assemblies, licensing strategy and ways of distribution, and more. although the majority of previously built code should work without modification assuming the new namespaces are added. For guidance on upgrading your existing code to Map Suite 10, please check out MapSuite 10 Upgrade Guide.

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

Getting Started

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

<pic1>

How to Create Key

Basic Key

  1. Login your Microsoft account. ( Note: If you do not have one, create one then login. )
  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.

Bing Maps Enterprise Key

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

Code Sample

How to Apply Key

<pic2>

  1. Open the app.config file.
  2. Place the key to the appropriate field. (see pic2 above)

Code Usage

  // Bing maps core by using BingMapsTileOverlay()
  BingMapsTileOverlay bingMapsOverlay = new BingMapsTileOverlay();
  bingMapsOverlay.MapStyle = BingMapsMapType.AerialWithLabels;
  bingMapsOverlay.Name = "Bing Maps Aerial";
  bingMapsOverlay.ApplicationId = System.Configuration.ConfigurationManager.AppSettings["BingMapKey"];
  bingMapsOverlay.IsVisible = false;
  wpfMap1.Overlays.Add(bingMapsOverlay);
  
  // where you can add the keys 
  <appSettings>
    <add key="BingMapKey" value="Place Your Bing Maps Key Here" />
  </appSettings>


map_suite_desktop_for_wpf_how_to_use_bingmaps.1522358560.txt.gz · Last modified: 2018/03/29 21:22 by cloudhu