//add only a layer which is embedded in a single group layer dynamicMapServiceLayer.setVisibleLayers([6]); //... //make sure both the group layer and sublayer are referenced in the subLayerIds legendLayer.subLayerIds = [0,6]
dynamicMapServiceLayer.setVisibleLayers([8]); //... legendLayer.subLayerIds = [0,7,8]
"legendOptions" : { "operationalLayers" : [{ "id" : "Boundaries", "subLayerIds" : [1] }
"legendOptions" : { "operationalLayers" : [{ "id" : "Boundaries", "subLayerIds" : [8] } ] }
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.