<?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: Refresh Graphics after Renderer Change in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-graphics-after-renderer-change/m-p/480902#M44710</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The docs show that the defaultSymbology for the UniqueValueRenderer is "optional" so I did not provide one as I am capturing and using all possible values in the target attributeField(s).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I only passed the attributeField name into the new renderer, but by doing this the graphicsLayer renderFields property was not updating.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I added a place holder for the default symbology ("") and passed it in with the attributeField to make it work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The refresh method was working all along, but it couldn't apply symbology to an undefined attributeField, duh.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Guess the gotcha here was that the defaultSymbology is not really, really optional; you have to pass something in its places so that the required attributeField is read correctly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Sep 2012 15:05:42 GMT</pubDate>
    <dc:creator>KeithSandell</dc:creator>
    <dc:date>2012-09-12T15:05:42Z</dc:date>
    <item>
      <title>Refresh Graphics after Renderer Change</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-graphics-after-renderer-change/m-p/480900#M44708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have graphics layer who's symbology is set by default using a SimpleRenderer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Upon applying a UniqueValueRenderer to the graphics layer I confirmed in Firebug it took...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The docs do not show, but Firebug does show a .refresh() method for the graphicsLayer. I tried this, but it doesn't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I get the layer's display to update with the new symbology?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 13:40:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-graphics-after-renderer-change/m-p/480900#M44708</guid>
      <dc:creator>KeithSandell</dc:creator>
      <dc:date>2012-09-12T13:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Graphics after Renderer Change</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-graphics-after-renderer-change/m-p/480901#M44709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please post the code you're using to specify the new renderer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 14:09:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-graphics-after-renderer-change/m-p/480901#M44709</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-09-12T14:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Graphics after Renderer Change</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-graphics-after-renderer-change/m-p/480902#M44710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The docs show that the defaultSymbology for the UniqueValueRenderer is "optional" so I did not provide one as I am capturing and using all possible values in the target attributeField(s).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I only passed the attributeField name into the new renderer, but by doing this the graphicsLayer renderFields property was not updating.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I added a place holder for the default symbology ("") and passed it in with the attributeField to make it work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The refresh method was working all along, but it couldn't apply symbology to an undefined attributeField, duh.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Guess the gotcha here was that the defaultSymbology is not really, really optional; you have to pass something in its places so that the required attributeField is read correctly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 15:05:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-graphics-after-renderer-change/m-p/480902#M44710</guid>
      <dc:creator>KeithSandell</dc:creator>
      <dc:date>2012-09-12T15:05:42Z</dc:date>
    </item>
  </channel>
</rss>

