Toggle graphic visibility.

799
2
Jump to solution
01-07-2013 04:40 AM
ShawnNelson
New Contributor II
I am trying to use "[graphic setVisible:NO];", but when I go back to the map the graphic is still displayed. I tried using "[self.pointFeatureLayer refresh];", but I get the same thing. Am I missing something for toggling a graphic's visibility?
0 Kudos
1 Solution

Accepted Solutions
ShawnNelson
New Contributor II
I know you are not supposed to reply to your own thread, but I found the answer. I had to use datachanged on the layer and not refresh.

View solution in original post

0 Kudos
2 Replies
ShawnNelson
New Contributor II
I know you are not supposed to reply to your own thread, but I found the answer. I had to use datachanged on the layer and not refresh.

View solution in original post

0 Kudos
DeniseKing
Esri Regular Contributor
There is no rule that you cannot reply to your own question Shawn. Answer is help to others, no matter where it comes from. 🙂

Cheers,
Denise
0 Kudos