Graphics Layer Visibility

746
2
03-29-2013 09:02 AM
LukeCatania
New Contributor III
I am drawing crosshairs in a separate graphics layer and I want to be able to turn it on and off, but when I set the visibilty to off or remove all the graphics from the layer, the crosshairs are still their like they are burned into the map layer.  The crosshairs don't refresh.  It just stays in spot it was before I turned off the layer.  When I turn the visibility back on the location is updated when I pan or touch on the map.  I tried to invalidate the mapview, but did nothing.
0 Kudos
2 Replies
AxelBronder1
New Contributor
Have the same problem, using a Grouplayer with several Graphic Layers.

myGroupLayer.getLayer(k).setVisible(false);//Doesnt work

It only hides the layer properties (it is for example not tapable anymore) but I can still see the layer on the screen... Also the program crashes for no reason soon after this.

This must be a bug?
0 Kudos
ThomasBinu
New Contributor III
I am also facing the same issue. Toggling the visibility of a sub layer does not have any effect on the map but when I pan/zoom on the map, the layer visibility is updated on the map. Can any from esri reply to this issue?
0 Kudos