identifyParams.layerDefinitions[0] = "prod_gas = 'Yes'";
I am trying to limit the results returned by the IdentifyTask by setting the IdentifyParameters.layerDefinitions. However it seems to ignore this and rather continues to return all found features from the ArcGISDynamicMapService. For instance if set...identifyParams.layerDefinitions[0] = "prod_gas = 'Yes'";
and then execute the IdentifyTask. The petroleum field polygon features where prod_gas = 'No' are still returned in the results set.
Here's a link to an esri sample server (v10) rest services directory that demonstrates this... http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Petroleum/KSFields/MapServer/identify?geo...
Am I not setting the .layerDefinitions correctly or is this a bug?
thanks, jason
identifyParams.layerDefinitions = {"0": "prod_gas = 'Yes'"};
var layerDefAry = []; layerDefAry.push("prod_gas = 'Yes'"); identifyParams.layerDefinitions = layerDefAry;