[OpenLayers-Users] baseLayer change problem
alexandre.ardhuin at deveryware.com
Fri Jan 16 11:26:16 EST 2009
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users