Hello everyone.
I used Bing Map with the property bing token. but the map doesn't view.
private void MyMap_Loaded(object sender, RoutedEventArgs e)
{
foreach (Layer layer in MyMap.Layers)
if (layer is TileLayer)
(layer as TileLayer).Token = (Application.Current as Silverlight_BingToken.App).BingToken;
}
How can i define BingToken property in the code behind
<esri:Map Background="White" Name="MyMap" Loaded="MyMap_Loaded">
<esri:Map.Layers>
<bing:TileLayer ID="BingLayerLoad" LayerStyle="Road" ServerType="Production" Token="MyToken" />
</esri:Map.Layers>
</esri:Map>
Any advice?