This is a migrated thread and some comments may be shown as answers.

Bing Provider

3 Answers 164 Views
Map
This is a migrated thread and some comments may be shown as answers.
Sam
Top achievements
Rank 1
Sam asked on 15 Feb 2010, 09:09 PM
I am new to using the RAD map control for Silverlight, I got it working in my own project but it doesn't seem to be using Bing for the provider. I see a method for getting a Key called VEKey.txt, what is this and how do I get it to work with Bing? I signed up for a Bing Maps Developer key but I'm not sure if I'm on the right track or not.

Thanks!
Sam

3 Answers, 1 is accepted

Sort by
0
Bartholomeo Rocca
Top achievements
Rank 1
answered on 16 Feb 2010, 08:36 AM
Hello Sam,

Once you get your Bing Maps Key, initializing the provider is as simple as instantiating new BingMapProvider instance like this:

RadMap1.Provider = new  BingMapProvider(MapMode.Aerial, true"here-goes-your-bing-map-key"); 

As for VEKey.txt -- I believe Telerik is using this file simply as a location for the Bing Map Key used in the demos.


Greetings,
Bart.
0
Sam
Top achievements
Rank 1
answered on 16 Feb 2010, 02:19 PM
Thanks Bart,

I am using the code from the Demos and it's not working with the Bing provider, here is the code ( I took the key out )

provider =

new BingMapProvider(providerMode, isLabelVisible, "MyKey");

I can only get it to work with the other provider from the demo, is there a way to test my key and see if that is the issue?


Thanks,
Sam

 

0
Sam
Top achievements
Rank 1
answered on 16 Feb 2010, 02:53 PM
I got it to work, thanks for the help!

Tags
Map
Asked by
Sam
Top achievements
Rank 1
Answers by
Bartholomeo Rocca
Top achievements
Rank 1
Sam
Top achievements
Rank 1
Share this question
or