[OpenLayers-Trac] [OpenLayers] #1240: navigation history control

OpenLayers trac at openlayers.org
Mon Jan 7 12:48:32 EST 2008


#1240: navigation history control
----------------------+-----------------------------------------------------
  Reporter:  tschaub  |       Owner:             
      Type:  feature  |      Status:  new        
  Priority:  minor    |   Milestone:  2.6 Release
 Component:  Control  |     Version:  2.5        
Resolution:           |    Keywords:             
     State:           |  
----------------------+-----------------------------------------------------
Comment (by tschaub):

 Replying to [comment:6 bartvde]:
 > Tim, I noticed that if the control is added after map.zoomToMaxExtent
 has already been called that things don't work. I get a javascript error
 in that case:
 >
 > {{{
 > this.on has no properties
 > (no name)()OpenLayers.js (line 6097)
 > initStack()OpenLayers.js (line 6148)
 > activate()OpenLayers.js (line 6134)
 > draw()OpenLayers.js (line 6017)
 > addControlToMap(Object displayClass=olControlNavigationHistory,
 undefined)OpenLayers.js (line 10767)
 > addControl(Object displayClass=olControlNavigationHistory,
 undefined)OpenLayers.js (line 10751)
 > initToolbar()mapviewer20.js (line 127)
 > initMap(div#center1)mapviewer20.js (line 60)
 > (no name)()mapviewer20 (line 109)
 > Observable()ext-all.js (line 12)
 > [Break on this error] this.on[type], this
 > }}}
 >
 > So either this should be documented, or resolved.

 Apologies for that.  I've fixed it in my sandbox.  New patch to come.

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


More information about the Trac mailing list