[OpenLayers-Trac] [OpenLayers] #2901: MapMarkers positioned
incorrectly when browser resized on VirtualEarth Layer
OpenLayers
trac-20090302 at openlayers.org
Mon Oct 25 08:01:09 EDT 2010
#2901: MapMarkers positioned incorrectly when browser resized on VirtualEarth
Layer
---------------------------------------------------------+------------------
Reporter: JeremyRyan | Owner: ahocevar
Type: bug | Status: new
Priority: major | Milestone: 2.11 Release
Component: Layer.VirtualEarth | Version: 2.10
Keywords: VirtualEarth, Bing, Marker, Resize Browser, | State:
---------------------------------------------------------+------------------
Using one of the OpenLayers sample pages for VirtualEarth, I added a map
marker to the map. When the browser is resized, the marker moves
correctly to being with, but soon moves to an incorrect position. The
marker offset by which the position is incorrect seems to be determined by
how far the browser window has been resized by.
During some debugging of the VirtualEarth layer, I found that the bounds
within the VEMap object where wrong, which in turn returned incorrect
pixel locations for the marker within the
getMapObjectPixelFromMapObjectLonLat function. When the marker was
resized correctly, the bounds within VEMap where correct and the correct
pixel location was returned.
I have enclosed sample code which adds a map marker on a VirtualEarth map.
I have also enclosed screen shots of the bug with ResizedMapWindow0.gif as
the starting image and ResizedMapWindow4.gif as the ending image.
Platform: Windows XP (32bit).
--
Ticket URL: <http://trac.openlayers.org/ticket/2901>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list