O'Reilly logo

Windows Application Development Cookbook by Marcin Jamro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Obtaining a map token

As you learned in the previous chapter, you can show a map directly in your application. Unfortunately, by default, it informs a user that the map service token has not been specified. You can solve this problem by generating a map token using the Bing Maps Dev Center portal, as you will see in this recipe. Then, the obtained token should be set as a value of the MapServiceToken property of MapControl.

Getting ready

To step through this recipe, you need a project that contains a page with the MapControl control. You could use an application developed as an example in the Showing a map within a page recipe from Chapter 8, Internet-based Scenarios.

How to do it...

To obtain a map token, perform the following steps:

  1. Log in to the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required