<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Problem To set-extent with print task in arc gis API for JavaScript. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-to-set-extent-with-print-task-in-arc-gis/m-p/587154#M54850</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H1 style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; font-size: 22px; margin: 0px 0px 0.5em; padding: 0px;"&gt;&lt;/H1&gt;&lt;H1 style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; font-size: 22px; margin: 0px 0px 0.5em; padding: 0px;"&gt;Problem to set Graphics Extent using Print Service. when i export pdf map not show properly.&lt;/H1&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff;"&gt;I am trying to zoom to the extent of a query I have.&amp;nbsp; I am having a problem when I call esri.graphicsUtils.graphicsExtent(featuresset) to get the extent.&amp;nbsp; It is returning NaN.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please suggest how to zoom map.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Javascript Code:&lt;/STRONG&gt;&lt;/P&gt;&lt;H1 style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; font-size: 22px; margin: 0px 0px 0.5em; padding: 0px;"&gt;&lt;EM&gt;&lt;STRONG&gt;queryTask.execute(query ,showResults);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/H1&gt;&lt;P&gt;&lt;/P&gt;&lt;H1 style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; font-size: 22px; margin: 0px 0px 0.5em; padding: 0px;"&gt;&lt;EM&gt;&lt;STRONG&gt; function showResults(&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;featureSet&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;) {&lt;/STRONG&gt;&lt;/EM&gt;&lt;/H1&gt;&lt;P&gt;&lt;/P&gt;&lt;H1 style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; font-size: 22px; margin: 0px 0px 0.5em; padding: 0px;"&gt;&lt;EM&gt;&lt;STRONG&gt; var myFeature = graphicsUtils&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt; .graphicsExtent(&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;featureSet&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;.features);&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt; app.map.setExtent(myFeature, true);&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/EM&gt;&lt;/H1&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="247210" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/247210_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Oct 2016 11:07:39 GMT</pubDate>
    <dc:creator>AdarshSharma</dc:creator>
    <dc:date>2016-10-18T11:07:39Z</dc:date>
    <item>
      <title>Problem To set-extent with print task in arc gis API for JavaScript.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-to-set-extent-with-print-task-in-arc-gis/m-p/587154#M54850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H1 style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; font-size: 22px; margin: 0px 0px 0.5em; padding: 0px;"&gt;&lt;/H1&gt;&lt;H1 style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; font-size: 22px; margin: 0px 0px 0.5em; padding: 0px;"&gt;Problem to set Graphics Extent using Print Service. when i export pdf map not show properly.&lt;/H1&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff;"&gt;I am trying to zoom to the extent of a query I have.&amp;nbsp; I am having a problem when I call esri.graphicsUtils.graphicsExtent(featuresset) to get the extent.&amp;nbsp; It is returning NaN.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please suggest how to zoom map.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Javascript Code:&lt;/STRONG&gt;&lt;/P&gt;&lt;H1 style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; font-size: 22px; margin: 0px 0px 0.5em; padding: 0px;"&gt;&lt;EM&gt;&lt;STRONG&gt;queryTask.execute(query ,showResults);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/H1&gt;&lt;P&gt;&lt;/P&gt;&lt;H1 style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; font-size: 22px; margin: 0px 0px 0.5em; padding: 0px;"&gt;&lt;EM&gt;&lt;STRONG&gt; function showResults(&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;featureSet&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;) {&lt;/STRONG&gt;&lt;/EM&gt;&lt;/H1&gt;&lt;P&gt;&lt;/P&gt;&lt;H1 style="color: #242729; background-color: rgba(248, 248, 248, 0.6); border: 0px; font-size: 22px; margin: 0px 0px 0.5em; padding: 0px;"&gt;&lt;EM&gt;&lt;STRONG&gt; var myFeature = graphicsUtils&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt; .graphicsExtent(&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;featureSet&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;.features);&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt; app.map.setExtent(myFeature, true);&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/EM&gt;&lt;/H1&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="247210" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/247210_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 11:07:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-to-set-extent-with-print-task-in-arc-gis/m-p/587154#M54850</guid>
      <dc:creator>AdarshSharma</dc:creator>
      <dc:date>2016-10-18T11:07:39Z</dc:date>
    </item>
  </channel>
</rss>

