How can I hide a single Graphic on a FeatureLayer?
If I click on a Feature i get a Popup with the ActionButton "hide feature".
In the code i am listening on the corresponding event like
I've tried to set the visiblity of the selected feature to false but it is still visible:
mapView.popup.selectedFeature.visible = false;
Even if i try do remove all graphics of the FeatureLayer they are still visible:
const featureLayer = mapView.popup.selectedFeature.layer as FeatureLayer;
featureLayer.removeAll();
featureLayer.refresh();
I have also tried to set the definitionExpression of the layer for filtering but this has no effect either.
Is there an easy way to hide a single graphic from a FeatureLayer by setting visibility or removing the feature from the Layer?