I have a widget that clears the map of graphics and closes all the widgets on the screen. It runs well except that the map becomes unresponsive to mouse events and seems almost frozen.
I implemented the widget by:
1.Iterating over the layer list on the map object and removing any graphic layer
2.dispatching an appEvent that the widget template listens for. The widget template handles the event by telling the base widget to setState to 'closed'.
Does anyone have any ideas why the map would become sluggish?
Thanks.
john