Hi, I'm adding graphic to a feature layer using the applyEdit, my feature layer visibility property is set to true and the graphic that I'm adding to false, I want the graphic visibility to stay false and not been showing on the map, but it does, how to make the layer viability stay true but not showing the other graphics i add until i set them to true?
I'm using 4.24 version , previous version that I used (4.21) worked properly
Once you add a graphic to the FeatureLayer, the visibility/symbology is no longer managed by the Graphic, but the Layer.
You can set a definitionExpression or apply a FeatureEffect.
thank you for the replay, if so, why do we have the IsVisible property for the Graphic? just if added the Graphic directly to the view?
Not all graphics are part of a FeatureLayer. When added to a GraphicsLayer, the visibility can be set directly on the Graphic.