[OpenLayers-Dev] Problems with switching between Google & Yahoo base layers..

Christopher Schmidt crschmidt at metacarta.com
Fri Aug 3 09:00:35 EDT 2007


On Fri, Aug 03, 2007 at 04:47:10PM +0530, louvy.joseph at gmail.com wrote:
> Hi all,
> 
> I don't have a demonstrable small example but here is what I am 
> experiencing.
> 
> If I have Google Satellite & Yahoo Satellite as base layers and when I 
> switch from Google to Yahoo by clicking through the Layer Switcher, the 
> yahoo layer behaves funny. Once the yahoo layer is activated, any clicks 
> in Yahoo layer keeps moving (or drifting) the layer south west. It 
> behaves as if I dragged the map even though I just clicked. When I tried 
> debugging, it seems like it tries to set center on mouseup thinking that 
> a drag has happened. But why does it think that I dragged to a different 
> center? It could be the problem with pixel to lat/lon conversion issues.
> 
> My knowledge of openlayers internals is limited. Has any body seen this 
> issue or does anybody have any hypothesis?
> 
> The same thing happens with Google Hybrid. Switching from Google 
> Satellite to Google Hybrid results in the similar behavior;  the Google 
> Hybrid is unusable after the switch with any mouse clicks; it starts 
> drifting as if I dragged the map for any mouse click.

The problem is likely that the Yahoo/Google Maps are not able to
properly identify their size, so they think their display area is
smaller than it actually is. The result is that the map always thinks
you have dragged.

If you have a demonstrable small example, can you share it, so that we
can work on fixing this? 

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Dev mailing list