ARTICLE

Bing Silverlight Map Control in Silverlight 3

Posted by Diptimaya Patra Articles | Silverlight with C# May 13, 2010
Bing Maps has released a Silverlight version which can be used with Silverlight 3. In this article we will see the basics of Bing Silverlight Map Control.
Reader Level:
Download Files:
 

Introduction

Bing Maps has released a Silverlight version which can be used with Silverlight 3. In this article we will see the basics of Bing Silverlight Map Control.

Installing Bing Maps Silverlight Control SDK 

The SDK is available in Microsoft and can be downloaded from the following link: 


After you download the SDK, install it to a target folder. The installation will copy required assemblies to the target folder.

Creating Silverlight Project

Fire up Visual Studio 2010 and create a new Silverlight 3 Project. Name it as BingMapSample.

1.gif
 
As we talked about the assemblies, these contain the Bing Silverlight Map Control.

Let's have the reference of the assemblies to the project.
 
2.gif

3.gif

To view the Map you need a key. Register your application and your application url in https://www.bingmapsportal.com/application and get a key for the Bing Map.

After you have the key, you can use the key as the CredentialProvider property value. See below XAML code.

4.gif
 
Now if you run the application you can see the Bing Map in Aerial mode.

5.gif
 
You can scroll your mouse to view your location. You can change the view to Road, or Labels also.

Hope this article helps.

erver'>
Login to add your contents and source code to this article
post comment
     

Thank you so much,

I was planning to add Bing Maps inside Silverlight and show it in Sharepoint portal :)

That article will surely help me out!

Posted by Ibrahim Ersoy May 13, 2010
COMMENT USING
PREMIUM SPONSORS
DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and add new content to existing PDF documents from within your applications.
Get Career Advice from Experts
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.