[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Collapse]Map Control
   [Expand]Getting Started
    Layers
   [Expand]Coordinate Systems
   [Expand]Map Image Data
   [Expand]GIS Data
   [Expand]Vector Data
   [Expand]Visual Elements
   [Collapse]Examples
    [Collapse]General
      How to: Add a Map Control at Design Time
      How to: Create a Map Control via Code
      How to: Get a Bing Maps Key
      How to: Add a Mini Map
      How to: Format Coordinates Displayed in the Navigation Panel
      How to: Show Additional Information Over the Map
    [Expand]Map Image Data
    [Expand]GIS Data
    [Expand]Vector Data
    [Expand]Printing and Exporting
   [Expand]End-User Features
   [Expand]Product Information
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

How to: Get a Bing Maps Key

Map applications require a Bing Maps key to use the Bing Maps' image (BingMapDataProvider) and GIS data providers (BingSearchDataProvider, BingGeocodeDataProvider, BingRouteDataProvider, and BingElevationDataProvider). A map image layer displays the following message if no key is assigned to the BingMapDataProvider.BingKey property:

Note

Information layers that use Bing Maps GIS services to provide data do not show such messages. You can handle the LayerBase.Error event to monitor the authorization-related exceptions.

The message suggests you visit the https://www.microsoft.com/en-us/maps/create-a-bing-maps-key page. This page contains information about the available key types. This guide explains how to create a Basic Key:

  1. Expand the Basic Key section using its drop-down arrow.

  2. Study information about how you can use a Basic Key.

  3. Click the GET THE BASIC BING MAPS KEY > button to go to Bing Maps Portal.

  4. On this page, click the Sign In button. You should have a Microsoft account to continue.

    Refer to the Creating a Bing Maps Account document in MSDN for detailed steps on how to create a Bing Maps account.

  5. After you login in to the Bing Maps portal, you are ready to create a Bing Maps key.

  6. Select the My Keys item from the My Account drop-down list.

  7. In the My keys section, click the corresponding link to create a new key.

  8. In the Create key form, fill a key's parameters and click the Create button.

    See the Getting a Bing Maps Key document in MSDN for more information on how to create a Bing Maps key.

  9. After you get your Bing Maps key, you should assign it to the provider's BingKey property.

Refer to the Bing Maps webpage for more information about Bing Maps services. Also, visit Microsoft Bing Maps Platform APIs' Terms of Use to get acquainted with the Bing Maps' terms of use.

Is this topic helpful?​​​​​​​