[OpenLayers-Trac] [OpenLayers] #1320: Problems with creation and destruction of OverviewMap

OpenLayers trac at openlayers.org
Mon Feb 4 11:12:13 EST 2008


#1320: Problems with creation and destruction of OverviewMap
-----------------------+----------------------------------------------------
  Reporter:  ahocevar  |       Owner:     
      Type:  feature   |      Status:  new
  Priority:  minor     |   Milestone:     
 Component:  general   |     Version:  2.5
Resolution:            |    Keywords:     
     State:  Review    |  
-----------------------+----------------------------------------------------
Changes (by ahocevar):

  * summary:  OverviewMap will break if moveend is triggered too early =>
              Problems with creation and destruction of
              OverviewMap

Comment:

 In addition to the problems on creation of the !OverviewMap controls, IE
 will also choke when the page unloads. This is due to the fact that an
 OL.Map object registers its destroy method for window.unload. We do not
 want to do this, because the ovmap might already be destroyed before
 !OverviewMap.destroy() is run. See examples/overviewmap.html to see that.

 The second patch (1320-!r5985-A1.patch) includes the changes of the
 previous patch, plus unregisters the window.unload event for the ovmap.

 All tests pass in FF2 and IE6.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/1320#comment:2>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list