<?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  map with large custom features in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-with-large-custom-features/m-p/354474#M32836</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I modify&amp;nbsp; the&amp;nbsp; example online &lt;A href="https://developers.arcgis.com/javascript/3/jssamples/widget_print.html"&gt;Print | ArcGIS API for JavaScript 3.17 &lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; , I create tht 136 polygons of city boundary with local json data&amp;nbsp; on map , it&amp;nbsp; still print error！I put the code into&amp;nbsp; github &lt;A class="link-titled" href="https://github.com/yanliasdf789/Test1" title="https://github.com/yanliasdf789/Test1"&gt;GitHub - yanliasdf789/Test1: arcgis for js print error with larte features&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Sep 2016 01:28:09 GMT</pubDate>
    <dc:creator>yanli</dc:creator>
    <dc:date>2016-09-02T01:28:09Z</dc:date>
    <item>
      <title>print  map with large custom features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-with-large-custom-features/m-p/354465#M32827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I create &amp;nbsp;100 polygon features in map,then &amp;nbsp;i print the map with the features,But &amp;nbsp;I run the printTask , the server is collapse; I create 20 polygon the print the result is ok. &amp;nbsp;the &amp;nbsp;number for printTask is limit?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use the arcgis api for js 3.17!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;function ShowByZhen(id) {
 var queryTask = new esri.tasks.QueryTask("http://192.168.20.1:6080/arcgis/rest/services/zhen/MapServer/0");
 var query = new esri.tasks.Query();
 query.returnGeometry = true;
 query.outFields = ["*"];
 query.where = "1=1";
 queryTask.execute(query, ShowByZhen_ShowResults);
 queryTask.on("error", queryTaskErrorHandler);&lt;/PRE&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;function ShowByZhen_ShowResults(results) {&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;// var symbol = new esri.symbol.SimpleFillSymbol().setColor(new esri.Color([205, 192, 197,0.5])).outline.setColor(new esri.Color([189, 0, 38, 0.5]));
 var symbol = new esri.symbol.SimpleFillSymbol().setColor(new esri.Color([205, 193, 197, 0.5]));
 var fss = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,
 new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_DASHDOT, new esri.Color([205, 192, 197]), 2),
 new esri.Color([255,255,0,0.25]));
 alert(results.features.length);
 var resultCount = results.features.length;
 for(var i=0;i&amp;lt;resultCount;i++)
 {
 var mFeature = results.features&lt;I&gt;;
 var mFeatureAttribute = results.features&lt;I&gt;.attributes;
 mFeatureAttribute["moneyfinish"] = 10000*i;
 
 if (i &amp;lt; 130) {
 mFeature.symbol = fss;
 map.graphics.add(mFeature);
 
 }
 }
}&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

