monzay

What is the reason for using both layerids and layer_option_all in identifyparams?

Discussion created by monzay on May 24, 2012
Latest reply on Jun 8, 2012 by monzay
In the identify sample http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm, the code shows using both specific layerids and the option to use all. It seems like it should be one or the other.

identifyParams.layerIds = [0,2];
identifyParams.layerOption = esri.tasks.IdentifyParameters.LAYER_OPTION_ALL;

Outcomes