<?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 JSAPI UniqueValueRenderer with FeatureLayer and Source (not URL) Work? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-uniquevaluerenderer-with-featurelayer-and/m-p/1155306#M76705</link>
    <description>&lt;P&gt;I'm building a FeatureLayer dynamically on the UI. Basically, I create a new FeatureLayer and set the Source field. Using basic renderer, the layer displays correctly (simple-fill symbol with specific color). But, if I use UniqueValueRenderer no features render. I can verify that I'm referencing the correct field in the UniqueValueInfo. My first questions is, does the UniqueValueRenderer work with a FeatureLayer built entirely on the client using "Source" field, rather than referencing an online layer? If so, are there any examples of that (I can't find any). Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Mar 2022 17:31:19 GMT</pubDate>
    <dc:creator>rbossio</dc:creator>
    <dc:date>2022-03-18T17:31:19Z</dc:date>
    <item>
      <title>JSAPI UniqueValueRenderer with FeatureLayer and Source (not URL) Work?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-uniquevaluerenderer-with-featurelayer-and/m-p/1155306#M76705</link>
      <description>&lt;P&gt;I'm building a FeatureLayer dynamically on the UI. Basically, I create a new FeatureLayer and set the Source field. Using basic renderer, the layer displays correctly (simple-fill symbol with specific color). But, if I use UniqueValueRenderer no features render. I can verify that I'm referencing the correct field in the UniqueValueInfo. My first questions is, does the UniqueValueRenderer work with a FeatureLayer built entirely on the client using "Source" field, rather than referencing an online layer? If so, are there any examples of that (I can't find any). Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 17:31:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-uniquevaluerenderer-with-featurelayer-and/m-p/1155306#M76705</guid>
      <dc:creator>rbossio</dc:creator>
      <dc:date>2022-03-18T17:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: JSAPI UniqueValueRenderer with FeatureLayer and Source (not URL) Work?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-uniquevaluerenderer-with-featurelayer-and/m-p/1155331#M76707</link>
      <description>&lt;P&gt;Yes, this works. Do you have a link to your app so I can take a look at where it's failing? Here's an example of this working:&amp;nbsp;&lt;A href="https://codepen.io/kekenes/pen/JjMXKVa?editors=100" target="_blank"&gt;https://codepen.io/kekenes/pen/JjMXKVa?editors=100&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 18:18:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-uniquevaluerenderer-with-featurelayer-and/m-p/1155331#M76707</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2022-03-18T18:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: JSAPI UniqueValueRenderer with FeatureLayer and Source (not URL) Work?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-uniquevaluerenderer-with-featurelayer-and/m-p/1155860#M76732</link>
      <description>&lt;P&gt;Thanks Kristian - unfortunately, the app is internal only. I think I have a bigger problem in that I can't get a simple UniqueValueRender to work from esri tutorials. I'm wondering if I'm missing something. Link below defines the renderer, adds a UniqueValueInfo, creates the FeatureLayer with the renderer, and adds to the map. If I display the hosted feature layer without specifying a renderer, I can see all the features. When I add the renderer to the feature layer, no features display. Am I missing some setting maybe?&lt;/P&gt;&lt;P&gt;NOTE: Link to feature in codepen is a public feauture layer&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/rjbtampa/pen/PoEGPVL" target="_blank" rel="noopener"&gt;https://codepen.io/rjbtampa/pen/PoEGPVL&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Sample Feature Data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rbossio_0-1647965961572.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/36972i29B9124B672C82F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rbossio_0-1647965961572.png" alt="rbossio_0-1647965961572.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 16:20:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-uniquevaluerenderer-with-featurelayer-and/m-p/1155860#M76732</guid>
      <dc:creator>rbossio</dc:creator>
      <dc:date>2022-03-22T16:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: JSAPI UniqueValueRenderer with FeatureLayer and Source (not URL) Work?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-uniquevaluerenderer-with-featurelayer-and/m-p/1156338#M76743</link>
      <description>&lt;P&gt;If the data you're using is point data, as in your example, you should use &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleMarkerSymbol.html" target="_self"&gt;SimpleMarkerSymbol&lt;/A&gt; instead, which is intended for rendering points.&amp;nbsp; &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleFillSymbol.html" target="_self"&gt;SimpleFillSymbol&lt;/A&gt;, on the other hand, is intended for rendering polygons.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 18:51:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-uniquevaluerenderer-with-featurelayer-and/m-p/1156338#M76743</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2022-03-22T18:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: JSAPI UniqueValueRenderer with FeatureLayer and Source (not URL) Work?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-uniquevaluerenderer-with-featurelayer-and/m-p/1157893#M76796</link>
      <description>&lt;P&gt;Yep. Joel is correct. If you use simple marker symbols, it works:&amp;nbsp;&lt;A href="https://codepen.io/kekenes/pen/popegLv?editors=1000" target="_blank"&gt;https://codepen.io/kekenes/pen/popegLv?editors=1000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This can be a little confusing. You can use SimpleFillSymbol and SimpleMarkerSymbol on polygon layers, but only SimpleMarkerSymbol for point layers.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 16:26:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/jsapi-uniquevaluerenderer-with-featurelayer-and/m-p/1157893#M76796</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2022-03-25T16:26:58Z</dc:date>
    </item>
  </channel>
</rss>

