Monday, August 19, 2013

Implementation of Bing Maps in Windows 8 app



Application Name: This can be anything you want. It’s mainly meant for your own information and to make it easier for you to manage your keys.
Application URL: This is an optional value that is mainly meant for your own information.
Key Type: There are three choices. If you are creating an asset tracking or internal application then you will need an enterprise key. Otherwise choose basic. Note you need a licensed account to create enterprise keys.
Application type: If you are creating an asset tracking or internal application then you will need to choose either private website for internal or Business Asset Management. Otherwise choose Windows Metro Style App.
To do this, right click on the References folder and press Add Reference. Select Windows -> Extensions select Bing Maps for C#, C++ and Visual Basic. If you do not see this option ensure that you have installed the Bing Maps SDK for Windows 8 style apps. While you are here also add a reference to the Microsoft Visual C++ Runtime Package as this is required by the Bing Maps SDK when developing using C# or Visual Basic.
A reference to the Microsoft Visual C++ Runtime Package is required by the Bing Maps SDK when developing using C# or Visual Basic.
You may notice that there is a little yellow indicator on the references that you just added. The reason for this is that the Bing Maps SDK requires that you set the Active solution platform in Visual Studio.

Open up the MainPage.xaml page or the XAML file you want to include Bing Maps in. Add a reference to the Bing Maps API in the namespaces. In the body of the page add a Map element and insert a Bing Maps key. This is where the Bing Maps control will be displayed.

Press F5 for run the app. Start reading more and more about Bing Maps and create something impressive.

No comments:

Post a Comment