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); } }
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.