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

10-18-2016 04:07 AM
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);, true);

0 Kudos
0 Replies