AnsweredAssumed Answered

ArcGIS LayerList change layer on refresh

Question asked by heather_ on May 28, 2016
Latest reply on May 30, 2016 by fcbassongis

up vote0down votefavorite



Basically I have three dynamic map services and I have added all of them onto the map. Everytime I made a selection, I want the layers in my layerlist widget to change and the options displayed will be altered based on what layers are available in each of my map service.

The layer list widget I am using is this:

Currently, I call the following function everytime a different map service is selected:

function refresh(curLayer){ 
: map,
: [{ layer: curLayer
}, 'layerlist')

However, nothing has changed. Any suggestions?