Bing Maps v7 - Metric and Imperial RRS feed

  • Question

  • Hi all, in 6.3 I was able to set the scale bar to metric or imperial, such as with 'SetScaleBarDistanceUnit'.  With v7, I can't seem to find exactly how I can forcibly set the scale bar distance unit to utilize metric in all cases, for instance.

    Can anyone assist me with some sample code of how this can be done?


    (Edit:  By the way, I know that the scale bar shows both metric AND imperial by default, so I should have mentioned that I'd prefer to just show one or the other as was possible in 6.3, thanks.)

    • Moved by Ricky_Brundritt Friday, March 9, 2012 3:25 PM (From:Bing Maps: Map Control and Web services Development)
    Sunday, February 13, 2011 12:19 AM


  • There is no option to show one or the other. You can however hide one or the other. They both have a class called "ScaleBar". you can search for all items with this class (only two should be returned). Then set the display to none for one or the other.
    Windows Live Developer MVP - http://rbrundritt.spaces.live.com | http://inknowledge.co.uk
    Sunday, February 13, 2011 11:28 AM