<?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: unique value renderer for null values and all other values in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unique-value-renderer-for-null-values-and-all/m-p/498434#M46324</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oops, just realized it was a typo. It was supposed to be "defaultSymbol," not "defaultsymbol." I'll leave the question up as an example of how to do this, though, in case it's helpful to anyone else.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 May 2017 17:19:50 GMT</pubDate>
    <dc:creator>EllaHaines</dc:creator>
    <dc:date>2017-05-18T17:19:50Z</dc:date>
    <item>
      <title>unique value renderer for null values and all other values</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unique-value-renderer-for-null-values-and-all/m-p/498433#M46323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to create a unique value renderer that shows null values as one symbol, and all other values as another (I don't want to list out each possible value when all that matters is that it isn't null). Here's what I've tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;//set up unique value render for feature layer&lt;BR /&gt; //two kinds of symbols: segment comments and regular location comments&lt;BR /&gt; //--symbols&lt;BR /&gt; var commentSymbol = new SimpleMarkerSymbol({&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;style: "round",&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;color: "blue",&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;size: "12px"&lt;BR /&gt; });&lt;BR /&gt; var segmentCommentSymbol = new SimpleMarkerSymbol({&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;style: "round",&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;color: "cyan",&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;size: "12px"&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;//--renderer&lt;BR /&gt; var renderer = new UniqueValueRenderer({&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;field: "SegmentId",&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;defaultsymbol: segmentCommentSymbol&lt;BR /&gt; });&lt;BR /&gt; renderer.addUniqueValueInfo({&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;value: null,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;symbol: commentSymbol&lt;BR /&gt; });&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the debugger it appears that the non-null segment graphics are being added properly to my graphics array for the feature layer. However, only the blue null values (for commentSymbol) are being displayed - the non-null value points are all missing from the map. What am I doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 17:12:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unique-value-renderer-for-null-values-and-all/m-p/498433#M46323</guid>
      <dc:creator>EllaHaines</dc:creator>
      <dc:date>2017-05-18T17:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: unique value renderer for null values and all other values</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unique-value-renderer-for-null-values-and-all/m-p/498434#M46324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oops, just realized it was a typo. It was supposed to be "defaultSymbol," not "defaultsymbol." I'll leave the question up as an example of how to do this, though, in case it's helpful to anyone else.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 17:19:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unique-value-renderer-for-null-values-and-all/m-p/498434#M46324</guid>
      <dc:creator>EllaHaines</dc:creator>
      <dc:date>2017-05-18T17:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: unique value renderer for null values and all other values</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unique-value-renderer-for-null-values-and-all/m-p/1500154#M84959</link>
      <description>&lt;P&gt;Ella, thanks for leaving this up. 7 years later it definitely helped me!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 03:20:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unique-value-renderer-for-null-values-and-all/m-p/1500154#M84959</guid>
      <dc:creator>mvd6134</dc:creator>
      <dc:date>2024-07-02T03:20:49Z</dc:date>
    </item>
  </channel>
</rss>

