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

OpenLayers trac-20090302 at openlayers.org
Tue Aug 30 05:34:23 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

Comment(by guendhoer):

 Ahhhh you are right!! I already tried to use GoogleNG but I guess I
 instantiatet it the wrong way. Now it is working for me! Surprisingly I
 don't see any Google Logo anymore - but that doesn't really bother me ;-)
 So it was not a bug? Are users supposed to use GoogleNG in future instead
 of normal Google Layer?

 Replying to [comment:8 fredj]:
 > Replying to [comment:2 bartvde]:
 > > Hi, are you able to check if using !OpenLayers.Layer.GoogleNG instead
 would fix your issue?
 > You're right: using GoogleNG fixes the issue.
 > @guendhoer: you can change your tree layers creation from:
 > {{{
 > new OpenLayers.Layer.Google(
 >   "Google Physical",
 >   {type: google.maps.MapTypeId.TERRAIN}
 > );
 > }}}
 > to:
 > {{{
 > new OpenLayers.Layer.GoogleNG({
 >   name: "Google Physical",
 >   type: google.maps.MapTypeId.TERRAIN
 > });
 > }}}

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

More information about the Trac mailing list