AnsweredAssumed Answered

Problem To set-extent with print task in arc gis API for JavaScript.

Question asked by adarsh2402 on Oct 18, 2016

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);
}

 

Outcomes