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

Localization of rad map legend

1 Answer 89 Views
Map
This is a migrated thread and some comments may be shown as answers.
sri
Top achievements
Rank 1
sri asked on 29 Mar 2011, 11:01 AM
I tried to  localize the Telerik map properties(aerial views, world ,city etc.,) but I am unable to do.

1 Answer, 1 is accepted

Sort by
0
Accepted
Andrey
Telerik team
answered on 01 Apr 2011, 09:46 AM
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()
{
     InitializeComponent();

     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:
http://www.telerik.com/help/silverlight/radmap-localization.html

All the best,
Andrey Murzov
the Telerik team
Tags
Map
Asked by
sri
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or