<?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 Re: MapExtent in application not showing properly in Custom Print tool (WAB) in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapextent-in-application-not-showing-properly-in/m-p/640904#M59822</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first image is from application and second one is print out put . I am using default print widget . If you look at the both images the map extent will be different , even though if we choose map extent. Will it work like that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Application View&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/390523_pastedImage_2.png" style="width: 792px; height: 446px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Print View (PDF)&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/390566_pastedImage_3.png" style="width: 755px; height: 425px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Dec 2017 10:24:24 GMT</pubDate>
    <dc:creator>mohannainar1</dc:creator>
    <dc:date>2017-12-12T10:24:24Z</dc:date>
    <item>
      <title>MapExtent in application not showing properly in Custom Print tool (WAB)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapextent-in-application-not-showing-properly-in/m-p/640900#M59818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code I am using it for Print the Map . The code works fine and &amp;nbsp;got the output as PDF file in separate window. &amp;nbsp;&lt;/P&gt;&lt;P&gt;But the issue is map extent in the application and map extent in PDF output are not matching&amp;nbsp;exactly. "Image1" is from WAB application and "Image2" is from PDF out put . Kindly refer the attached Image for reference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var url = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fservername%2Fgis%2Frest%2Fservices%2FUtilities%2FPrintingTools%2FGPServer%2FExport%2520Web%2520Map%2520Task" rel="nofollow" target="_blank"&gt;https://servername/gis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;BR /&gt; var printTask = new PrintTask(url);&lt;BR /&gt; var params = new PrintParameters();&lt;BR /&gt; var template = new PrintTemplate();&lt;BR /&gt; template.format = "PDF";&lt;BR /&gt; template.layout = "MAP_ONLY";&lt;BR /&gt;template.layoutOptions = {"legendLayers": [legendLayers],&lt;BR /&gt; "titleText": "Map Print",&lt;BR /&gt; "authorText": "AAAAAAAA",&lt;BR /&gt; "copyrightText": "BBBBBBBB",&lt;BR /&gt; "scalebarUnit": "Kilometers"};&lt;BR /&gt; params.map = this.map;&lt;BR /&gt; params.template = template; &lt;BR /&gt; printTask.on("error",lang.hitch(this, this._printResultError));&lt;BR /&gt; printTask.execute(params, lang.hitch(this, this._printResult));&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; _printResultError:function(err)&lt;BR /&gt; {&lt;BR /&gt; &lt;BR /&gt; alert(err);&lt;BR /&gt; },&lt;BR /&gt; _printResult:function(res){&lt;BR /&gt; &lt;BR /&gt; window.open(res.url, "_blank")&lt;BR /&gt; },&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 12:21:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapextent-in-application-not-showing-properly-in/m-p/640900#M59818</guid>
      <dc:creator>mohannainar1</dc:creator>
      <dc:date>2017-12-08T12:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: MapExtent in application not showing properly in Custom Print tool (WAB)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapextent-in-application-not-showing-properly-in/m-p/640901#M59819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Mohan, if you are using WAB then why are you not using the print widget?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 13:02:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapextent-in-application-not-showing-properly-in/m-p/640901#M59819</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-12-08T13:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: MapExtent in application not showing properly in Custom Print tool (WAB)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapextent-in-application-not-showing-properly-in/m-p/640902#M59820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because we need to add custom text in the map , that's the reason we are customizing . Even though in default print widget we are facing same kind of issue. &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 10:24:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapextent-in-application-not-showing-properly-in/m-p/640902#M59820</guid>
      <dc:creator>mohannainar1</dc:creator>
      <dc:date>2017-12-11T10:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: MapExtent in application not showing properly in Custom Print tool (WAB)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapextent-in-application-not-showing-properly-in/m-p/640903#M59821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mohan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;In the&amp;nbsp;esri print widget you have an advanced button that gives you options for preserving scale, extent, etc.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/390432_Untitled-1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 12:56:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapextent-in-application-not-showing-properly-in/m-p/640903#M59821</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-12-11T12:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: MapExtent in application not showing properly in Custom Print tool (WAB)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapextent-in-application-not-showing-properly-in/m-p/640904#M59822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first image is from application and second one is print out put . I am using default print widget . If you look at the both images the map extent will be different , even though if we choose map extent. Will it work like that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Application View&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/390523_pastedImage_2.png" style="width: 792px; height: 446px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Print View (PDF)&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/390566_pastedImage_3.png" style="width: 755px; height: 425px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 10:24:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapextent-in-application-not-showing-properly-in/m-p/640904#M59822</guid>
      <dc:creator>mohannainar1</dc:creator>
      <dc:date>2017-12-12T10:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: MapExtent in application not showing properly in Custom Print tool (WAB)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapextent-in-application-not-showing-properly-in/m-p/640905#M59823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mohan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;So have you tried preserve scale?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 11:28:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapextent-in-application-not-showing-properly-in/m-p/640905#M59823</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-12-12T11:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: MapExtent in application not showing properly in Custom Print tool (WAB)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapextent-in-application-not-showing-properly-in/m-p/640906#M59824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 11:51:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapextent-in-application-not-showing-properly-in/m-p/640906#M59824</guid>
      <dc:creator>mohannainar1</dc:creator>
      <dc:date>2017-12-12T11:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: MapExtent in application not showing properly in Custom Print tool (WAB)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapextent-in-application-not-showing-properly-in/m-p/640907#M59825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mohan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Preserve extent is going to the closest you can get to your map view when printing, but as you notice it will not be identical to what is seen in the apps map. The reason is that the print service does not try to print the screen it takes all of the maps Map Services and graphics and back on the server re-builds the map and produces the image to print (that's just the way it is).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 12:07:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapextent-in-application-not-showing-properly-in/m-p/640907#M59825</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-12-12T12:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: MapExtent in application not showing properly in Custom Print tool (WAB)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapextent-in-application-not-showing-properly-in/m-p/640908#M59826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Robert . Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 12:20:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapextent-in-application-not-showing-properly-in/m-p/640908#M59826</guid>
      <dc:creator>mohannainar1</dc:creator>
      <dc:date>2017-12-12T12:20:30Z</dc:date>
    </item>
  </channel>
</rss>

