Problem to set Graphics Extent using Print Service. when i export pdf map not show properly.
I am trying to zoom to the extent of a query I have. I am having a problem when I call esri.graphicsUtils.graphicsExtent(featuresset) to get the extent. It is returning NaN.
Please suggest how to zoom map.
My Javascript Code:
queryTask.execute(query ,showResults);
function showResults(featureSet) {
var myFeature = graphicsUtils
.graphicsExtent(featureSet.features);
app.map.setExtent(myFeature, true);
}