[OpenLayers-Dev] google layer problem

Eric Lemoine eric.c2c at gmail.com
Thu Nov 29 14:56:28 EST 2007


On Nov 28, 2007 7:17 AM, li ethan <ethan919 at gmail.com> wrote:
> Dear listers:
>       I'm trying to add google satellite layer,to adapt my own program
> I changed the number of layers in the initialize function like this:
> var g_satellite_layer = new OpenLayers.Layer.Google( "Google
> Satellite" , {type: G_SATELLITE_MAP, MIN_ZOOM_LEVEL:9,
> MAX_ZOOM_LEVEL:15} );
> but when I change baselayer to this layer,it will disable all the
> overlays,make all of them disappear and disable.It seems like when I
> set MIN_ZOOM_LEVEL greater than 2,the above problem will come up ,when
> the MIN_ZOOM_LEVEL is equal or lesser than 2,everything is fine,does
> anyone know what causes this problem,Thanks in advance!

Hi

If you use current SVN code, you can try the patch attached to this
ticket: <http://trac.openlayers.org/ticket/1124>. I'm not sure at all
it'll fix your problem, but I'm curious to know :-)

Cheers,

--
Eric



More information about the Dev mailing list