<?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: Best way to omit missing data in client-side feature layer? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-omit-missing-data-in-client-side/m-p/16892#M1523</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I am not sure if that is how it is suppose to work in 4.10 but one way to handle it is to use this line in the graphic creation portion:&lt;/P&gt;&lt;P&gt;mag: feature.properties.mag || 0,&lt;/P&gt;&lt;P&gt;So if mag is null it will get 0 instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jan 2019 17:58:11 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2019-01-08T17:58:11Z</dc:date>
    <item>
      <title>Best way to omit missing data in client-side feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-omit-missing-data-in-client-side/m-p/16891#M1522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;In the online example "&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/layers-featurelayer-collection/index.html"&gt;Create a FeatureLayer with client-side graphics&lt;/A&gt;", it’s sizing a SimpleMarkerSymbol by the "mag" (magnitude) attribute of the data (earthquakes circa 2016).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;For six features in Nevada, the value of "mag" is null.&amp;nbsp; As a result, it looks like the renderer is applying the default size of the SimpleMarkerSymbol (here, set to 20) instead of using the corresponding SizeVariable. &amp;nbsp;So all Nevada’s features missing data&amp;nbsp;are size 20.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;My requirement is to omit features with missing data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;In API version 4.6, I was setting the SimpleMarkerSymbol’s default size to 0, which worked.&amp;nbsp; All missing data was size 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;In API version 4.10, when I set the default size to 0 (l. 185 of the example), no data is drawn for any feature—regardless of the value of "mag".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Is the 4.10 behavior correct?&amp;nbsp; If so, what’s the recommended way to omit missing data?&amp;nbsp; Pre-filter?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2019 17:40:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-omit-missing-data-in-client-side/m-p/16891#M1522</guid>
      <dc:creator>TonyGraham</dc:creator>
      <dc:date>2019-01-08T17:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to omit missing data in client-side feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-omit-missing-data-in-client-side/m-p/16892#M1523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I am not sure if that is how it is suppose to work in 4.10 but one way to handle it is to use this line in the graphic creation portion:&lt;/P&gt;&lt;P&gt;mag: feature.properties.mag || 0,&lt;/P&gt;&lt;P&gt;So if mag is null it will get 0 instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2019 17:58:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-omit-missing-data-in-client-side/m-p/16892#M1523</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-01-08T17:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to omit missing data in client-side feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-omit-missing-data-in-client-side/m-p/16893#M1524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&amp;nbsp; However, if I understood you correctly, changing the feature's&amp;nbsp;null value to zero will still&amp;nbsp;show a (minimum size) marker for it, where I need to omit&amp;nbsp;its marker altogether.&lt;/P&gt;&lt;P&gt;Also, in my own case, any non-null value&amp;nbsp;still needs to be plotted--even zero.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2019 18:13:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-omit-missing-data-in-client-side/m-p/16893#M1524</guid>
      <dc:creator>TonyGraham</dc:creator>
      <dc:date>2019-01-08T18:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to omit missing data in client-side feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-omit-missing-data-in-client-side/m-p/16894#M1525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Oh. In that case make this change then:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;// Create an array of Graphics from each GeoJSON feature&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; geoJson&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;features&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;map&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;feature&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; i&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;properties&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mag &lt;SPAN class="operator token"&gt;===&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;null&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:40:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-omit-missing-data-in-client-side/m-p/16894#M1525</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-10T20:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to omit missing data in client-side feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-omit-missing-data-in-client-side/m-p/16895#M1526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The FeatureLayer in 4x is so awesome, that you can do it like you would with a Feature Service, with a definitionExpression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;layer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; source&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; graphics&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;// autocast as an array of esri/Graphic&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="comment token"&gt;// create an instance of esri/layers/support/Field for each field object&lt;/SPAN&gt;
&amp;nbsp; fields&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; fields&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;// This is required when creating a layer from Graphics&lt;/SPAN&gt;
&amp;nbsp; objectIdField&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"ObjectID"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;// This must be defined when creating a layer from Graphics&lt;/SPAN&gt;
&amp;nbsp; renderer&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; quakesRenderer&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;// set the visualization on the layer&lt;/SPAN&gt;
&amp;nbsp; popupTemplate&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; pTemplate&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="comment token"&gt;// Works on client side data too&lt;/SPAN&gt;
&amp;nbsp; definitionExpression&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"mag &amp;gt; 0"&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="comment token"&gt;// alternative!!!&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="comment token"&gt;// definitionExpression: "mag IS NOT NULL"&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How cool is that?!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:40:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-omit-missing-data-in-client-side/m-p/16895#M1526</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-12-10T20:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to omit missing data in client-side feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-omit-missing-data-in-client-side/m-p/16896#M1527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks to you both.&amp;nbsp; Either I'll pre-filter, or I'll set the feature layer's definitionExpression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2019 15:13:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/best-way-to-omit-missing-data-in-client-side/m-p/16896#M1527</guid>
      <dc:creator>TonyGraham</dc:creator>
      <dc:date>2019-01-09T15:13:47Z</dc:date>
    </item>
  </channel>
</rss>

