<Grid.Resources> <esri:ArcGISTiledMapServiceLayer x:Key="MyTiledLayer" Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" /> <bing:TileLayer x:Key="MyBingLayer" LayerStyle="Road" Visible="True" ServerType="Production" Token="{StaticResource BingKeyString}" /> <esri:OpenStreetMapLayer x:Key="MyOpenStreetMapLayer" Style="Mapnik" /> </Grid.Resources>
private void RadioButton_Click(object sender, RoutedEventArgs e) { MyMap.Layers.Clear(); Layer layer = this.LayoutRoot.Resources[(sender as RadioButton).Tag] as Layer; MyMap.Layers.Add(layer); }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.