Hi,

I have a strange behaviour when switching baseLayer in IE. The google layer
(the target baselayer) is not really centered : map.getPixelFromLonLat(map.
getCenter()) returns (0,0)

I can observe the same behaviour in FF (with SpericalMercator example) by
stopping the execution of script during some seconds with a breakpoint (in
Firebug) on Map.js at the line :
this.baseLayer.moveTo(bounds, zoomChanged, dragging);  ( in moveTo()  )
After resuming, map.getPixelFromLonLat(map.getCenter()) returns (0,0)

Moreover, a resize of the window updates the map and resolves this
problem...

Regards,

Alexandre.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to