privatevoid HawaiiPointsInitialised(object sender, EventArgs e) { var dynamicService = sender asArcGISDynamicMapServiceLayer; foreach (LayerInfo fl in dynamicService.Layers) { if (fl.DefaultVisibility == false) continue; if(fl.SubLayerIds != null && fl.SubLayerIds.Length > 0) // group layer continue; FeatureLayer featureLayer = newFeatureLayer(); featureLayer.Url = dynamicService.Url + "/" + fl.ID.ToString(); featureLayer.ID = fl.Name; myMap.Layers.Add(featureLayer); } }
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.