AnsweredAssumed Answered

selectFeatures Query always returning 0 length

Question asked by coopermr on Jan 18, 2012
Latest reply on Nov 11, 2012 by SHarihar-esristaff
I have spent 2 days on what i think is something simple.  My Query is not working in the onclick function and i think it has something to do with my extents being defined wrong, but i'm not sure - i have checked the forums and have not seen similar issues.  I was hoping one of you might see something simple in the attached file:

Here is my extent definition:

var startExtent = new esri.geometry.Extent({"xmin":-74.487856,"ymin":40.849173,"xmax":-73.487856,"ymax":40.649173,"spatialReference":{"wkid":2263}});

Here is the onclick block - feature,length always comes back as 0.

        dojo.connect(map, "onClick", function(evt) {
          selectQuery.geometry = evt.mapPoint;
          waterHydrantsFL.selectFeatures(selectQuery, esri.layers.FeatureLayer.SELECTION_NEW, function(features) {
            if (features.length > 0) {
             //store the current feature
              updateFeature = features[0];
            } else {