<?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 Filter Features By Attribute Combined With Query Features from a FeatureLayerView in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/filter-features-by-attribute-combined-with-query/m-p/283485#M26178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iv been having trouble trying to combine the functionality between Filter by attribute and Query Features from a FeatureLayerView. Both samples are below;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/featurefilter-attributes/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/featurefilter-attributes/index.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Filter features by attribute | ArcGIS API for JavaScript 4.15&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/featurelayerview-query/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/featurelayerview-query/index.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Query features from a FeatureLayerView | ArcGIS API for JavaScript 4.15&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The aim is to apply the chosen filter (Filter feature by attribute), and this filter be applied to the Query FeatureLayerView showing in the side panel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have currently got both functionality working correctly in one sample, however they are still working in isolation from each other. I have added the code we have below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;!DOCTYPE &lt;SPAN style="color: #a6e22e;"&gt;html&lt;/SPAN&gt;&amp;gt;
&amp;lt;&lt;SPAN style="color: #f92672;"&gt;html&lt;/SPAN&gt;&amp;gt;
&amp;lt;&lt;SPAN style="color: #f92672;"&gt;head&lt;/SPAN&gt;&amp;gt;
    &amp;lt;&lt;SPAN style="color: #f92672;"&gt;meta &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;charset&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="utf-8" &lt;/SPAN&gt;/&amp;gt;
    &amp;lt;&lt;SPAN style="color: #f92672;"&gt;meta
&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;name&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="viewport"
&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;content&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="initial-scale=1,maximum-scale=1,user-scalable=no"
&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;    &lt;/SPAN&gt;/&amp;gt;
    &amp;lt;&lt;SPAN style="color: #f92672;"&gt;title&lt;/SPAN&gt;&amp;gt;&lt;SPAN style="font-weight: bold;"&gt;Filter features by attribute - Comb - Query features from a FeatureLayerView - 4.15&lt;/SPAN&gt;&amp;lt;/&lt;SPAN style="color: #f92672;"&gt;title&lt;/SPAN&gt;&amp;gt;

    &amp;lt;&lt;SPAN style="color: #f92672;"&gt;link
