[OpenLayers-Trac] Re: [OpenLayers] #3475: Google base layer not showing when switching base layers

OpenLayers trac-20090302 at openlayers.org
Mon Aug 29 16:41:05 EDT 2011

#3475: Google base layer not showing when switching base layers
 Reporter:  guendhoer        |       Owner:                 
     Type:  bug              |      Status:  new            
 Priority:  major            |   Milestone:  2.11 Release   
Component:  Layer.Google.v3  |     Version:  2.11 RC3       
 Keywords:                   |       State:  Needs More Work
Changes (by guendhoer):

  * state:  Awaiting User Feedback => Needs More Work


 thank you for your reply,
 I found the real issue now, it has to do with the map.updateSize()
 function which I call on window resizes. I need to call it because
 otherwise the vectors won't be at the right positions after resize.

 However, I have prepared an example for you, you can test it here:

 1) Load the page with maximized window, open Layer Switcher
 2) Un-Maximize the window or resize it, then choose another Google Layer
 -> nothing will happen

 Tested with IE, Firefox, Safari, Chrome. If it works first time please try
 again, 95% of the time it won't work.

 Thank you for your work!

 Best regards,
 Stefan Gündhör

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

More information about the Trac mailing list