<?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 Rendering a list of webstyle symbols using unique value renderer in ESRI editor in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rendering-a-list-of-webstyle-symbols-using-unique/m-p/1330937#M82266</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We are using the editor widget in ESRI for the crud operations of the symbols. I was able to succesfully render a webstyle symbol using the simple renderer.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;    const layer = new FeatureLayer({
      source: graphics,
      // renderer,
      renderer:{ 
        type: "simple",
        symbol: {
          type: "web-style",  // autocasts as new SimpleFillSymbol()
          styleName: "Esri2DPointSymbolsStyle",
          name: "atm"
        }
      },
      objectIdField: "ObjectID"
    })&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The use case which I currently have is to render more than one webstyle symbol in the editor. Since the simple renderer does not accept array of symbols , Is there any renderer which I can use to display the symbols on the editor.&lt;/P&gt;&lt;P&gt;I was trying it out with unique-renderer , but it does not seem to be working. Please find the screenshot attached&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KarthikeyanShanmugam_0-1695278649970.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/81279i5946D968EE302AF1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KarthikeyanShanmugam_0-1695278649970.png" alt="KarthikeyanShanmugam_0-1695278649970.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2023 06:49:26 GMT</pubDate>
    <dc:creator>KarthikeyanShanmugam</dc:creator>
    <dc:date>2023-09-21T06:49:26Z</dc:date>
    <item>
      <title>Rendering a list of webstyle symbols using unique value renderer in ESRI editor</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rendering-a-list-of-webstyle-symbols-using-unique/m-p/1330937#M82266</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We are using the editor widget in ESRI for the crud operations of the symbols. I was able to succesfully render a webstyle symbol using the simple renderer.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;    const layer = new FeatureLayer({
      source: graphics,
      // renderer,
      renderer:{ 
        type: "simple",
        symbol: {
          type: "web-style",  // autocasts as new SimpleFillSymbol()
          styleName: "Esri2DPointSymbolsStyle",
          name: "atm"
        }
      },
      objectIdField: "ObjectID"
    })&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The use case which I currently have is to render more than one webstyle symbol in the editor. Since the simple renderer does not accept array of symbols , Is there any renderer which I can use to display the symbols on the editor.&lt;/P&gt;&lt;P&gt;I was trying it out with unique-renderer , but it does not seem to be working. Please find the screenshot attached&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KarthikeyanShanmugam_0-1695278649970.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/81279i5946D968EE302AF1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KarthikeyanShanmugam_0-1695278649970.png" alt="KarthikeyanShanmugam_0-1695278649970.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 06:49:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rendering-a-list-of-webstyle-symbols-using-unique/m-p/1330937#M82266</guid>
      <dc:creator>KarthikeyanShanmugam</dc:creator>
      <dc:date>2023-09-21T06:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Rendering a list of webstyle symbols using unique value renderer in ESRI editor</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rendering-a-list-of-webstyle-symbols-using-unique/m-p/1330995#M82268</link>
      <description>&lt;P&gt;The unique-value renderer should do what you want. If it didn't work for you, it's likely you have some sort of syntax error. Here is a code example.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const hwyRenderer = {
          type: "unique-value",
          legendOptions: {
            title: "Freeway type"
          },
          field: "RTTYP",
          uniqueValueInfos: [{
            value: "S",
            label: "State highway",
            symbol: {
              type: "simple-line",
              color: "#e6d800",
              width: "6px",
              style: "solid"
            }
          }, {
            value: "I",
            label: "Interstate",
            symbol: {
              type: "simple-line",
              color: "#e60049",
              width: "6px",
              style: "solid"
            }
          }, {
            value: "U",
            label: "US Highway",
            symbol: {
              type: "simple-line",
              color: "#9b19f5",
              width: "6px",
              style: "solid"
            }
          }]
        };&lt;/LI-CODE&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/visualization/data-driven-styles/unique-types/#categorical-data" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/visualization/data-driven-styles/unique-types/#categorical-data&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 12:31:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rendering-a-list-of-webstyle-symbols-using-unique/m-p/1330995#M82268</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2023-09-21T12:31:52Z</dc:date>
    </item>
  </channel>
</rss>

