eschwid

Identify Task with Layer List

Discussion created by eschwid on Nov 18, 2011
Latest reply on Nov 18, 2011 by zjvan
I created a map using the legend and toggle service sample. The problem i am having is getting the visible layers to identify. I set up my feature layers with their default visibility as false.

Like so:

var profueltreat2011 = new esri.layers.FeatureLayer("url", { id: 'name',
        mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
        outFields: ["*"],      
        visible:false
        });

After the user toggles the layer to Visible they should be able to identify the feature. I set up the identifyparams as such:

identifyParams.layerOption = esri.tasks.IdentifyParameters.LAYER_OPTION_VISIBLE;

but the toggled layers do not identify. I appreciate any help.

Elliot

Outcomes