[OpenLayers-Users] Google Overviewmap

JuKiM rifins at gmail.com
Fri Feb 5 07:53:10 EST 2010


Hi,

In the code you passed me, if I put the spherical Mercator to true, it
doesn't center correctly..
If I zoom at maximum the center of overview is very near from the "right"
center, but if i zoom out.. every time the overviewmap changes the scale, it
centers far from the center of base layer.. (if i center newyork in base
layer, the overview map, is centered over south africa..)

And if I don't put the sphericalmercator to true, then it centers ok, but
again it put the center of the baselayer to the top-left of overviewmap.

What i'm doing wrong?

Thanks!

2010/2/5 Max Weidemann <max.weidemann at freenet.de>

>
> Hello JuKiM,
>
> Try this layer as you overview layer.
>
> var ovMAP = new OpenLayers.Layer.Google("GMap Streets", {
>                         type:G_NORMAL_MAP,
>                        'sphericalMercator': true,
>                        maxExtent: new OpenLayers.Bounds(-20037508,
> -20037508,
>                            20037508, 20037508.34)
>        });
>
> cheers
> Max
> --
> View this message in context:
> http://n2.nabble.com/Google-Overviewmap-tp4519147p4519507.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100205/42cab493/attachment.html


More information about the Users mailing list