&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;rel&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="stylesheet"
&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;href&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="https://js.arcgis.com/4.15/esri/themes/light/main.css"
&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;    &lt;/SPAN&gt;/&amp;gt;
    &amp;lt;&lt;SPAN style="color: #f92672;"&gt;script &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;src&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="https://js.arcgis.com/4.15/"&lt;/SPAN&gt;&amp;gt;&amp;lt;/&lt;SPAN style="color: #f92672;"&gt;script&lt;/SPAN&gt;&amp;gt;

    &amp;lt;&lt;SPAN style="color: #f92672;"&gt;style&lt;/SPAN&gt;&amp;gt;
        &lt;SPAN style="color: #f92672;"&gt;html&lt;/SPAN&gt;,
        &lt;SPAN style="color: #f92672;"&gt;body&lt;/SPAN&gt;,
        &lt;SPAN style="color: #a6e22e;"&gt;#viewDiv &lt;/SPAN&gt;{
            &lt;SPAN style="color: #66d9ef;"&gt;padding&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;margin&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;height&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;100&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;%&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;width&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;100&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;%&lt;/SPAN&gt;;
        }

        &lt;SPAN style="color: #a6e22e;"&gt;#seasons-filter &lt;/SPAN&gt;{
            &lt;SPAN style="color: #66d9ef;"&gt;height&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;160&lt;/SPAN&gt;&lt;SPAN style="color: #68e868; font-weight: bold;"&gt;px&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;width&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;160&lt;/SPAN&gt;&lt;SPAN style="color: #68e868; font-weight: bold;"&gt;px&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;width&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;100&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;%&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;visibility&lt;/SPAN&gt;: &lt;SPAN style="color: #68e868; font-weight: bold;"&gt;hidden&lt;/SPAN&gt;;
        }

        .&lt;SPAN style="color: #a6e22e;"&gt;season-item &lt;/SPAN&gt;{
            &lt;SPAN style="color: #66d9ef;"&gt;width&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;100&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;%&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;padding&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;12&lt;/SPAN&gt;&lt;SPAN style="color: #68e868; font-weight: bold;"&gt;px&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;text-align&lt;/SPAN&gt;: &lt;SPAN style="color: #68e868; font-weight: bold;"&gt;center&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;vertical-align&lt;/SPAN&gt;: &lt;SPAN style="color: #68e868; font-weight: bold;"&gt;baseline&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;cursor&lt;/SPAN&gt;: &lt;SPAN style="color: #68e868; font-weight: bold;"&gt;pointer&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;height&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;40&lt;/SPAN&gt;&lt;SPAN style="color: #68e868; font-weight: bold;"&gt;px&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;height&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;50&lt;/SPAN&gt;&lt;SPAN style="color: #68e868; font-weight: bold;"&gt;px&lt;/SPAN&gt;;
        }

        .&lt;SPAN style="color: #a6e22e;"&gt;season-item&lt;/SPAN&gt;:&lt;SPAN style="color: #a6e22e;"&gt;focus &lt;/SPAN&gt;{
            &lt;SPAN style="color: #66d9ef;"&gt;background-color&lt;/SPAN&gt;: &lt;SPAN style="color: #68e868; font-weight: bold;"&gt;dimgrey&lt;/SPAN&gt;;
        }

        .&lt;SPAN style="color: #a6e22e;"&gt;season-item&lt;/SPAN&gt;:&lt;SPAN style="color: #a6e22e;"&gt;hover &lt;/SPAN&gt;{
            &lt;SPAN style="color: #66d9ef;"&gt;background-color&lt;/SPAN&gt;: &lt;SPAN style="color: #68e868; font-weight: bold;"&gt;dimgrey&lt;/SPAN&gt;;
        }

        .&lt;SPAN style="color: #a6e22e;"&gt;panel-container &lt;/SPAN&gt;{
            &lt;SPAN style="color: #66d9ef;"&gt;position&lt;/SPAN&gt;: &lt;SPAN style="color: #68e868; font-weight: bold;"&gt;relative&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;width&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;100&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;%&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;height&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;100&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;%&lt;/SPAN&gt;;
        }

        .&lt;SPAN style="color: #a6e22e;"&gt;panel-side &lt;/SPAN&gt;{
            &lt;SPAN style="color: #66d9ef;"&gt;padding&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="color: #68e868; font-weight: bold;"&gt;px&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;box-sizing&lt;/SPAN&gt;: &lt;SPAN style="color: #68e868; font-weight: bold;"&gt;border-box&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;width&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;300&lt;/SPAN&gt;&lt;SPAN style="color: #68e868; font-weight: bold;"&gt;px&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;height&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;100&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;%&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;position&lt;/SPAN&gt;: &lt;SPAN style="color: #68e868; font-weight: bold;"&gt;absolute&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;top&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;right&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;color&lt;/SPAN&gt;: &lt;SPAN style="color: #6897bb;"&gt;#fff&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;background-color&lt;/SPAN&gt;: &lt;SPAN style="color: #66d9ef;"&gt;rgba&lt;/SPAN&gt;(&lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;, &lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;, &lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;, &lt;SPAN style="color: #ae81ff;"&gt;0.6&lt;/SPAN&gt;);
            &lt;SPAN style="color: #66d9ef;"&gt;overflow&lt;/SPAN&gt;: &lt;SPAN style="color: #68e868; font-weight: bold;"&gt;auto&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;z-index&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;60&lt;/SPAN&gt;;
        }

        .&lt;SPAN style="color: #a6e22e;"&gt;panel-side &lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;h3 &lt;/SPAN&gt;{
            &lt;SPAN style="color: #66d9ef;"&gt;padding&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;0 20&lt;/SPAN&gt;&lt;SPAN style="color: #68e868; font-weight: bold;"&gt;px&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;margin&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;20&lt;/SPAN&gt;&lt;SPAN style="color: #68e868; font-weight: bold;"&gt;px &lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;;
        }

        .&lt;SPAN style="color: #a6e22e;"&gt;panel-side &lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;ul &lt;/SPAN&gt;{
            &lt;SPAN style="color: #66d9ef;"&gt;list-style&lt;/SPAN&gt;: &lt;SPAN style="color: #68e868; font-weight: bold;"&gt;none&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;margin&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;padding&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;;
        }

        .&lt;SPAN style="color: #a6e22e;"&gt;panel-side &lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;li &lt;/SPAN&gt;{
            &lt;SPAN style="color: #66d9ef;"&gt;list-style&lt;/SPAN&gt;: &lt;SPAN style="color: #68e868; font-weight: bold;"&gt;none&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;padding&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;10&lt;/SPAN&gt;&lt;SPAN style="color: #68e868; font-weight: bold;"&gt;px &lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff;"&gt;20&lt;/SPAN&gt;&lt;SPAN style="color: #68e868; font-weight: bold;"&gt;px&lt;/SPAN&gt;;
        }

        .&lt;SPAN style="color: #a6e22e;"&gt;panel-result &lt;/SPAN&gt;{
            &lt;SPAN style="color: #66d9ef;"&gt;cursor&lt;/SPAN&gt;: &lt;SPAN style="color: #68e868; font-weight: bold;"&gt;pointer&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;margin&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="color: #68e868; font-weight: bold;"&gt;px &lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;background-color&lt;/SPAN&gt;: &lt;SPAN style="color: #66d9ef;"&gt;rgba&lt;/SPAN&gt;(&lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;, &lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;, &lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;, &lt;SPAN style="color: #ae81ff;"&gt;0.3&lt;/SPAN&gt;);
        }

        .&lt;SPAN style="color: #a6e22e;"&gt;panel-result&lt;/SPAN&gt;:&lt;SPAN style="color: #a6e22e;"&gt;hover&lt;/SPAN&gt;,
        .&lt;SPAN style="color: #a6e22e;"&gt;panel-result&lt;/SPAN&gt;:&lt;SPAN style="color: #a6e22e;"&gt;focus &lt;/SPAN&gt;{
            &lt;SPAN style="color: #66d9ef;"&gt;color&lt;/SPAN&gt;: &lt;SPAN style="color: #68e868; font-weight: bold;"&gt;orange&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;background-color&lt;/SPAN&gt;: &lt;SPAN style="color: #66d9ef;"&gt;rgba&lt;/SPAN&gt;(&lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;, &lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;, &lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;, &lt;SPAN style="color: #ae81ff;"&gt;0.75&lt;/SPAN&gt;);
        }
    &amp;lt;/&lt;SPAN style="color: #f92672;"&gt;style&lt;/SPAN&gt;&amp;gt;
    &amp;lt;&lt;SPAN style="color: #f92672;"&gt;script&lt;/SPAN&gt;&amp;gt;
        require([
            &lt;SPAN style="color: #e6db74;"&gt;"esri/views/MapView"&lt;/SPAN&gt;,
            &lt;SPAN style="color: #e6db74;"&gt;"esri/Map"&lt;/SPAN&gt;,
            &lt;SPAN style="color: #e6db74;"&gt;"esri/layers/FeatureLayer"&lt;/SPAN&gt;,
            &lt;SPAN style="color: #e6db74;"&gt;"esri/widgets/Expand"
&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;        &lt;/SPAN&gt;], &lt;SPAN style="color: #f92672;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="color: #fd971f;"&gt;MapView&lt;/SPAN&gt;, &lt;SPAN style="color: #fd971f;"&gt;Map&lt;/SPAN&gt;, &lt;SPAN style="color: #fd971f;"&gt;FeatureLayer&lt;/SPAN&gt;, &lt;SPAN style="color: #fd971f;"&gt;Expand&lt;/SPAN&gt;) {

            &lt;SPAN style="color: #f92672;"&gt;let &lt;/SPAN&gt;floodLayerView;
            &lt;SPAN style="color: #f92672;"&gt;let &lt;/SPAN&gt;graphics;
            &lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;listNode &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;document&lt;/SPAN&gt;.&lt;SPAN style="color: #a6e22e;"&gt;getElementById&lt;/SPAN&gt;(&lt;SPAN style="color: #e6db74;"&gt;"nyc_graphics"&lt;/SPAN&gt;);

            &lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;popupTemplate &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;{
                &lt;SPAN style="color: #75715e;"&gt;// autocasts as new PopupTemplate()
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;                &lt;/SPAN&gt;title&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"{NAME} in {COUNTY}"&lt;/SPAN&gt;,
                content&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;[
                    {
                        type&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"fields"&lt;/SPAN&gt;,
                        fieldInfos&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;[
                            {
                                fieldName&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"B12001_calc_pctMarriedE"&lt;/SPAN&gt;,
                                label&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"% Married"&lt;/SPAN&gt;,
                                format&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;{
                                    places&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;,
                                    digitSeparator&lt;SPAN style="color: #f92672;"&gt;: true
&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;                                &lt;/SPAN&gt;}
                            }
                        ]
                    }
                ]
            };

            &lt;SPAN style="color: #75715e;"&gt;// flash flood warnings layer
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;layer &lt;SPAN style="color: #f92672;"&gt;= new &lt;/SPAN&gt;&lt;SPAN style="color: #fd971f;"&gt;FeatureLayer&lt;/SPAN&gt;({
                url&lt;SPAN style="color: #f92672;"&gt;:
&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;                    &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"https://services.arcgis.com/P3ePLMYs2RVChkJx/ArcGIS/rest/services/ACS_Marital_Status_Boundaries/FeatureServer/2"&lt;/SPAN&gt;,
                outFields&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;[&lt;SPAN style="color: #e6db74;"&gt;"NAME"&lt;/SPAN&gt;, &lt;SPAN style="color: #e6db74;"&gt;"GEOID"&lt;/SPAN&gt;], &lt;SPAN style="color: #75715e;"&gt;// used by queryFeatures
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;                &lt;/SPAN&gt;popupTemplate&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;popupTemplate
            });

            &lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;map &lt;SPAN style="color: #f92672;"&gt;= new &lt;/SPAN&gt;&lt;SPAN style="color: #fd971f;"&gt;Map&lt;/SPAN&gt;({
                basemap&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"gray-vector"&lt;/SPAN&gt;,
                layers&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;[layer]
            });

            &lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;view &lt;SPAN style="color: #f92672;"&gt;= new &lt;/SPAN&gt;&lt;SPAN style="color: #fd971f;"&gt;MapView&lt;/SPAN&gt;({
                map&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;map,
                container&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"viewDiv"&lt;/SPAN&gt;,
                center&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;[&lt;SPAN style="color: #f92672;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff;"&gt;73.95&lt;/SPAN&gt;, &lt;SPAN style="color: #ae81ff;"&gt;40.702&lt;/SPAN&gt;],
                zoom&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff;"&gt;11
&lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff;"&gt;            &lt;/SPAN&gt;});

            &lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;seasonsNodes &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;document&lt;/SPAN&gt;.&lt;SPAN style="color: #a6e22e;"&gt;querySelectorAll&lt;/SPAN&gt;(&lt;SPAN style="color: #e6db74;"&gt;`.season-item`&lt;/SPAN&gt;);
            &lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;seasonsElement &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;document&lt;/SPAN&gt;.&lt;SPAN style="color: #a6e22e;"&gt;getElementById&lt;/SPAN&gt;(&lt;SPAN style="color: #e6db74;"&gt;"seasons-filter"&lt;/SPAN&gt;);

            &lt;SPAN style="color: #75715e;"&gt;// click event handler for seasons choices
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;            &lt;/SPAN&gt;seasonsElement.&lt;SPAN style="color: #a6e22e;"&gt;addEventListener&lt;/SPAN&gt;(&lt;SPAN style="color: #e6db74;"&gt;"click"&lt;/SPAN&gt;, &lt;SPAN style="color: #a6e22e;"&gt;filterBySeason&lt;/SPAN&gt;);

            &lt;SPAN style="color: #75715e;"&gt;// User clicked on Winter, Spring, Summer or Fall
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;            // set an attribute filter on flood warnings layer view
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;            // to display the warnings issued in that season
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;function &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;filterBySeason&lt;/SPAN&gt;(&lt;SPAN style="color: #fd971f;"&gt;event&lt;/SPAN&gt;) {
                &lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;selectedSeason &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #fd971f;"&gt;event&lt;/SPAN&gt;.target.&lt;SPAN style="color: #a6e22e;"&gt;getAttribute&lt;/SPAN&gt;(&lt;SPAN style="color: #e6db74;"&gt;"data-season"&lt;/SPAN&gt;);
                floodLayerView.filter &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;{
                    where&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"State = '" &lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;+ &lt;/SPAN&gt;selectedSeason &lt;SPAN style="color: #f92672;"&gt;+ &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"'"
&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;                &lt;/SPAN&gt;};
            }

            view.whenLayerView(layer).&lt;SPAN style="color: #a6e22e;"&gt;then&lt;/SPAN&gt;(&lt;SPAN style="color: #f92672;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="color: #fd971f;"&gt;layerView&lt;/SPAN&gt;) {
                &lt;SPAN style="color: #75715e;"&gt;// flash flood warnings layer loaded
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;                // get a reference to the flood warnings layerview
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;                &lt;/SPAN&gt;floodLayerView &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #fd971f;"&gt;layerView&lt;/SPAN&gt;;

                &lt;SPAN style="color: #75715e;"&gt;// set up UI items
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;                &lt;/SPAN&gt;seasonsElement.style.visibility &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"visible"&lt;/SPAN&gt;;
                &lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;seasonsExpand &lt;SPAN style="color: #f92672;"&gt;= new &lt;/SPAN&gt;&lt;SPAN style="color: #fd971f;"&gt;Expand&lt;/SPAN&gt;({
                    view&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;view,
                    content&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;seasonsElement,
                    expandIconClass&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"esri-icon-filter"&lt;/SPAN&gt;,
                    group&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"top-left"
&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;                &lt;/SPAN&gt;});
                &lt;SPAN style="color: #75715e;"&gt;//clear the filters when user closes the expand widget
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;                &lt;/SPAN&gt;seasonsExpand.&lt;SPAN style="color: #a6e22e;"&gt;watch&lt;/SPAN&gt;(&lt;SPAN style="color: #e6db74;"&gt;"expanded"&lt;/SPAN&gt;, &lt;SPAN style="color: #f92672;"&gt;function&lt;/SPAN&gt;() {
                    &lt;SPAN style="color: #f92672;"&gt;if &lt;/SPAN&gt;(&lt;SPAN style="color: #f92672;"&gt;!&lt;/SPAN&gt;seasonsExpand.expanded) {
                        floodLayerView.filter &lt;SPAN style="color: #f92672;"&gt;= null&lt;/SPAN&gt;;
                    }
                });
                view.ui.&lt;SPAN style="color: #a6e22e;"&gt;add&lt;/SPAN&gt;(seasonsExpand, &lt;SPAN style="color: #e6db74;"&gt;"top-left"&lt;/SPAN&gt;);
            });

            &lt;SPAN style="color: #75715e;"&gt;// Start Of Side Bar Element
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;           &lt;/SPAN&gt;view.whenLayerView(layer).&lt;SPAN style="color: #a6e22e;"&gt;then&lt;/SPAN&gt;(&lt;SPAN style="color: #f92672;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="color: #fd971f;"&gt;layerView&lt;/SPAN&gt;) {
                &lt;SPAN style="color: #fd971f;"&gt;layerView&lt;/SPAN&gt;.&lt;SPAN style="color: #a6e22e;"&gt;watch&lt;/SPAN&gt;(&lt;SPAN style="color: #e6db74;"&gt;"updating"&lt;/SPAN&gt;, &lt;SPAN style="color: #f92672;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="color: #fd971f;"&gt;value&lt;/SPAN&gt;) {
                    &lt;SPAN style="color: #f92672;"&gt;if &lt;/SPAN&gt;(&lt;SPAN style="color: #f92672;"&gt;!&lt;/SPAN&gt;&lt;SPAN style="color: #fd971f;"&gt;value&lt;/SPAN&gt;) {
                        &lt;SPAN style="color: #75715e;"&gt;// wait for the layer view to finish updating
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;                        // query all the features available for drawing.
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;                        &lt;/SPAN&gt;&lt;SPAN style="color: #fd971f;"&gt;layerView
&lt;/SPAN&gt;&lt;SPAN style="color: #fd971f;"&gt;                            &lt;/SPAN&gt;.queryFeatures({
                                geometry&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;view.extent,
                                returnGeometry&lt;SPAN style="color: #f92672;"&gt;: true&lt;/SPAN&gt;,
                                orderByFields&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;[&lt;SPAN style="color: #e6db74;"&gt;"NAME"&lt;/SPAN&gt;]
                            })
                            .&lt;SPAN style="color: #a6e22e;"&gt;then&lt;/SPAN&gt;(&lt;SPAN style="color: #f92672;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="color: #fd971f;"&gt;results&lt;/SPAN&gt;) {
                                graphics &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #fd971f;"&gt;results&lt;/SPAN&gt;.features;

                                &lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;fragment &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;document&lt;/SPAN&gt;.&lt;SPAN style="color: #a6e22e;"&gt;createDocumentFragment&lt;/SPAN&gt;();

                                graphics.&lt;SPAN style="color: #a6e22e;"&gt;forEach&lt;/SPAN&gt;(&lt;SPAN style="color: #f92672;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="color: #fd971f;"&gt;result&lt;/SPAN&gt;, &lt;SPAN style="color: #fd971f;"&gt;index&lt;/SPAN&gt;) {
                                    &lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;attributes &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #fd971f;"&gt;result&lt;/SPAN&gt;.attributes;
                                    &lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;name &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;attributes.NAME;

                                    &lt;SPAN style="color: #75715e;"&gt;// Create a list zip codes in NY
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;                                    &lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;li &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;document&lt;/SPAN&gt;.&lt;SPAN style="color: #a6e22e;"&gt;createElement&lt;/SPAN&gt;(&lt;SPAN style="color: #e6db74;"&gt;"li"&lt;/SPAN&gt;);
                                    li.classList.&lt;SPAN style="color: #a6e22e;"&gt;add&lt;/SPAN&gt;(&lt;SPAN style="color: #e6db74;"&gt;"panel-result"&lt;/SPAN&gt;);
                                    li.tabIndex &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;;
                                    li.&lt;SPAN style="color: #a6e22e;"&gt;setAttribute&lt;/SPAN&gt;(&lt;SPAN style="color: #e6db74;"&gt;"data-result-id"&lt;/SPAN&gt;, &lt;SPAN style="color: #fd971f;"&gt;index&lt;/SPAN&gt;);
                                    li.textContent &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;name;

                                    fragment.&lt;SPAN style="color: #a6e22e;"&gt;appendChild&lt;/SPAN&gt;(li);
                                });
                                &lt;SPAN style="color: #75715e;"&gt;// Empty the current list
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;                                &lt;/SPAN&gt;listNode.innerHTML &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;""&lt;/SPAN&gt;;
                                listNode.&lt;SPAN style="color: #a6e22e;"&gt;appendChild&lt;/SPAN&gt;(fragment);
                            })
                            .&lt;SPAN style="color: #a6e22e;"&gt;catch&lt;/SPAN&gt;(&lt;SPAN style="color: #f92672;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="color: #fd971f;"&gt;error&lt;/SPAN&gt;) {
                                &lt;SPAN&gt;console&lt;/SPAN&gt;.&lt;SPAN style="color: #a6e22e;"&gt;error&lt;/SPAN&gt;(&lt;SPAN style="color: #e6db74;"&gt;"query failed: "&lt;/SPAN&gt;, &lt;SPAN style="color: #fd971f;"&gt;error&lt;/SPAN&gt;);
                            });
                    }
                });
            });

            &lt;SPAN style="color: #75715e;"&gt;// listen to click event on the zip code list
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;            &lt;/SPAN&gt;listNode.&lt;SPAN style="color: #a6e22e;"&gt;addEventListener&lt;/SPAN&gt;(&lt;SPAN style="color: #e6db74;"&gt;"click"&lt;/SPAN&gt;, &lt;SPAN style="color: #a6e22e;"&gt;onListClickHandler&lt;/SPAN&gt;);

            &lt;SPAN style="color: #f92672;"&gt;function &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;onListClickHandler&lt;/SPAN&gt;(&lt;SPAN style="color: #fd971f;"&gt;event&lt;/SPAN&gt;) {
                &lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;target &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #fd971f;"&gt;event&lt;/SPAN&gt;.target;
                &lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;resultId &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;target.&lt;SPAN style="color: #a6e22e;"&gt;getAttribute&lt;/SPAN&gt;(&lt;SPAN style="color: #e6db74;"&gt;"data-result-id"&lt;/SPAN&gt;);

                &lt;SPAN style="color: #75715e;"&gt;// get the graphic corresponding to the clicked zip code
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;                &lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;result &lt;SPAN style="color: #f92672;"&gt;=
&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;                    &lt;/SPAN&gt;resultId &lt;SPAN style="color: #f92672;"&gt;&amp;amp;&amp;amp; &lt;/SPAN&gt;graphics &lt;SPAN style="color: #f92672;"&gt;&amp;amp;&amp;amp; &lt;/SPAN&gt;graphics[&lt;SPAN style="color: #ffc66d;"&gt;parseInt&lt;/SPAN&gt;(resultId, &lt;SPAN style="color: #ae81ff;"&gt;10&lt;/SPAN&gt;)];

                &lt;SPAN style="color: #f92672;"&gt;if &lt;/SPAN&gt;(result) {
                    &lt;SPAN style="color: #75715e;"&gt;// open the popup at the centroid of zip code polygon
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;                    // and set the popup's features which will populate popup content and title.
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;                    &lt;/SPAN&gt;view
                        .&lt;SPAN style="color: #a6e22e;"&gt;goTo&lt;/SPAN&gt;(result.geometry.extent.&lt;SPAN style="color: #a6e22e;"&gt;expand&lt;/SPAN&gt;(&lt;SPAN style="color: #ae81ff;"&gt;2&lt;/SPAN&gt;))
                        .&lt;SPAN style="color: #a6e22e;"&gt;then&lt;/SPAN&gt;(&lt;SPAN style="color: #f92672;"&gt;function&lt;/SPAN&gt;() {
                            view.popup.&lt;SPAN style="color: #a6e22e;"&gt;open&lt;/SPAN&gt;({
                                features&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;[result],
                                location&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;result.geometry.centroid
                            });
                        })
                        .&lt;SPAN style="color: #a6e22e;"&gt;catch&lt;/SPAN&gt;(&lt;SPAN style="color: #f92672;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="color: #fd971f;"&gt;error&lt;/SPAN&gt;) {
                            &lt;SPAN style="color: #f92672;"&gt;if &lt;/SPAN&gt;(&lt;SPAN style="color: #fd971f;"&gt;error&lt;/SPAN&gt;.name &lt;SPAN style="color: #f92672;"&gt;!= &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"AbortError"&lt;/SPAN&gt;) {
                                &lt;SPAN&gt;console&lt;/SPAN&gt;.&lt;SPAN style="color: #a6e22e;"&gt;error&lt;/SPAN&gt;(&lt;SPAN style="color: #fd971f;"&gt;error&lt;/SPAN&gt;);
                            }
                        });
                }
            }

        });
    &amp;lt;/&lt;SPAN style="color: #f92672;"&gt;script&lt;/SPAN&gt;&amp;gt;
