Dear all,
I???m using flex builder version 3 (SDK 3.3) and ARCGIS Flex APIs version 1.2
I tried to build identify module using identify task but I have big problem when I using it to identify on multiple layers as follows:
private function doIdentify(graphic:Graphic):void
{
if (identifyByAllLayers)
{
var LayerObject:Object=null;
if (identifyBy == "Point")
LayerObject=servicesCombobox_Point.selectedItem;
else if (identifyBy == "Polygon" && drawMode == "notBuffer")
LayerObject=servicesCombobox_Polygon.selectedItem;
else if ((identifyBy == "Point" && drawMode == "buffer") || (identifyBy == "Polygon" && drawMode == "buffer"))
LayerObject=servicesCombobox_Buffer.selectedItem;
for (var y:int=0; y < map.layers.length; y++)
{
if (map.layers.url.indexOf(LayerObject.mapServiceName, 0) != -1)
{
for (var x:int=0; x < map.layers.visibleLayers.length; x++)
{
arrLayerIds.push(Number(map.layers.visibleLayers));
}
break;
}
}
}
identifyParams.layerIds=arrLayerIds;
identifyParams.width=map.width;
identifyParams.height=map.height;
identifyParams.geometry=graphic.geometry;
identifyParams.mapExtent=map.extent;
identifyParams.tolerance=2;
identifyParams.spatialReference=map.spatialReference;
identifyTask.execute(identifyParams, new AsyncResponder(myResultFunction, myFaultFunction, graphic));
}
The error occur in this case is faultCode:500 faultString:'Unable to perform identify. Please check your parameters' faultDetail:''
Please help me urgently in this issue