I would like to get the map click point, buffer it, and then use the resulting buffer polygon to Identify features with the IdentifyTask. The IdentifyTask does not execute using the code below, but if I use the evt.mapPoint, it does execute.Has anyone used a polygon as input into the IdentifyTask and can you tell me what I am doing wrong in this code?Thanks,Melefunction executeIdentifyTask(evt) {
var bufferGeometry;
params = new esri.tasks.BufferParameters();
params.bufferSpatialReference = new esri.SpatialReference({ wkid: 2223 });
params.geometries = [evt.mapPoint];
params.distances = [35];
params.outSpatialReference = map.spatialReference;
gsvc = new esri.tasks.GeometryService("http://Server/Utilities/Geometry/GeometryServer");
gsvc.buffer(params);
gsvc.on("buffer-complete", function (result) {
bufferGeometry = result.geometries[0]
identifyParams.geometry = bufferGeometry;
//identifyParams.geometry = evt.mapPoint;
identifyParams.mapExtent = map.extent;
identifyTask.execute(identifyParams);
});