Using the layerlist widget (3.23 API) how can I cause all sublayers to be toggle off when the main layer is toggled off
Yes...the visibility. but I need the sublayer checkboxes to be toggled off
as well. My code depends on the action of selecting the individual
checkboxes for the sublayers. subLayerIndex returns to null when the
mainlayer is reselected but the sublayer stays visible and the checkbox
remains selected. The user, in this case, would have to deselect the
sublayer and reselect it in order for the code to evaluate properly.
On Wed, Jan 31, 2018 at 11:45 AM, Robert Scheitlin, GISP <geonet@esri.com>
Randy,
That is not what I am seeing... If I toggle a parent layer off the the visibility of all sublayers are are turned off as well.
But when you turn the main layer off, the sublayers that were active remain
active. I need all of the subLayers to be deselected when the main is
toggled off
On Wed, Jan 31, 2018 at 11:29 AM, Robert Scheitlin, GISP <geonet@esri.com>
Unless I am missing something... When the parent layer is toggled off all its sublayers are toggled off as well.
I just tested this sample to be sure.
https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=widget_layerlist_basic
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.