Hi,
Scenario setup:
- Create a feature layer or multiple (client side only)
- Adding thousands of features using applyEdit.
Up to that point everything works, now I am checking if all my features (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.
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 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.
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 https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=layers-featurelayer-collection-edits
Thanks in advance for any advice