Thank you for sharing your code. We have also included GetDetails() and GetAllDetails() in v2.3 to give you metadata information about a specific layer or all sub layers of ArcGISDynamicMapServiceLayer or ArcGISTiledMapServiceLayer.
private void Button_Click(object sender, System.Windows.RoutedEventArgs e) { var result = this.MyLegend.SelectedItems(); foreach (var item in result) MessageBox.Show(item.Description); }
private void ArcGISDynamicMapServiceLayer_Initialized(object sender, System.EventArgs e) { ArcGISDynamicMapServiceLayer layer = sender as ArcGISDynamicMapServiceLayer; foreach (var l in layer.Layers) { //TODO use this sub layer url //string.Format("{0}/{1}/f=json", layer.Url, l.ID)); } }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.