identifyParams.layerDefinitions[0] = "prod_gas = 'Yes'";
identifyParams.layerDefinitions = {"0": "prod_gas = 'Yes'"};
var layerDefAry = []; layerDefAry.push("prod_gas = 'Yes'"); identifyParams.layerDefinitions = layerDefAry;
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?geometryType=esriGeometryPoint&geometry=-96%2C38&sr=4267&layers=0&time=&layerTimeOptions=&layerdefs=prod_gas%3D%27Yes%27&tolerance=2&mapExtent=-101.980837490204%2C34%2C-93%2C43&imageDisplay=400%2C400%2C96&returnGeometry=false&maxAllowableOffset=&f=HTMLAm I not setting the .layerDefinitions correctly or is this a bug?thanks, jason
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.