[OpenLayers-Trac] [OpenLayers] #1320: OverviewMap will break if moveend is triggered too early
OpenLayers
trac at openlayers.org
Mon Feb 4 08:26:23 EST 2008
#1320: OverviewMap will break if moveend is triggered too early
----------------------+-----------------------------------------------------
Reporter: ahocevar | Owner:
Type: feature | Status: new
Priority: minor | Milestone:
Component: general | Version: 2.5
Keywords: | State:
----------------------+-----------------------------------------------------
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.
--
Ticket URL: <http://trac.openlayers.org/ticket/1320>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list