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

OpenLayers trac-20090302 at openlayers.org
Fri Aug 26 20:12:26 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:              
-----------------------------+----------------------------------------------
 Following reproduction Steps:

 - Create a map with following options
 {{{
 projection: new OpenLayers.Projection('EPSG:900913'),
 displayProjection: new OpenLayers.Projection("EPSG:4326"),
 }}}
 - Add Yahoo, OpenStreetmap, Bing and Googlev3 BaseLayer (add Google Layer
 as last one)
 - Add a Vector Layer, display it, vector layer settings I used:
 {{{
 var vector_format = new OpenLayers.Format.GeoJSON(
             {
                 'externalProjection': new OpenLayers.Projection(epsg), //
 in my test case EPSG:4326
                 'internalProjection': new
 OpenLayers.Projection("EPSG:900913")
             });
 }}}
 - Try to change BaseLayer from Bing / OSM / Yahoo to Google Layer -> it
 won't show up. Move the map using the mouse, suddelny it will show up.
 - after this switching to Google Layer will work
 - Switch back to another base Layer, hide&show the vector Layer and try
 switching to Google Layer again -> won't show up again

 Using OL v2.10 I don't experience this problem, but as soon as I use v2.11
 RC 1/2 or 3 the problem occurs.

 Note: This problem also occurs when only using different Google BaseLayers
 - first one will be initially displayed, switching works until vector
 layer is added, but not after it.

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


More information about the Trac mailing list