<?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: Changing the visible property on a feature doesn't change the actual visibility in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-the-visible-property-on-a-feature-doesn-t/m-p/1310509#M81753</link>
    <description>&lt;P&gt;Thanks for the answering,&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for my scenario where I would like to hide records depending on a polygon spatialRelationship and keep track of the now not visible items my best solution would be to delete the features or use a graphics layer?&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jul 2023 15:05:26 GMT</pubDate>
    <dc:creator>sfkpereira</dc:creator>
    <dc:date>2023-07-21T15:05:26Z</dc:date>
    <item>
      <title>Changing the visible property on a feature doesn't change the actual visibility</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-the-visible-property-on-a-feature-doesn-t/m-p/1310335#M81751</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Scenario setup:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create a feature layer or multiple (client side only)&lt;/LI&gt;&lt;LI&gt;Adding thousands of features using applyEdit.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Up to that point everything works, now I am checking if all my features&amp;nbsp; (could be multiple feature layers plotted at once) are in an union of geometries and for any features that are not I want to set them as not visible. I already made it work using FeatureFilters and effects but I want to be able to inspect the features and know if they are visible not just apply a css filter.&lt;/P&gt;&lt;P&gt;I am currently creating a query where I use the geometry and the spatialRelationship of 'disjoint' then loop through all the features and set visible to false just like any graphic and I applyEdits with the&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;updateFeatures property and when it says it updated the features but nothing changes on the layer. I have seen posts from years ago with similar questions so I guess my question is if there is a way to actually change the visibility or is the only option to remove them and re-add them again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anyone could replicate the issue in any sample that contains applyEdit and change it to use update and change the visible property of the features. Like on this one I hanged the delete to updating&amp;nbsp;&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=layers-featurelayer-collection-edits" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=layers-featurelayer-collection-edits&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any advice&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 02:40:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-the-visible-property-on-a-feature-doesn-t/m-p/1310335#M81751</guid>
      <dc:creator>sfkpereira</dc:creator>
      <dc:date>2023-07-21T02:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the visible property on a feature doesn't change the actual visibility</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-the-visible-property-on-a-feature-doesn-t/m-p/1310494#M81752</link>
      <description>&lt;P&gt;When Features are part of a FeatureLayer, the visibility is handled by the layer, not the features. You can define what is visible based on the definitionExpression.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#definitionExpression" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#definitionExpression&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The visibility of individual features would only work in a GraphicsLayer, since it's just a bag of graphics.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 14:25:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-the-visible-property-on-a-feature-doesn-t/m-p/1310494#M81752</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2023-07-21T14:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the visible property on a feature doesn't change the actual visibility</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-the-visible-property-on-a-feature-doesn-t/m-p/1310509#M81753</link>
      <description>&lt;P&gt;Thanks for the answering,&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for my scenario where I would like to hide records depending on a polygon spatialRelationship and keep track of the now not visible items my best solution would be to delete the features or use a graphics layer?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 15:05:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-the-visible-property-on-a-feature-doesn-t/m-p/1310509#M81753</guid>
      <dc:creator>sfkpereira</dc:creator>
      <dc:date>2023-07-21T15:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the visible property on a feature doesn't change the actual visibility</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-the-visible-property-on-a-feature-doesn-t/m-p/1310514#M81754</link>
      <description>&lt;P&gt;If you don't want to use &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html" target="_blank" rel="noopener"&gt;FeatureFilter&lt;/A&gt;, I would use the FeatureLayer (not visible) as the source for queries and place the results in a GraphicsLayer. Then you can quickly removeAll() on the graphics layer and add the results. You lose query/render capabilities which are not available on a GraphicsLayer, but it would work. This scenario is really what the FeatureFilter was designed for though.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 15:14:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-the-visible-property-on-a-feature-doesn-t/m-p/1310514#M81754</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2023-07-21T15:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the visible property on a feature doesn't change the actual visibility</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-the-visible-property-on-a-feature-doesn-t/m-p/1310681#M81756</link>
      <description>&lt;P&gt;&lt;SPAN&gt;FeatureFilter is a nice feature but sadly doesn't help with the business needs. I need to know how many features fall within each bucket so I can reflect that in the legend with how many records of X bucket are visible in an as in 90 visible out of 100 total records in that bucket (10hidden in that example) and other small features so I need to keep counts at all times and I am not sure&amp;nbsp;FeatureFilter allows me to do that and I need to run filters in all feature layers and not the views as I want to update all records&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 20:30:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-the-visible-property-on-a-feature-doesn-t/m-p/1310681#M81756</guid>
      <dc:creator>sfkpereira</dc:creator>
      <dc:date>2023-07-21T20:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the visible property on a feature doesn't change the actual visibility</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-the-visible-property-on-a-feature-doesn-t/m-p/1310685#M81757</link>
      <description>&lt;P&gt;You can query the objectids on the layer&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryObjectIds" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryObjectIds&lt;/A&gt;&amp;nbsp;and then use the result oids in your definitionExpression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or you can have a result FeatureLayer you use with applyEdits to put the results of the spatial query. Would require you delete the old features on update, but I've seen it done.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 20:44:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-the-visible-property-on-a-feature-doesn-t/m-p/1310685#M81757</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2023-07-21T20:44:44Z</dc:date>
    </item>
  </channel>
</rss>

