AnsweredAssumed Answered

Zooming to query result extent

Question asked by on Feb 14, 2014
Latest reply on Mar 17, 2014 by schlot
I am trying to zoom to the extent of a query I have.  I am having a problem when I call esri.graphicsUtils.graphicsExtent(resultFeatures) to get the extent.  It is returning NaN.  It works for one query I have that returns 42 records but for all the other queries I have it doesn't work.  

       queryTask.execute(query, function (featureSet) {
            var resultFeatures = featureSet.features;
            var myFeatureExtent = esri.graphicsUtils.graphicsExtent(resultFeatures);
               var layerDefinitions = [];
               layerDefinitions[0] = queryString;

Any help would be appreciated.