&amp;lt;/&lt;SPAN style="color: #f92672;"&gt;head&lt;/SPAN&gt;&amp;gt;

&amp;lt;&lt;SPAN style="color: #f92672;"&gt;body&lt;/SPAN&gt;&amp;gt;
&amp;lt;&lt;SPAN style="color: #f92672;"&gt;div &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="panel-container"&lt;/SPAN&gt;&amp;gt;
&amp;lt;&lt;SPAN style="color: #f92672;"&gt;div &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="panel-side esri-widget"&lt;/SPAN&gt;&amp;gt;
    &amp;lt;&lt;SPAN style="color: #f92672;"&gt;h3&lt;/SPAN&gt;&amp;gt;&lt;SPAN style="font-weight: bold;"&gt;Marriage by Census Tract&lt;/SPAN&gt;&amp;lt;/&lt;SPAN style="color: #f92672;"&gt;h3&lt;/SPAN&gt;&amp;gt;
    &amp;lt;&lt;SPAN style="color: #f92672;"&gt;ul &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="nyc_graphics"&lt;/SPAN&gt;&amp;gt;
        &amp;lt;&lt;SPAN style="color: #f92672;"&gt;li&lt;/SPAN&gt;&amp;gt;&lt;SPAN style="font-weight: bold;"&gt;Loading&lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff; font-weight: bold;"&gt;&amp;amp;hellip;&lt;/SPAN&gt;&amp;lt;/&lt;SPAN style="color: #f92672;"&gt;li&lt;/SPAN&gt;&amp;gt;
    &amp;lt;/&lt;SPAN style="color: #f92672;"&gt;ul&lt;/SPAN&gt;&amp;gt;
