[OpenLayers-Users] Switching Between Google Maps Layers

Christopher Schmidt crschmidt at metacarta.com
Mon Sep 8 15:11:28 EDT 2008


On Mon, Sep 08, 2008 at 10:42:29AM -0700, Chris Streeter wrote:
> I have a question about using multiple Google Maps Layers.  When I bring up
> the Google Layer example (2.6<http://openlayers.org/dev/examples/google.html>,
> nightly <http://dev.openlayers.org/nightly/examples/google.html>), and
> switch between layers (ie. Google Physical to Google Streets), the map moves
> slightly south.  Changing the Base Layer back further moves the map south.
> This seems similar to what is described in the
> FAQ<http://faq.openlayers.org/google/why-does-the-map-move-to-the-southeast-when-i-switch-to-a-google-maps-layer/>,
> which is described as being fixed in the trunk and for 2.7, but might be
> different enough that this is a new problem.  I've been able to reproduce
> this locally with 2.7-rc1 and seen the same result.

The above is a different problem. This is simply related to the fact
that Google will do this unless you're in spherical mercator
(http://openlayers.org/dev/examples/spherical-mercator.html ,
http://trac.openlayers.org/wiki/SphericalMercator )

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list