Bing Provider

4 posts, 0 answers
  1. Sam
    Sam avatar
    103 posts
    Member since:
    Feb 2009

    Posted 15 Feb 2010 Link to this post

    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
  2. Bartholomeo Rocca
    Bartholomeo Rocca avatar
    247 posts
    Member since:
    May 2006

    Posted 16 Feb 2010 Link to this post

    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.
  3. Sam
    Sam avatar
    103 posts
    Member since:
    Feb 2009

    Posted 16 Feb 2010 Link to this post

    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

     

  4. Sam
    Sam avatar
    103 posts
    Member since:
    Feb 2009

    Posted 16 Feb 2010 Link to this post

    I got it to work, thanks for the help!

Back to Top