<?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 UniqueValueRenderer.fromJSON not working when loading JSON from a lyrx file. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/uniquevaluerenderer-fromjson-not-working-when/m-p/1657000#M87711</link>
    <description>&lt;P&gt;I am trying to use a lyrx file to render a shp file that I have loaded in to the JavaScript SDK using a GeoJSONLayer.&amp;nbsp; The shape file is being displayed, but it is not being rendered correctly. I have extracted the renderer JSON from the lyrx file and got the JSON in the attached file.&lt;/P&gt;&lt;P&gt;I have then used UniqueValueRenderer.fromJSON method to use this JSON to create the renderer. I then use&amp;nbsp; this in the GeoJSONLayer. The data is displayed, but it is using the defaultSymbol not the symbols listed in the groups. On investigating the renderer that is created the uniqueValueGroups and uniqueValueInfos are both null.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Oct 2025 06:16:58 GMT</pubDate>
    <dc:creator>Flookfinders</dc:creator>
    <dc:date>2025-10-10T06:16:58Z</dc:date>
    <item>
      <title>UniqueValueRenderer.fromJSON not working when loading JSON from a lyrx file.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/uniquevaluerenderer-fromjson-not-working-when/m-p/1657000#M87711</link>
      <description>&lt;P&gt;I am trying to use a lyrx file to render a shp file that I have loaded in to the JavaScript SDK using a GeoJSONLayer.&amp;nbsp; The shape file is being displayed, but it is not being rendered correctly. I have extracted the renderer JSON from the lyrx file and got the JSON in the attached file.&lt;/P&gt;&lt;P&gt;I have then used UniqueValueRenderer.fromJSON method to use this JSON to create the renderer. I then use&amp;nbsp; this in the GeoJSONLayer. The data is displayed, but it is using the defaultSymbol not the symbols listed in the groups. On investigating the renderer that is created the uniqueValueGroups and uniqueValueInfos are both null.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2025 06:16:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/uniquevaluerenderer-fromjson-not-working-when/m-p/1657000#M87711</guid>
      <dc:creator>Flookfinders</dc:creator>
      <dc:date>2025-10-10T06:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: UniqueValueRenderer.fromJSON not working when loading JSON from a lyrx file.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/uniquevaluerenderer-fromjson-not-working-when/m-p/1657873#M87722</link>
      <description>&lt;P&gt;The JSON provided does not match the definition of a &lt;A href="https://developers.arcgis.com/web-map-specification/objects/uniqueValueRenderer/" target="_self"&gt;UniqueValueRenderer&lt;/A&gt; object, and therefore cannot be read.&amp;nbsp; Instead, it provides the definition for a renderer of type "CIMUniqueValueRenderer" for which the SDK doesn't appear to have any support.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2025 22:46:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/uniquevaluerenderer-fromjson-not-working-when/m-p/1657873#M87722</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2025-10-14T22:46:56Z</dc:date>
    </item>
  </channel>
</rss>

