[OpenLayers-Users] baseLayer change problem

Alexandre Ardhuin alexandre.ardhuin at deveryware.com
Fri Jan 16 11:26:16 EST 2009


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090116/3fe3fe2f/attachment.html


More information about the Users mailing list