<?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 Exclude some data in a classBreaksDefinition, but still symbolize those records in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/exclude-some-data-in-a-classbreaksdefinition-but/m-p/716508#M66595</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In Desktop, when symbolizing by a numeric value, not only can you specify classification method, interval, field etc, there's also a place to exclude some records.&amp;nbsp; I routinely have data with a value of -999 to indicate 'no data'.&amp;nbsp; In desktop, I can exclude those records from the classification calculation and still have a symbol on them that I can show on the map and legend.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't see that I can do the same thing with the objects available for classbreaksdefinition and generateRendererTask.&amp;nbsp; If I exclude my 'no data', using a where clause, my classification calculates just fine, but they are completely eliminated from the display.&amp;nbsp; That isn't what I want to see.&amp;nbsp; I can't have those -999 in the calculations, that just gives weird breaks, but I still show them with some 'no data' symbol, not have them completely gone.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I missing something?&amp;nbsp; It seems like I should be able to do this.&amp;nbsp; I could probably make a second set of function just to display these no data records, but that sounds rather messy.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jul 2014 17:44:25 GMT</pubDate>
    <dc:creator>TracySchloss</dc:creator>
    <dc:date>2014-07-03T17:44:25Z</dc:date>
    <item>
      <title>Exclude some data in a classBreaksDefinition, but still symbolize those records</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/exclude-some-data-in-a-classbreaksdefinition-but/m-p/716508#M66595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In Desktop, when symbolizing by a numeric value, not only can you specify classification method, interval, field etc, there's also a place to exclude some records.&amp;nbsp; I routinely have data with a value of -999 to indicate 'no data'.&amp;nbsp; In desktop, I can exclude those records from the classification calculation and still have a symbol on them that I can show on the map and legend.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't see that I can do the same thing with the objects available for classbreaksdefinition and generateRendererTask.&amp;nbsp; If I exclude my 'no data', using a where clause, my classification calculates just fine, but they are completely eliminated from the display.&amp;nbsp; That isn't what I want to see.&amp;nbsp; I can't have those -999 in the calculations, that just gives weird breaks, but I still show them with some 'no data' symbol, not have them completely gone.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I missing something?&amp;nbsp; It seems like I should be able to do this.&amp;nbsp; I could probably make a second set of function just to display these no data records, but that sounds rather messy.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 17:44:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/exclude-some-data-in-a-classbreaksdefinition-but/m-p/716508#M66595</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2014-07-03T17:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude some data in a classBreaksDefinition, but still symbolize those records</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/exclude-some-data-in-a-classbreaksdefinition-but/m-p/716509#M66596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The answer to this was as clear as mud, I just happened to try this and it worked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you specify your classDefinition, there's a place there to set your defaultSymbol. I had one defined based on the example &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/javascript/jssamples/renderer_dynamic_layer_change_attribute.html" rel="nofollow" target="_blank"&gt;https://developers.arcgis.com/javascript/jssamples/renderer_dynamic_layer_change_attribute.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you execute the generateRendererTask, the resultant renderer doesn't have a default symbol assigned to it anymore. I don't know if this in intentional or something that is broken in the task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Before I applied this symbology to my layer, I manually went in and set the default symbol again on the renderer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp; function applyRenderer(renderer) {&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var optionsArray = []; &amp;nbsp;&amp;nbsp;&amp;nbsp; renderer.defaultSymbol = defaultSymbol; &amp;nbsp;&amp;nbsp;&amp;nbsp; var drawingOptions = new LayerDrawingOptions(); &amp;nbsp;&amp;nbsp;&amp;nbsp; drawingOptions.renderer = renderer;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; optionsArray[0] = drawingOptions; &amp;nbsp;&amp;nbsp;&amp;nbsp; myLayer.setLayerDrawingOptions(optionsArray);&amp;nbsp; &amp;nbsp; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now my excluded values of -999 are symbolized with that default and not just blank.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 18:25:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/exclude-some-data-in-a-classbreaksdefinition-but/m-p/716509#M66596</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2014-07-03T18:25:04Z</dc:date>
    </item>
  </channel>
</rss>