&amp;lt;/&lt;SPAN style="color: #f92672;"&gt;div&lt;/SPAN&gt;&amp;gt;
&amp;lt;&lt;SPAN style="color: #f92672;"&gt;div &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="seasons-filter" &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="esri-widget"&lt;/SPAN&gt;&amp;gt;
    &amp;lt;&lt;SPAN style="color: #f92672;"&gt;div &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="season-item visible-season" &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;data-season&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="New York"&lt;/SPAN&gt;&amp;gt;&lt;SPAN style="font-weight: bold;"&gt;New York&lt;/SPAN&gt;&amp;lt;/&lt;SPAN style="color: #f92672;"&gt;div&lt;/SPAN&gt;&amp;gt;
    &amp;lt;&lt;SPAN style="color: #f92672;"&gt;div &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="season-item visible-season" &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;data-season&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="New Jersey"&lt;/SPAN&gt;&amp;gt;&lt;SPAN style="font-weight: bold;"&gt;New Jersey&lt;/SPAN&gt;&amp;lt;/&lt;SPAN style="color: #f92672;"&gt;div&lt;/SPAN&gt;&amp;gt;

&amp;lt;/&lt;SPAN style="color: #f92672;"&gt;div&lt;/SPAN&gt;&amp;gt;
&amp;lt;&lt;SPAN style="color: #f92672;"&gt;div &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="viewDiv"&lt;/SPAN&gt;&amp;gt;&amp;lt;/&lt;SPAN style="color: #f92672;"&gt;div&lt;/SPAN&gt;&amp;gt;
&amp;lt;/&lt;SPAN style="color: #f92672;"&gt;div&lt;/SPAN&gt;&amp;gt;
&amp;lt;/&lt;SPAN style="color: #f92672;"&gt;body&lt;/SPAN&gt;&amp;gt;
&amp;lt;/&lt;SPAN style="color: #f92672;"&gt;html&lt;/SPAN&gt;&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 13:43:20 GMT</pubDate>
    <dc:creator>AshRymer1</dc:creator>
    <dc:date>2021-12-11T13:43:20Z</dc:date>
    <item>
      <title>Filter Features By Attribute Combined With Query Features from a FeatureLayerView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/filter-features-by-attribute-combined-with-query/m-p/283485#M26178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iv been having trouble trying to combine the functionality between Filter by attribute and Query Features from a FeatureLayerView. Both samples are below;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/featurefilter-attributes/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/featurefilter-attributes/index.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Filter features by attribute | ArcGIS API for JavaScript 4.15&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/featurelayerview-query/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/featurelayerview-query/index.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Query features from a FeatureLayerView | ArcGIS API for JavaScript 4.15&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The aim is to apply the chosen filter (Filter feature by attribute), and this filter be applied to the Query FeatureLayerView showing in the side panel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have currently got both functionality working correctly in one sample, however they are still working in isolation from each other. I have added the code we have below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;!DOCTYPE &lt;SPAN style="color: #a6e22e;"&gt;html&lt;/SPAN&gt;&amp;gt;
