//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] } ] }
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.