Select to view content in your preferred language

Clear all widget disables map

2170
1
01-27-2012 07:12 AM
JohnGarvey
Deactivated User
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
Tags (2)
0 Kudos
1 Reply
MLowry
by
Frequent Contributor
Have you tried running in debug mode in Flash Builder? Checked for processing going on during the freeze-up?
Post the loops you used to iterate through the layers, as maybe they are overflowing?
0 Kudos