&amp;lt;&lt;SPAN style="color: #f92672;"&gt;html&lt;/SPAN&gt;&amp;gt;
&amp;lt;&lt;SPAN style="color: #f92672;"&gt;head&lt;/SPAN&gt;&amp;gt;
    &amp;lt;&lt;SPAN style="color: #f92672;"&gt;meta &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;charset&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="utf-8" &lt;/SPAN&gt;/&amp;gt;
    &amp;lt;&lt;SPAN style="color: #f92672;"&gt;meta
&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;name&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="viewport"
&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;content&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="initial-scale=1,maximum-scale=1,user-scalable=no"
&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;    &lt;/SPAN&gt;/&amp;gt;
    &amp;lt;&lt;SPAN style="color: #f92672;"&gt;title&lt;/SPAN&gt;&amp;gt;&lt;SPAN style="font-weight: bold;"&gt;Filter features by attribute - Comb - Query features from a FeatureLayerView - 4.15&lt;/SPAN&gt;&amp;lt;/&lt;SPAN style="color: #f92672;"&gt;title&lt;/SPAN&gt;&amp;gt;

    &amp;lt;&lt;SPAN style="color: #f92672;"&gt;link
&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;rel&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="stylesheet"
&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;href&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="https://js.arcgis.com/4.15/esri/themes/light/main.css"
&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;    &lt;/SPAN&gt;/&amp;gt;
    &amp;lt;&lt;SPAN style="color: #f92672;"&gt;script &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;src&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="https://js.arcgis.com/4.15/"&lt;/SPAN&gt;&amp;gt;&amp;lt;/&lt;SPAN style="color: #f92672;"&gt;script&lt;/SPAN&gt;&amp;gt;

    &amp;lt;&lt;SPAN style="color: #f92672;"&gt;style&lt;/SPAN&gt;&amp;gt;
        &lt;SPAN style="color: #f92672;"&gt;html&lt;/SPAN&gt;,
        &lt;SPAN style="color: #f92672;"&gt;body&lt;/SPAN&gt;,
        &lt;SPAN style="color: #a6e22e;"&gt;#viewDiv &lt;/SPAN&gt;{
            &lt;SPAN style="color: #66d9ef;"&gt;padding&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;margin&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;height&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;100&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;%&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;width&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;100&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;%&lt;/SPAN&gt;;
        }

        &lt;SPAN style="color: #a6e22e;"&gt;#seasons-filter &lt;/SPAN&gt;{
            &lt;SPAN style="color: #66d9ef;"&gt;height&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;160&lt;/SPAN&gt;&lt;SPAN style="color: #68e868; font-weight: bold;"&gt;px&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;width&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;160&lt;/SPAN&gt;&lt;SPAN style="color: #68e868; font-weight: bold;"&gt;px&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;width&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;100&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;%&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;visibility&lt;/SPAN&gt;: &lt;SPAN style="color: #68e868; font-weight: bold;"&gt;hidden&lt;/SPAN&gt;;
        }

        .&lt;SPAN style="color: #a6e22e;"&gt;season-item &lt;/SPAN&gt;{
            &lt;SPAN style="color: #66d9ef;"&gt;width&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;100&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;%&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;padding&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;12&lt;/SPAN&gt;&lt;SPAN style="color: #68e868; font-weight: bold;"&gt;px&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;text-align&lt;/SPAN&gt;: &lt;SPAN style="color: #68e868; font-weight: bold;"&gt;center&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;vertical-align&lt;/SPAN&gt;: &lt;SPAN style="color: #68e868; font-weight: bold;"&gt;baseline&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;cursor&lt;/SPAN&gt;: &lt;SPAN style="color: #68e868; font-weight: bold;"&gt;pointer&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;height&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;40&lt;/SPAN&gt;&lt;SPAN style="color: #68e868; font-weight: bold;"&gt;px&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;height&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;50&lt;/SPAN&gt;&lt;SPAN style="color: #68e868; font-weight: bold;"&gt;px&lt;/SPAN&gt;;
        }

        .&lt;SPAN style="color: #a6e22e;"&gt;season-item&lt;/SPAN&gt;:&lt;SPAN style="color: #a6e22e;"&gt;focus &lt;/SPAN&gt;{
            &lt;SPAN style="color: #66d9ef;"&gt;background-color&lt;/SPAN&gt;: &lt;SPAN style="color: #68e868; font-weight: bold;"&gt;dimgrey&lt;/SPAN&gt;;
        }

        .&lt;SPAN style="color: #a6e22e;"&gt;season-item&lt;/SPAN&gt;:&lt;SPAN style="color: #a6e22e;"&gt;hover &lt;/SPAN&gt;{
            &lt;SPAN style="color: #66d9ef;"&gt;background-color&lt;/SPAN&gt;: &lt;SPAN style="color: #68e868; font-weight: bold;"&gt;dimgrey&lt;/SPAN&gt;;
        }

        .&lt;SPAN style="color: #a6e22e;"&gt;panel-container &lt;/SPAN&gt;{
            &lt;SPAN style="color: #66d9ef;"&gt;position&lt;/SPAN&gt;: &lt;SPAN style="color: #68e868; font-weight: bold;"&gt;relative&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;width&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;100&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;%&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;height&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;100&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;%&lt;/SPAN&gt;;
        }

        .&lt;SPAN style="color: #a6e22e;"&gt;panel-side &lt;/SPAN&gt;{
            &lt;SPAN style="color: #66d9ef;"&gt;padding&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="color: #68e868; font-weight: bold;"&gt;px&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;box-sizing&lt;/SPAN&gt;: &lt;SPAN style="color: #68e868; font-weight: bold;"&gt;border-box&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;width&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;300&lt;/SPAN&gt;&lt;SPAN style="color: #68e868; font-weight: bold;"&gt;px&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;height&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;100&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;%&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;position&lt;/SPAN&gt;: &lt;SPAN style="color: #68e868; font-weight: bold;"&gt;absolute&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;top&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;right&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;color&lt;/SPAN&gt;: &lt;SPAN style="color: #6897bb;"&gt;#fff&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;background-color&lt;/SPAN&gt;: &lt;SPAN style="color: #66d9ef;"&gt;rgba&lt;/SPAN&gt;(&lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;, &lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;, &lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;, &lt;SPAN style="color: #ae81ff;"&gt;0.6&lt;/SPAN&gt;);
            &lt;SPAN style="color: #66d9ef;"&gt;overflow&lt;/SPAN&gt;: &lt;SPAN style="color: #68e868; font-weight: bold;"&gt;auto&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;z-index&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;60&lt;/SPAN&gt;;
        }

        .&lt;SPAN style="color: #a6e22e;"&gt;panel-side &lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;h3 &lt;/SPAN&gt;{
            &lt;SPAN style="color: #66d9ef;"&gt;padding&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;0 20&lt;/SPAN&gt;&lt;SPAN style="color: #68e868; font-weight: bold;"&gt;px&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;margin&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;20&lt;/SPAN&gt;&lt;SPAN style="color: #68e868; font-weight: bold;"&gt;px &lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;;
        }

        .&lt;SPAN style="color: #a6e22e;"&gt;panel-side &lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;ul &lt;/SPAN&gt;{
            &lt;SPAN style="color: #66d9ef;"&gt;list-style&lt;/SPAN&gt;: &lt;SPAN style="color: #68e868; font-weight: bold;"&gt;none&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;margin&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;padding&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;;
        }

        .&lt;SPAN style="color: #a6e22e;"&gt;panel-side &lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;li &lt;/SPAN&gt;{
            &lt;SPAN style="color: #66d9ef;"&gt;list-style&lt;/SPAN&gt;: &lt;SPAN style="color: #68e868; font-weight: bold;"&gt;none&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;padding&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;10&lt;/SPAN&gt;&lt;SPAN style="color: #68e868; font-weight: bold;"&gt;px &lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff;"&gt;20&lt;/SPAN&gt;&lt;SPAN style="color: #68e868; font-weight: bold;"&gt;px&lt;/SPAN&gt;;
        }

        .&lt;SPAN style="color: #a6e22e;"&gt;panel-result &lt;/SPAN&gt;{
            &lt;SPAN style="color: #66d9ef;"&gt;cursor&lt;/SPAN&gt;: &lt;SPAN style="color: #68e868; font-weight: bold;"&gt;pointer&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;margin&lt;/SPAN&gt;: &lt;SPAN style="color: #ae81ff;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="color: #68e868; font-weight: bold;"&gt;px &lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;background-color&lt;/SPAN&gt;: &lt;SPAN style="color: #66d9ef;"&gt;rgba&lt;/SPAN&gt;(&lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;, &lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;, &lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;, &lt;SPAN style="color: #ae81ff;"&gt;0.3&lt;/SPAN&gt;);
        }

        .&lt;SPAN style="color: #a6e22e;"&gt;panel-result&lt;/SPAN&gt;:&lt;SPAN style="color: #a6e22e;"&gt;hover&lt;/SPAN&gt;,
        .&lt;SPAN style="color: #a6e22e;"&gt;panel-result&lt;/SPAN&gt;:&lt;SPAN style="color: #a6e22e;"&gt;focus &lt;/SPAN&gt;{
            &lt;SPAN style="color: #66d9ef;"&gt;color&lt;/SPAN&gt;: &lt;SPAN style="color: #68e868; font-weight: bold;"&gt;orange&lt;/SPAN&gt;;
            &lt;SPAN style="color: #66d9ef;"&gt;background-color&lt;/SPAN&gt;: &lt;SPAN style="color: #66d9ef;"&gt;rgba&lt;/SPAN&gt;(&lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;, &lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;, &lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;, &lt;SPAN style="color: #ae81ff;"&gt;0.75&lt;/SPAN&gt;);
        }
    &amp;lt;/&lt;SPAN style="color: #f92672;"&gt;style&lt;/SPAN&gt;&amp;gt;
    &amp;lt;&lt;SPAN style="color: #f92672;"&gt;script&lt;/SPAN&gt;&amp;gt;
        require([
            &lt;SPAN style="color: #e6db74;"&gt;"esri/views/MapView"&lt;/SPAN&gt;,
            &lt;SPAN style="color: #e6db74;"&gt;"esri/Map"&lt;/SPAN&gt;,
            &lt;SPAN style="color: #e6db74;"&gt;"esri/layers/FeatureLayer"&lt;/SPAN&gt;,
            &lt;SPAN style="color: #e6db74;"&gt;"esri/widgets/Expand"
&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;        &lt;/SPAN&gt;], &lt;SPAN style="color: #f92672;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="color: #fd971f;"&gt;MapView&lt;/SPAN&gt;, &lt;SPAN style="color: #fd971f;"&gt;Map&lt;/SPAN&gt;, &lt;SPAN style="color: #fd971f;"&gt;FeatureLayer&lt;/SPAN&gt;, &lt;SPAN style="color: #fd971f;"&gt;Expand&lt;/SPAN&gt;) {

            &lt;SPAN style="color: #f92672;"&gt;let &lt;/SPAN&gt;floodLayerView;
            &lt;SPAN style="color: #f92672;"&gt;let &lt;/SPAN&gt;graphics;
            &lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;listNode &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;document&lt;/SPAN&gt;.&lt;SPAN style="color: #a6e22e;"&gt;getElementById&lt;/SPAN&gt;(&lt;SPAN style="color: #e6db74;"&gt;"nyc_graphics"&lt;/SPAN&gt;);

            &lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;popupTemplate &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;{
                &lt;SPAN style="color: #75715e;"&gt;// autocasts as new PopupTemplate()
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;                &lt;/SPAN&gt;title&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"{NAME} in {COUNTY}"&lt;/SPAN&gt;,
                content&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;[
                    {
                        type&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"fields"&lt;/SPAN&gt;,
                        fieldInfos&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;[
                            {
                                fieldName&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"B12001_calc_pctMarriedE"&lt;/SPAN&gt;,
                                label&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"% Married"&lt;/SPAN&gt;,
                                format&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;{
                                    places&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;,
                                    digitSeparator&lt;SPAN style="color: #f92672;"&gt;: true
&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;                                &lt;/SPAN&gt;}
                            }
                        ]
                    }
                ]
            };

            &lt;SPAN style="color: #75715e;"&gt;// flash flood warnings layer
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;layer &lt;SPAN style="color: #f92672;"&gt;= new &lt;/SPAN&gt;&lt;SPAN style="color: #fd971f;"&gt;FeatureLayer&lt;/SPAN&gt;({
                url&lt;SPAN style="color: #f92672;"&gt;:
&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;                    &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"https://services.arcgis.com/P3ePLMYs2RVChkJx/ArcGIS/rest/services/ACS_Marital_Status_Boundaries/FeatureServer/2"&lt;/SPAN&gt;,
                outFields&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;[&lt;SPAN style="color: #e6db74;"&gt;"NAME"&lt;/SPAN&gt;, &lt;SPAN style="color: #e6db74;"&gt;"GEOID"&lt;/SPAN&gt;], &lt;SPAN style="color: #75715e;"&gt;// used by queryFeatures
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;                &lt;/SPAN&gt;popupTemplate&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;popupTemplate
            });

            &lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;map &lt;SPAN style="color: #f92672;"&gt;= new &lt;/SPAN&gt;&lt;SPAN style="color: #fd971f;"&gt;Map&lt;/SPAN&gt;({
                basemap&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"gray-vector"&lt;/SPAN&gt;,
                layers&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;[layer]
            });

            &lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;view &lt;SPAN style="color: #f92672;"&gt;= new &lt;/SPAN&gt;&lt;SPAN style="color: #fd971f;"&gt;MapView&lt;/SPAN&gt;({
                map&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;map,
                container&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"viewDiv"&lt;/SPAN&gt;,
                center&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;[&lt;SPAN style="color: #f92672;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff;"&gt;73.95&lt;/SPAN&gt;, &lt;SPAN style="color: #ae81ff;"&gt;40.702&lt;/SPAN&gt;],
                zoom&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff;"&gt;11
&lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff;"&gt;            &lt;/SPAN&gt;});

            &lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;seasonsNodes &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;document&lt;/SPAN&gt;.&lt;SPAN style="color: #a6e22e;"&gt;querySelectorAll&lt;/SPAN&gt;(&lt;SPAN style="color: #e6db74;"&gt;`.season-item`&lt;/SPAN&gt;);
            &lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;seasonsElement &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;document&lt;/SPAN&gt;.&lt;SPAN style="color: #a6e22e;"&gt;getElementById&lt;/SPAN&gt;(&lt;SPAN style="color: #e6db74;"&gt;"seasons-filter"&lt;/SPAN&gt;);

            &lt;SPAN style="color: #75715e;"&gt;// click event handler for seasons choices
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;            &lt;/SPAN&gt;seasonsElement.&lt;SPAN style="color: #a6e22e;"&gt;addEventListener&lt;/SPAN&gt;(&lt;SPAN style="color: #e6db74;"&gt;"click"&lt;/SPAN&gt;, &lt;SPAN style="color: #a6e22e;"&gt;filterBySeason&lt;/SPAN&gt;);

            &lt;SPAN style="color: #75715e;"&gt;// User clicked on Winter, Spring, Summer or Fall
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;            // set an attribute filter on flood warnings layer view
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;            // to display the warnings issued in that season
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;function &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;filterBySeason&lt;/SPAN&gt;(&lt;SPAN style="color: #fd971f;"&gt;event&lt;/SPAN&gt;) {
                &lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;selectedSeason &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #fd971f;"&gt;event&lt;/SPAN&gt;.target.&lt;SPAN style="color: #a6e22e;"&gt;getAttribute&lt;/SPAN&gt;(&lt;SPAN style="color: #e6db74;"&gt;"data-season"&lt;/SPAN&gt;);
                floodLayerView.filter &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;{
                    where&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"State = '" &lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;+ &lt;/SPAN&gt;selectedSeason &lt;SPAN style="color: #f92672;"&gt;+ &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"'"
&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;                &lt;/SPAN&gt;};
            }

            view.whenLayerView(layer).&lt;SPAN style="color: #a6e22e;"&gt;then&lt;/SPAN&gt;(&lt;SPAN style="color: #f92672;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="color: #fd971f;"&gt;layerView&lt;/SPAN&gt;) {
                &lt;SPAN style="color: #75715e;"&gt;// flash flood warnings layer loaded
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;                // get a reference to the flood warnings layerview
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;                &lt;/SPAN&gt;floodLayerView &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #fd971f;"&gt;layerView&lt;/SPAN&gt;;

                &lt;SPAN style="color: #75715e;"&gt;// set up UI items
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;                &lt;/SPAN&gt;seasonsElement.style.visibility &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"visible"&lt;/SPAN&gt;;
                &lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;seasonsExpand &lt;SPAN style="color: #f92672;"&gt;= new &lt;/SPAN&gt;&lt;SPAN style="color: #fd971f;"&gt;Expand&lt;/SPAN&gt;({
                    view&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;view,
                    content&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;seasonsElement,
                    expandIconClass&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"esri-icon-filter"&lt;/SPAN&gt;,
                    group&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"top-left"
&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;                &lt;/SPAN&gt;});
                &lt;SPAN style="color: #75715e;"&gt;//clear the filters when user closes the expand widget
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;                &lt;/SPAN&gt;seasonsExpand.&lt;SPAN style="color: #a6e22e;"&gt;watch&lt;/SPAN&gt;(&lt;SPAN style="color: #e6db74;"&gt;"expanded"&lt;/SPAN&gt;, &lt;SPAN style="color: #f92672;"&gt;function&lt;/SPAN&gt;() {
                    &lt;SPAN style="color: #f92672;"&gt;if &lt;/SPAN&gt;(&lt;SPAN style="color: #f92672;"&gt;!&lt;/SPAN&gt;seasonsExpand.expanded) {
                        floodLayerView.filter &lt;SPAN style="color: #f92672;"&gt;= null&lt;/SPAN&gt;;
                    }
                });
                view.ui.&lt;SPAN style="color: #a6e22e;"&gt;add&lt;/SPAN&gt;(seasonsExpand, &lt;SPAN style="color: #e6db74;"&gt;"top-left"&lt;/SPAN&gt;);
            });

            &lt;SPAN style="color: #75715e;"&gt;// Start Of Side Bar Element
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;           &lt;/SPAN&gt;view.whenLayerView(layer).&lt;SPAN style="color: #a6e22e;"&gt;then&lt;/SPAN&gt;(&lt;SPAN style="color: #f92672;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="color: #fd971f;"&gt;layerView&lt;/SPAN&gt;) {
                &lt;SPAN style="color: #fd971f;"&gt;layerView&lt;/SPAN&gt;.&lt;SPAN style="color: #a6e22e;"&gt;watch&lt;/SPAN&gt;(&lt;SPAN style="color: #e6db74;"&gt;"updating"&lt;/SPAN&gt;, &lt;SPAN style="color: #f92672;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="color: #fd971f;"&gt;value&lt;/SPAN&gt;) {
                    &lt;SPAN style="color: #f92672;"&gt;if &lt;/SPAN&gt;(&lt;SPAN style="color: #f92672;"&gt;!&lt;/SPAN&gt;&lt;SPAN style="color: #fd971f;"&gt;value&lt;/SPAN&gt;) {
                        &lt;SPAN style="color: #75715e;"&gt;// wait for the layer view to finish updating
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;                        // query all the features available for drawing.
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;                        &lt;/SPAN&gt;&lt;SPAN style="color: #fd971f;"&gt;layerView
&lt;/SPAN&gt;&lt;SPAN style="color: #fd971f;"&gt;                            &lt;/SPAN&gt;.queryFeatures({
                                geometry&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;view.extent,
                                returnGeometry&lt;SPAN style="color: #f92672;"&gt;: true&lt;/SPAN&gt;,
                                orderByFields&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;[&lt;SPAN style="color: #e6db74;"&gt;"NAME"&lt;/SPAN&gt;]
                            })
                            .&lt;SPAN style="color: #a6e22e;"&gt;then&lt;/SPAN&gt;(&lt;SPAN style="color: #f92672;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="color: #fd971f;"&gt;results&lt;/SPAN&gt;) {
                                graphics &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #fd971f;"&gt;results&lt;/SPAN&gt;.features;

                                &lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;fragment &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;document&lt;/SPAN&gt;.&lt;SPAN style="color: #a6e22e;"&gt;createDocumentFragment&lt;/SPAN&gt;();

                                graphics.&lt;SPAN style="color: #a6e22e;"&gt;forEach&lt;/SPAN&gt;(&lt;SPAN style="color: #f92672;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="color: #fd971f;"&gt;result&lt;/SPAN&gt;, &lt;SPAN style="color: #fd971f;"&gt;index&lt;/SPAN&gt;) {
                                    &lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;attributes &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #fd971f;"&gt;result&lt;/SPAN&gt;.attributes;
                                    &lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;name &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;attributes.NAME;

                                    &lt;SPAN style="color: #75715e;"&gt;// Create a list zip codes in NY
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;                                    &lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;li &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;document&lt;/SPAN&gt;.&lt;SPAN style="color: #a6e22e;"&gt;createElement&lt;/SPAN&gt;(&lt;SPAN style="color: #e6db74;"&gt;"li"&lt;/SPAN&gt;);
                                    li.classList.&lt;SPAN style="color: #a6e22e;"&gt;add&lt;/SPAN&gt;(&lt;SPAN style="color: #e6db74;"&gt;"panel-result"&lt;/SPAN&gt;);
                                    li.tabIndex &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff;"&gt;0&lt;/SPAN&gt;;
                                    li.&lt;SPAN style="color: #a6e22e;"&gt;setAttribute&lt;/SPAN&gt;(&lt;SPAN style="color: #e6db74;"&gt;"data-result-id"&lt;/SPAN&gt;, &lt;SPAN style="color: #fd971f;"&gt;index&lt;/SPAN&gt;);
                                    li.textContent &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;name;

                                    fragment.&lt;SPAN style="color: #a6e22e;"&gt;appendChild&lt;/SPAN&gt;(li);
                                });
                                &lt;SPAN style="color: #75715e;"&gt;// Empty the current list
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;                                &lt;/SPAN&gt;listNode.innerHTML &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;""&lt;/SPAN&gt;;
                                listNode.&lt;SPAN style="color: #a6e22e;"&gt;appendChild&lt;/SPAN&gt;(fragment);
                            })
                            .&lt;SPAN style="color: #a6e22e;"&gt;catch&lt;/SPAN&gt;(&lt;SPAN style="color: #f92672;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="color: #fd971f;"&gt;error&lt;/SPAN&gt;) {
                                &lt;SPAN&gt;console&lt;/SPAN&gt;.&lt;SPAN style="color: #a6e22e;"&gt;error&lt;/SPAN&gt;(&lt;SPAN style="color: #e6db74;"&gt;"query failed: "&lt;/SPAN&gt;, &lt;SPAN style="color: #fd971f;"&gt;error&lt;/SPAN&gt;);
                            });
                    }
                });
            });

            &lt;SPAN style="color: #75715e;"&gt;// listen to click event on the zip code list
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;            &lt;/SPAN&gt;listNode.&lt;SPAN style="color: #a6e22e;"&gt;addEventListener&lt;/SPAN&gt;(&lt;SPAN style="color: #e6db74;"&gt;"click"&lt;/SPAN&gt;, &lt;SPAN style="color: #a6e22e;"&gt;onListClickHandler&lt;/SPAN&gt;);

            &lt;SPAN style="color: #f92672;"&gt;function &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;onListClickHandler&lt;/SPAN&gt;(&lt;SPAN style="color: #fd971f;"&gt;event&lt;/SPAN&gt;) {
                &lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;target &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #fd971f;"&gt;event&lt;/SPAN&gt;.target;
                &lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;resultId &lt;SPAN style="color: #f92672;"&gt;= &lt;/SPAN&gt;target.&lt;SPAN style="color: #a6e22e;"&gt;getAttribute&lt;/SPAN&gt;(&lt;SPAN style="color: #e6db74;"&gt;"data-result-id"&lt;/SPAN&gt;);

                &lt;SPAN style="color: #75715e;"&gt;// get the graphic corresponding to the clicked zip code
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;                &lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;const &lt;/SPAN&gt;result &lt;SPAN style="color: #f92672;"&gt;=
&lt;/SPAN&gt;&lt;SPAN style="color: #f92672;"&gt;                    &lt;/SPAN&gt;resultId &lt;SPAN style="color: #f92672;"&gt;&amp;amp;&amp;amp; &lt;/SPAN&gt;graphics &lt;SPAN style="color: #f92672;"&gt;&amp;amp;&amp;amp; &lt;/SPAN&gt;graphics[&lt;SPAN style="color: #ffc66d;"&gt;parseInt&lt;/SPAN&gt;(resultId, &lt;SPAN style="color: #ae81ff;"&gt;10&lt;/SPAN&gt;)];

                &lt;SPAN style="color: #f92672;"&gt;if &lt;/SPAN&gt;(result) {
                    &lt;SPAN style="color: #75715e;"&gt;// open the popup at the centroid of zip code polygon
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;                    // and set the popup's features which will populate popup content and title.
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #75715e;"&gt;                    &lt;/SPAN&gt;view
                        .&lt;SPAN style="color: #a6e22e;"&gt;goTo&lt;/SPAN&gt;(result.geometry.extent.&lt;SPAN style="color: #a6e22e;"&gt;expand&lt;/SPAN&gt;(&lt;SPAN style="color: #ae81ff;"&gt;2&lt;/SPAN&gt;))
                        .&lt;SPAN style="color: #a6e22e;"&gt;then&lt;/SPAN&gt;(&lt;SPAN style="color: #f92672;"&gt;function&lt;/SPAN&gt;() {
                            view.popup.&lt;SPAN style="color: #a6e22e;"&gt;open&lt;/SPAN&gt;({
                                features&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;[result],
                                location&lt;SPAN style="color: #f92672;"&gt;: &lt;/SPAN&gt;result.geometry.centroid
                            });
                        })
                        .&lt;SPAN style="color: #a6e22e;"&gt;catch&lt;/SPAN&gt;(&lt;SPAN style="color: #f92672;"&gt;function&lt;/SPAN&gt;(&lt;SPAN style="color: #fd971f;"&gt;error&lt;/SPAN&gt;) {
                            &lt;SPAN style="color: #f92672;"&gt;if &lt;/SPAN&gt;(&lt;SPAN style="color: #fd971f;"&gt;error&lt;/SPAN&gt;.name &lt;SPAN style="color: #f92672;"&gt;!= &lt;/SPAN&gt;&lt;SPAN style="color: #e6db74;"&gt;"AbortError"&lt;/SPAN&gt;) {
                                &lt;SPAN&gt;console&lt;/SPAN&gt;.&lt;SPAN style="color: #a6e22e;"&gt;error&lt;/SPAN&gt;(&lt;SPAN style="color: #fd971f;"&gt;error&lt;/SPAN&gt;);
                            }
                        });
                }
            }

        });
    &amp;lt;/&lt;SPAN style="color: #f92672;"&gt;script&lt;/SPAN&gt;&amp;gt;
