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

1250
0
10-18-2016 04:07 AM
AdarshSharma
New Contributor II

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

0 Kudos
0 Replies