AnsweredAssumed Answered

Forwarding query results to identify tool

Question asked by detroit on Aug 30, 2012
Latest reply on Sep 5, 2012 by detroit
i got the code

map.graphics.clear();
        var identifyTask1 = new esri.tasks.IdentifyTask(url);
        var identifyParams1 = new esri.tasks.IdentifyParameters();
        identifyParams1.tolerance = 0
        identifyParams1.returnGeometry = true;
        identifyParams1.layerIds = [layerID];
        identifyParams1.layerOption = esri.tasks.IdentifyParameters.LAYER_OPTION_ALL
        identifyParams1.width = map.width;
        identifyParams1.height = map.height;
        identifyParams1.geometry = object.geometry; // here's the geometry of the queried item
        identifyParams1.mapExtent = map.extent;

when i execute the task i get several results instead of one. How can i get just the one i selected and forwarded to identify tool

thank you

Outcomes