<?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: Export Web Map / Print Task, force BaseMap min scale in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/export-web-map-print-task-force-basemap-min-scale/m-p/17563#M450</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so, this isn't so much a solution, but a workaround to avoid the 'map data not available' tiles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this code will force the print service to draw at the last available scale of the basemap. you must find the last scale for your specific area. &lt;A href="http://services.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer" title="http://services.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer" rel="nofollow noopener noreferrer" target="_blank"&gt;World_Topo_Map (MapServer)&lt;/A&gt;&amp;nbsp; For my area, the basemap quits at Level 20, so I set the scale to 847 which is just barely past halfway between Level 19 (1128) and Level 20 (564)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the end user does not get the exact scale that they see on the screen, but they also don't get the dreaded 'map data not available' tiles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is in the Print Widget's Print.js about line 270 (V1.3). I added the else statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;printDefInspector: function(printDef) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; //do what you want here then return the object.
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (this.preserve.preserveScale === 'force') {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printDef.mapOptions.scale = this.preserve.forcedScale;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; else if (printDef.mapOptions.scale &amp;lt; 847) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printDef.mapOptions.scale = 847;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; return printDef;
},&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 20:42:28 GMT</pubDate>
    <dc:creator>DaveOrlando</dc:creator>
    <dc:date>2021-12-10T20:42:28Z</dc:date>
    <item>
      <title>Export Web Map / Print Task, force BaseMap min scale</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/export-web-map-print-task-force-basemap-min-scale/m-p/17561#M448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to force the BaseMap to draw at its minimal scale, instead of receiving 'Map data not available' tiles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess JavaScript is allowing the BaseMap to draw past the last scale but the Print Service does not?.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very tough to explain to a public user that what they see is NOT what they get.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 22:35:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/export-web-map-print-task-force-basemap-min-scale/m-p/17561#M448</guid>
      <dc:creator>DaveOrlando</dc:creator>
      <dc:date>2016-02-01T22:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map / Print Task, force BaseMap min scale</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/export-web-map-print-task-force-basemap-min-scale/m-p/17562#M449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at &lt;A href="https://developers.arcgis.com/javascript/jssamples/map_switch_layer_on_zoom.html" title="https://developers.arcgis.com/javascript/jssamples/map_switch_layer_on_zoom.html"&gt;Specify LODs (levels of detail) | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 22:40:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/export-web-map-print-task-force-basemap-min-scale/m-p/17562#M449</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2016-02-01T22:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map / Print Task, force BaseMap min scale</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/export-web-map-print-task-force-basemap-min-scale/m-p/17563#M450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so, this isn't so much a solution, but a workaround to avoid the 'map data not available' tiles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this code will force the print service to draw at the last available scale of the basemap. you must find the last scale for your specific area. &lt;A href="http://services.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer" title="http://services.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer" rel="nofollow noopener noreferrer" target="_blank"&gt;World_Topo_Map (MapServer)&lt;/A&gt;&amp;nbsp; For my area, the basemap quits at Level 20, so I set the scale to 847 which is just barely past halfway between Level 19 (1128) and Level 20 (564)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the end user does not get the exact scale that they see on the screen, but they also don't get the dreaded 'map data not available' tiles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is in the Print Widget's Print.js about line 270 (V1.3). I added the else statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;printDefInspector: function(printDef) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; //do what you want here then return the object.
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (this.preserve.preserveScale === 'force') {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printDef.mapOptions.scale = this.preserve.forcedScale;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; else if (printDef.mapOptions.scale &amp;lt; 847) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printDef.mapOptions.scale = 847;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; return printDef;
},&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:42:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/export-web-map-print-task-force-basemap-min-scale/m-p/17563#M450</guid>
      <dc:creator>DaveOrlando</dc:creator>
      <dc:date>2021-12-10T20:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Export Web Map / Print Task, force BaseMap min scale</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/export-web-map-print-task-force-basemap-min-scale/m-p/1031521#M20407</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I was wondering if anyone found another solution or workaround to this issue ?&lt;BR /&gt;I would really like to avoid having to change the printing scale so that it matches the minimum available scale of the basemap (as we're talking about scales around 200 the change is really obvious from one to another)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 15:24:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/export-web-map-print-task-force-basemap-min-scale/m-p/1031521#M20407</guid>
      <dc:creator>CartoPlus</dc:creator>
      <dc:date>2021-03-01T15:24:46Z</dc:date>
    </item>
  </channel>
</rss>