&amp;lt;/&lt;SPAN style="color: #f92672;"&gt;head&lt;/SPAN&gt;&amp;gt;

&amp;lt;&lt;SPAN style="color: #f92672;"&gt;body&lt;/SPAN&gt;&amp;gt;
&amp;lt;&lt;SPAN style="color: #f92672;"&gt;div &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="panel-container"&lt;/SPAN&gt;&amp;gt;
&amp;lt;&lt;SPAN style="color: #f92672;"&gt;div &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="panel-side esri-widget"&lt;/SPAN&gt;&amp;gt;
    &amp;lt;&lt;SPAN style="color: #f92672;"&gt;h3&lt;/SPAN&gt;&amp;gt;&lt;SPAN style="font-weight: bold;"&gt;Marriage by Census Tract&lt;/SPAN&gt;&amp;lt;/&lt;SPAN style="color: #f92672;"&gt;h3&lt;/SPAN&gt;&amp;gt;
    &amp;lt;&lt;SPAN style="color: #f92672;"&gt;ul &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="nyc_graphics"&lt;/SPAN&gt;&amp;gt;
        &amp;lt;&lt;SPAN style="color: #f92672;"&gt;li&lt;/SPAN&gt;&amp;gt;&lt;SPAN style="font-weight: bold;"&gt;Loading&lt;/SPAN&gt;&lt;SPAN style="color: #ae81ff; font-weight: bold;"&gt;&amp;amp;hellip;&lt;/SPAN&gt;&amp;lt;/&lt;SPAN style="color: #f92672;"&gt;li&lt;/SPAN&gt;&amp;gt;
    &amp;lt;/&lt;SPAN style="color: #f92672;"&gt;ul&lt;/SPAN&gt;&amp;gt;
