Localization of rad map legend

2 posts, 1 answers
  1. sri
    sri avatar
    21 posts
    Member since:
    Jan 2011

    Posted 29 Mar 2011 Link to this post

    I tried to  localize the Telerik map properties(aerial views, world ,city etc.,) but I am unable to do.
  2. Answer
    Andrey avatar
    1681 posts

    Posted 01 Apr 2011 Link to this post

    Hello sri,

    You can change the Text property value of the commands to change the labels of provider modes. The sample code is below.
    public MainPage()

         var provider =
    new BingMapProvider(MapMode.Aerial, true, "My Bing Maps key");

    var command = provider.Commands[0].Command as RoutedUICommand;
     command.Text = "Road";

     command = provider.Commands[1].Command as RoutedUICommand;
     command.Text = "Aerial";

     command = provider.Commands[2].Command as RoutedUICommand;
     command.Text = "Bird's Eye";

     command = provider.Commands[3].Command as RoutedUICommand;
     command.Text = "Show Labels";

     this.radMap.Provider = provider;


    For other properties you can use standard localization feature.
    Please take a look at the following help topic:

    All the best,
    Andrey Murzov
    the Telerik team
  3. DevCraft R3 2016 release webinar banner
Back to Top