<?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: Print Widget has limits in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-has-limits/m-p/314926#M28950</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks. Looks like the text symbol issue is a bug. I'll post a bug ID to track it once I've confirmed. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Was the text symbol posted as a bug? If so, do you know the status or have the bug ID?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Sep 2012 15:57:23 GMT</pubDate>
    <dc:creator>WillCorum</dc:creator>
    <dc:date>2012-09-05T15:57:23Z</dc:date>
    <item>
      <title>Print Widget has limits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-has-limits/m-p/314918#M28942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've gotten the print widget to do most of what we need. The only issues I have found are that it will not print a textsymbol nor a Bing aerial base map. Does anyone have any experience &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;with these two items?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 17:56:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-has-limits/m-p/314918#M28942</guid>
      <dc:creator>spencermartin</dc:creator>
      <dc:date>2012-06-18T17:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Print Widget has limits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-has-limits/m-p/314919#M28943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'll do a little research but before I get into that, which versions of the JS API and ArcGIS Server are you using?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 20:11:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-has-limits/m-p/314919#M28943</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-06-18T20:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Print Widget has limits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-has-limits/m-p/314920#M28944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;10.1 Server and 3.0 js api&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 20:32:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-has-limits/m-p/314920#M28944</guid>
      <dc:creator>spencermartin</dc:creator>
      <dc:date>2012-06-18T20:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Print Widget has limits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-has-limits/m-p/314921#M28945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks. Looks like the text symbol issue is a bug. I'll post a bug ID to track it once I've confirmed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see bing maps in the print output here:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://jsfiddle.net/zKaVn/"&gt;http://jsfiddle.net/zKaVn/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 21:37:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-has-limits/m-p/314921#M28945</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-06-18T21:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Print Widget has limits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-has-limits/m-p/314922#M28946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;On Bing maps I just confirmed that MAP_STYLE_AERIAL_WITH_LABELS is what doesn't print vs your version of MAP_STYLE_AERIAL.&amp;nbsp; Strangely similar to the textsymbol bug. Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 13:36:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-has-limits/m-p/314922#M28946</guid>
      <dc:creator>spencermartin</dc:creator>
      <dc:date>2012-06-19T13:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Print Widget has limits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-has-limits/m-p/314923#M28947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;On Bing maps I just confirmed that MAP_STYLE_AERIAL_WITH_LABELS is what doesn't print vs your version of MAP_STYLE_AERIAL.&amp;nbsp; Strangely similar to the textsymbol bug. Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 13:43:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-has-limits/m-p/314923#M28947</guid>
      <dc:creator>spencermartin</dc:creator>
      <dc:date>2012-06-19T13:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Print Widget has limits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-has-limits/m-p/314924#M28948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;On Bing maps I just confirmed that MAP_STYLE_AERIAL_WITH_LABELS is what doesn't print vs your version of MAP_STYLE_AERIAL.&amp;nbsp; Strangely similar to the textsymbol bug. Thanks.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also a bug...the print dijit is sending the wrong layer.type property to the print service. It is sending "BingMapsaerialWithLabels" instead of "BingMapsHybrid". Here's a workaround:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://jsfiddle.net/axPwz/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://jsfiddle.net/axPwz/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The key is using &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/namespace_esri.htm#setRequestPreCallback" rel="nofollow noopener noreferrer" target="_blank"&gt;esri.setRequestPreCallback&lt;/A&gt;&lt;SPAN&gt; to update the JSON that's sent to the print service. Here's the relevant code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
function fixBingHybrid(ioArgs) {
&amp;nbsp; // look for requests to the print service
&amp;nbsp; if ( ioArgs.url == app.printUrl + "/execute" ) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var webmapJson = dojo.fromJson(ioArgs.content.Web_Map_as_JSON);
&amp;nbsp;&amp;nbsp;&amp;nbsp; // check that the webmap JSON has operational layers
&amp;nbsp;&amp;nbsp;&amp;nbsp; // bing is always considered an operational layer
&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( webmapJson.operationalLayers.length ) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.forEach(webmapJson.operationalLayers, function(lyr) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // correct the type property for the bing hybrid layer
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( lyr.type &amp;amp;&amp;amp; lyr.type == "BingMapsaerialWithLabels" ) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lyr.type = "BingMapsHybrid";
&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; ioArgs.content.Web_Map_as_JSON = dojo.toJson(webmapJson);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp; }
&amp;nbsp; return ioArgs;
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And this line in the init function:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
esri.setRequestPreCallback(fixBingHybrid);
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:59:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-has-limits/m-p/314924#M28948</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2021-12-11T14:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Print Widget has limits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-has-limits/m-p/314925#M28949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using MAP_STYLE_AERIAL_WITH_LABELS the workaround you suggest works so long as no additional graphic is added. Once I add a graphic it doesn't print but does work with MAP_STYLE_AERIAL instead.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 18:47:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-has-limits/m-p/314925#M28949</guid>
      <dc:creator>spencermartin</dc:creator>
      <dc:date>2012-06-19T18:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Print Widget has limits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-has-limits/m-p/314926#M28950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks. Looks like the text symbol issue is a bug. I'll post a bug ID to track it once I've confirmed. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Was the text symbol posted as a bug? If so, do you know the status or have the bug ID?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 15:57:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-has-limits/m-p/314926#M28950</guid>
      <dc:creator>WillCorum</dc:creator>
      <dc:date>2012-09-05T15:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Print Widget has limits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-has-limits/m-p/314927#M28951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The ID for the text symbol bug is NIM080545. We're planning to fix in the next release (3.2) which should be out in a week or two. Watch the &lt;/SPAN&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/category/developer/"&gt;ArcGIS Blog's Developer feed&lt;/A&gt;&lt;SPAN&gt; for notification of when the release officially happens.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 16:16:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-widget-has-limits/m-p/314927#M28951</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-09-05T16:16:10Z</dc:date>
    </item>
  </channel>
</rss>

