AnsweredAssumed Answered

How to refresh map after calling GraphicsLayer.remove()?

Question asked by sholyoak on Aug 13, 2012
Latest reply on Aug 13, 2012 by sholyoak
I want to allow users to select and unselect parcels in my map.  The select works great, becauseGraphicsLayer.add() calls a "refresh" method of some sort that draws my graphics layer when invoked.  Unfortunately, when I call GraphicsLayer.remove(), that "refresh" method isn't invoked, and my graphics layer in the map is not updated, showing the graphic as still selected.  How do I remove a graphic from a GraphicsLayer and have the map update?  I'm on version 2.8 of the api.  Thanks.

Outcomes