Ticket #1320 (closed bug: fixed)
Race conditions with creation and destruction of OverviewMap
|Reported by:||ahocevar||Owned by:||tschaub|
Currently, the update() method of Control.OverviewMap is bound to the moveend event before the initial call of update(), which is there to create the overview map. In some occasions, if the moveend event is triggered before the initial update is finished, the overview map will break because createMap() will run twice at the same time.
The attached patch fixes this by registering update() for the moveend event after calling update() manually.
Note that this patch also removes the clickHandler deactivate/activate cycle, which is obsolete now that #1247 is fixed.
All tests pass in FF2 and IE6.