SIGN UP MEMBER LOGIN:    
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
share 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
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor
PREMIUM SPONSORS
  • Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
    Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Become a Sponsor