function Print() {
 var printUrl="http://192.168.20.1:6080/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task"
 printTask = new esri.tasks.PrintTask(printUrl, { async: true });
 params = new esri.tasks.PrintParameters();
 params.map = map;


 //*****print
 var ptemplate = new esri.tasks.PrintTemplate();
 ptemplate.layout = "A3 Landscape";
 // ptemplate.layout = "MAP_ONLY";
 ptemplate.format = "jpg";
 ptemplate.layoutOptions = {
 legendlayers: [],
 scalebarUnit: "Meters",
 titleText: Titletxt
 }
 // use the extent of the webmap in the output PDF
 ptemplate.preserveScale = false;
 params.template = ptemplate;

// params.template = "A3 Landscape";
 printTask.execute(params, printComplete);


}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:22:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-with-large-custom-features/m-p/354465#M32827</guid>
      <dc:creator>yanli</dc:creator>
      <dc:date>2021-12-12T16:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: print  map with large custom features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-with-large-custom-features/m-p/354466#M32828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean by "server is collapse"? Do you get any error message? Did you check the server logs to determine what the issue is?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 13:11:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-with-large-custom-features/m-p/354466#M32828</guid>
      <dc:creator>thejuskambi</dc:creator>
      <dc:date>2016-08-29T13:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: print  map with large custom features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-with-large-custom-features/m-p/354467#M32829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you are trying to query a set of polygons --&amp;gt; add the result as graphics on map and then --&amp;gt; print ?????&lt;/P&gt;&lt;P&gt;if this is the steps and the number of polygons causing problem try to set the where clause from the query to the Definition&amp;nbsp;&lt;STRONG style="color: #000000; background-color: #ffffff; font-size: 14.4px;"&gt;Expression and then try to print.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 13:52:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-with-large-custom-features/m-p/354467#M32829</guid>
      <dc:creator>PanagiotisPapadopoulos</dc:creator>
      <dc:date>2016-08-29T13:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: print  map with large custom features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-with-large-custom-features/m-p/354468#M32830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, my&amp;nbsp; steps like this "query a set of polygons --&amp;gt; add the result as graphics on map and then --&amp;gt; print", because the query polygon don't have the&amp;nbsp; attibute fields value,i store the attibute value in other&amp;nbsp; sql server database. so&amp;nbsp; i can't query to the Definition&amp;nbsp;&lt;STRONG style="color: #000000; background-color: #ffffff; font-size: 14.4px;"&gt;Expression and then try to print&lt;/STRONG&gt; According to the attibute fields value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 00:44:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-with-large-custom-features/m-p/354468#M32830</guid>
      <dc:creator>yanli</dc:creator>
      <dc:date>2016-08-30T00:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: print  map with large custom features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-with-large-custom-features/m-p/354469#M32831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp;get the error &amp;nbsp;when create more than 100 polygon&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;STRONG style="background-color: #ffffff; border: 0px; font-weight: bold;"&gt;"Error executing tool.: ERROR 000735: Web Map as JSON: Value is required The value is empty. The value is empty. ERROR 000735: Web Map as JSON: Value is required"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; border: 0px; font-weight: bold;"&gt;the &amp;nbsp;value &amp;nbsp;is missing&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; border: 0px; font-weight: bold;"&gt;the &amp;nbsp;size of &amp;nbsp;"Web Map as JSON" is limited?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 07:52:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-with-large-custom-features/m-p/354469#M32831</guid>
      <dc:creator>yanli</dc:creator>
      <dc:date>2016-08-30T07:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: print  map with large custom features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-with-large-custom-features/m-p/354470#M32832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May you have to create a database view between Polygon Table and Attribute Table on database level .This spatial view can be used for publishing.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 07:57:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-with-large-custom-features/m-p/354470#M32832</guid>
      <dc:creator>PanagiotisPapadopoulos</dc:creator>
      <dc:date>2016-08-30T07:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: print  map with large custom features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-with-large-custom-features/m-p/354471#M32833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the Web Map JSON is too large (&amp;gt; 2000 characters) the request must be a POST request. &amp;nbsp;See the comments by &lt;A href="https://community.esri.com/migrated-users/3262"&gt;Jian Huang&lt;/A&gt;‌ in this post:&amp;nbsp;&lt;A _jive_internal="true" class="link-titled" href="https://community.esri.com/thread/67868#post355575" title="https://community.esri.com/thread/67868#post355575"&gt;https://community.esri.com/thread/67868#post355575&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 09:15:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-with-large-custom-features/m-p/354471#M32833</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2016-08-30T09:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: print  map with large custom features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-with-large-custom-features/m-p/354472#M32834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.&amp;nbsp;&amp;nbsp; I find with ff&amp;nbsp;&amp;nbsp; the&amp;nbsp; print&amp;nbsp; request default &amp;nbsp; is&amp;nbsp; "post"&amp;nbsp; method&amp;nbsp; ,so I need't to change the request?&lt;/P&gt;&lt;P&gt;2. &lt;SPAN&gt;when i&amp;nbsp; fire the request directly at the REST endpoint? get&amp;nbsp; the error&lt;/SPAN&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;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/218722_aa.png" style="width: 620px; height: 85px;" /&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/218721_QQ图片20160831173418.png" style="width: 620px; height: 217px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 09:44:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-with-large-custom-features/m-p/354472#M32834</guid>
      <dc:creator>yanli</dc:creator>
      <dc:date>2016-08-31T09:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: print  map with large custom features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-with-large-custom-features/m-p/354473#M32835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No need to change the request type then. &amp;nbsp;Have you evaluated the JSON string? &amp;nbsp;You could&amp;nbsp;&lt;A class="link-titled" href="http://json.parser.online.fr/" title="http://json.parser.online.fr/"&gt;Json Parser Online&lt;/A&gt;&amp;nbsp;for the job.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 10:06:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-with-large-custom-features/m-p/354473#M32835</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2016-08-31T10:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: print  map with large custom features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-with-large-custom-features/m-p/354474#M32836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I modify&amp;nbsp; the&amp;nbsp; example online &lt;A href="https://developers.arcgis.com/javascript/3/jssamples/widget_print.html"&gt;Print | ArcGIS API for JavaScript 3.17 &lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; , I create tht 136 polygons of city boundary with local json data&amp;nbsp; on map , it&amp;nbsp; still print error！I put the code into&amp;nbsp; github &lt;A class="link-titled" href="https://github.com/yanliasdf789/Test1" title="https://github.com/yanliasdf789/Test1"&gt;GitHub - yanliasdf789/Test1: arcgis for js print error with larte features&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 01:28:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-with-large-custom-features/m-p/354474#M32836</guid>
      <dc:creator>yanli</dc:creator>
      <dc:date>2016-09-02T01:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: print  map with large custom features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-with-large-custom-features/m-p/354475#M32837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the position of polygons&amp;nbsp; are&amp;nbsp; in China &lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/218947_QQ图片20160902092948.png" style="width: 620px; height: 467px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 01:33:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/print-map-with-large-custom-features/m-p/354475#M32837</guid>
      <dc:creator>yanli</dc:creator>
      <dc:date>2016-09-02T01:33:13Z</dc:date>
    </item>
  </channel>
</rss>

