//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] } ] }
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.