<?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 Update Renderer with Picture-Fill Symbol in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/update-renderer-with-picture-fill-symbol/m-p/217572#M20205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a quick question about how to properly set/update renderer. Specifically, I am trying to dynamically populate a the uniqueValueInfos field for a UniqueValueRender of a FeatureLayer at runtime with picture-fill symbols. (for background I consulted this post:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/visualization-update-data/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/visualization-update-data/index.html"&gt;Update a renderer's attribute | ArcGIS API for JavaScript 4.14&lt;/A&gt;&amp;nbsp;, but it does not directly deal with picture-fill symbols).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason I have to do this dynamically is because the url of the picture symbol gets dynamically generated based on information&amp;nbsp;I query from&amp;nbsp;another layer. Ultimately I have to dynamically generate hundreds of these URLs for picture-fill symbols, and I simply cannot do it manually ahead of time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus, I do something like the following, where the variable &lt;EM&gt;boundary_changes&amp;nbsp;&lt;/EM&gt;is a featureLayer already added to my map with a unique-value renderer who's uniqueValueInfos is initialized as [ ].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="483852" alt="" class="jive-emoji j-img-floatstart jive-image image-3 j-img-original" src="/legacyfs/online/483852_Screen Shot 2020-03-02 at 23.13.52.png" style="float: left;" /&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;/P&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sadly though, ArcGis&amp;nbsp;does not query my server for the images and all of the polygons are left without any fill. However, when I do the exact same thing with a simple-fill symbol (shown below) and give everything one color, it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="483853" alt="" class="jive-emoji j-img-floatstart jive-image image-4 j-img-original" src="/legacyfs/online/483853_Screen Shot 2020-03-02 at 23.15.10.png" style="float: left;" /&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;/P&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question is this: &lt;STRONG&gt;can anybody tell me at what point an ArcGis PictureFillSymbol actually requests the image from the URL field?&amp;nbsp;How should I update the renderer to properly load the images from their respective URLs?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried calling the function&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;refresh()&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;on my feature layer after adding all the unique values hoping it would trigger the renderer to grab the images, but this still does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anybody has some advice on a potential solution or workaround, I would greatly appreciate it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, please do not hesitate to comment if you want some additional information, I promise I will respond promptly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Mar 2020 04:18:26 GMT</pubDate>
    <dc:creator>RyanCain</dc:creator>
    <dc:date>2020-03-03T04:18:26Z</dc:date>
    <item>
      <title>Update Renderer with Picture-Fill Symbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/update-renderer-with-picture-fill-symbol/m-p/217572#M20205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a quick question about how to properly set/update renderer. Specifically, I am trying to dynamically populate a the uniqueValueInfos field for a UniqueValueRender of a FeatureLayer at runtime with picture-fill symbols. (for background I consulted this post:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/visualization-update-data/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/visualization-update-data/index.html"&gt;Update a renderer's attribute | ArcGIS API for JavaScript 4.14&lt;/A&gt;&amp;nbsp;, but it does not directly deal with picture-fill symbols).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason I have to do this dynamically is because the url of the picture symbol gets dynamically generated based on information&amp;nbsp;I query from&amp;nbsp;another layer. Ultimately I have to dynamically generate hundreds of these URLs for picture-fill symbols, and I simply cannot do it manually ahead of time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus, I do something like the following, where the variable &lt;EM&gt;boundary_changes&amp;nbsp;&lt;/EM&gt;is a featureLayer already added to my map with a unique-value renderer who's uniqueValueInfos is initialized as [ ].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="483852" alt="" class="jive-emoji j-img-floatstart jive-image image-3 j-img-original" src="/legacyfs/online/483852_Screen Shot 2020-03-02 at 23.13.52.png" style="float: left;" /&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;/P&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sadly though, ArcGis&amp;nbsp;does not query my server for the images and all of the polygons are left without any fill. However, when I do the exact same thing with a simple-fill symbol (shown below) and give everything one color, it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="483853" alt="" class="jive-emoji j-img-floatstart jive-image image-4 j-img-original" src="/legacyfs/online/483853_Screen Shot 2020-03-02 at 23.15.10.png" style="float: left;" /&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;/P&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question is this: &lt;STRONG&gt;can anybody tell me at what point an ArcGis PictureFillSymbol actually requests the image from the URL field?&amp;nbsp;How should I update the renderer to properly load the images from their respective URLs?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried calling the function&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;refresh()&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;on my feature layer after adding all the unique values hoping it would trigger the renderer to grab the images, but this still does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anybody has some advice on a potential solution or workaround, I would greatly appreciate it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, please do not hesitate to comment if you want some additional information, I promise I will respond promptly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2020 04:18:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/update-renderer-with-picture-fill-symbol/m-p/217572#M20205</guid>
      <dc:creator>RyanCain</dc:creator>
      <dc:date>2020-03-03T04:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Update Renderer with Picture-Fill Symbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/update-renderer-with-picture-fill-symbol/m-p/217573#M20206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;It sounds like the code may be having issues with accessing the image you are wanting to use in the picture fill symbol. If&amp;nbsp;&lt;A class="" href="http://127.0.0.1:5000" style="color: #2989c5; text-decoration: none;" title="http://127.0.0.1:5000"&gt;http://127.0.0.1:5000&lt;/A&gt;&amp;nbsp;is not the url your app is running from then you are likely hitting a cors issue. Can you test this using a url from esri?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2020 12:49:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/update-renderer-with-picture-fill-symbol/m-p/217573#M20206</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-03-10T12:49:04Z</dc:date>
    </item>
  </channel>
</rss>