&amp;lt;/&lt;SPAN style="color: #f92672;"&gt;div&lt;/SPAN&gt;&amp;gt;
&amp;lt;&lt;SPAN style="color: #f92672;"&gt;div &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="seasons-filter" &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="esri-widget"&lt;/SPAN&gt;&amp;gt;
    &amp;lt;&lt;SPAN style="color: #f92672;"&gt;div &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="season-item visible-season" &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;data-season&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="New York"&lt;/SPAN&gt;&amp;gt;&lt;SPAN style="font-weight: bold;"&gt;New York&lt;/SPAN&gt;&amp;lt;/&lt;SPAN style="color: #f92672;"&gt;div&lt;/SPAN&gt;&amp;gt;
    &amp;lt;&lt;SPAN style="color: #f92672;"&gt;div &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="season-item visible-season" &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;data-season&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="New Jersey"&lt;/SPAN&gt;&amp;gt;&lt;SPAN style="font-weight: bold;"&gt;New Jersey&lt;/SPAN&gt;&amp;lt;/&lt;SPAN style="color: #f92672;"&gt;div&lt;/SPAN&gt;&amp;gt;

&amp;lt;/&lt;SPAN style="color: #f92672;"&gt;div&lt;/SPAN&gt;&amp;gt;
&amp;lt;&lt;SPAN style="color: #f92672;"&gt;div &lt;/SPAN&gt;&lt;SPAN style="color: #a6e22e;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="color: #e6db74; font-weight: bold;"&gt;="viewDiv"&lt;/SPAN&gt;&amp;gt;&amp;lt;/&lt;SPAN style="color: #f92672;"&gt;div&lt;/SPAN&gt;&amp;gt;
&amp;lt;/&lt;SPAN style="color: #f92672;"&gt;div&lt;/SPAN&gt;&amp;gt;
&amp;lt;/&lt;SPAN style="color: #f92672;"&gt;body&lt;/SPAN&gt;&amp;gt;
&amp;lt;/&lt;SPAN style="color: #f92672;"&gt;html&lt;/SPAN&gt;&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:43:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/filter-features-by-attribute-combined-with-query/m-p/283485#M26178</guid>
      <dc:creator>AshRymer1</dc:creator>
      <dc:date>2021-12-11T13:43:20Z</dc:date>
    </item>
  </channel>
</rss>

