<?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: ReportPlayer with an area containing a large number of points in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reportplayer-with-an-area-containing-a-large/m-p/413760#M38078</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff - we are reviewing this and should have some information for you shortly - thx!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Aug 2018 15:24:56 GMT</pubDate>
    <dc:creator>KyleWatson</dc:creator>
    <dc:date>2018-08-07T15:24:56Z</dc:date>
    <item>
      <title>ReportPlayer with an area containing a large number of points</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reportplayer-with-an-area-containing-a-large/m-p/413759#M38077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, I'm working with the ReportPlayer (using Chrome) and running it with analysisAreas that contain feature geometry. When I have a large detailed area with lots of points (or many areas that, in total, contain a lot of points, the report player is unable to load the generated report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tracked it down to the report player attempting to generalize the features (it only does so when a threshold is reached (e.g. many points)) and attempting to create a new Worker process. The console logs the following:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN&gt;Failed to construct 'Worker': Script at '&lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.esri.com/js.arcgis.com/3.25/esri/dijit/geoenrichment/utils/GeometryUtil_worker.js" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/3.25/esri/dijit/geoenrichment/utils/GeometryUtil_worker.js&lt;/A&gt;&lt;SPAN&gt;' cannot be accessed from origin '&lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.esri.com/localhost" rel="nofollow" target="_blank"&gt;http://localhost&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Now, a little &lt;A href="https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers#Browser_compatibility"&gt;searching&lt;/A&gt; tells me that Chrome will throw that error when running the script locally (i.e. with the file protocol) but that is not the case here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wondering if any ESRI folks have seen this or been able to successfully run a report on a large, very detailed polygon?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For reference, the Worker is being instantiated within the&amp;nbsp;&lt;EM&gt;generalizeGeometry&lt;/EM&gt; function of&amp;nbsp;&lt;A href="https://js.arcgis.com/3.25/esri/dijit/geoenrichment/utils/GeometryUtil.js"&gt;https://js.arcgis.com/3.25/esri/dijit/geoenrichment/utils/GeometryUtil.js&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2018 00:13:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reportplayer-with-an-area-containing-a-large/m-p/413759#M38077</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-08-03T00:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: ReportPlayer with an area containing a large number of points</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reportplayer-with-an-area-containing-a-large/m-p/413760#M38078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff - we are reviewing this and should have some information for you shortly - thx!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2018 15:24:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reportplayer-with-an-area-containing-a-large/m-p/413760#M38078</guid>
      <dc:creator>KyleWatson</dc:creator>
      <dc:date>2018-08-07T15:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: ReportPlayer with an area containing a large number of points</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reportplayer-with-an-area-containing-a-large/m-p/413761#M38079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, you have found a problem with the report player in the JS API.&amp;nbsp; When a large (complex) geometry is sent to the player to create an infographic, we use a a worker to first&amp;nbsp;generalize the polygon.&amp;nbsp; There is a cross domain policy issue that is causing the error you are receiving.&amp;nbsp; We are working on a fix for this that will be included in the next update of the JS API.&amp;nbsp; We don't have a specific time-frame yet for this fix, but it&amp;nbsp;will likely be included in the next update in early-fall.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; color: #000000; text-indent: 0px;"&gt;As a work-around, you can simplify&amp;nbsp;geometries using the GeometryService before passing it to the player.&amp;nbsp; Some doc here:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/geometryservice-amd.html#generalize" title="https://developers.arcgis.com/javascript/3/jsapi/geometryservice-amd.html#generalize"&gt;GeometryService | API Reference | ArcGIS API for JavaScript 3.25&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; color: #000000; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; color: #000000; text-indent: 0px;"&gt;Thanks for bringing this to our attention.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; color: #000000; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; color: #000000; text-indent: 0px;"&gt;- Business Analyst dev team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2018 16:58:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reportplayer-with-an-area-containing-a-large/m-p/413761#M38079</guid>
      <dc:creator>GarryBurgess</dc:creator>
      <dc:date>2018-08-07T16:58:39Z</dc:date>
    </item>
  </channel>
</rss>

