[OpenLayers-Trac] [OpenLayers] #2881: Resizing map causes markers
to shift relative to VirtualEarth layer
OpenLayers
trac-20090302 at openlayers.org
Wed Oct 13 19:15:32 EDT 2010
#2881: Resizing map causes markers to shift relative to VirtualEarth layer
------------------------+---------------------------------------------------
Reporter: dktrudgett | Owner:
Type: bug | Status: new
Priority: minor | Milestone: 3.0 Release
Component: general | Version: 2.9
Keywords: | State:
------------------------+---------------------------------------------------
There is a problem with markers shifting relative to a VirtualEarth
baselayer. Other types of base layer (tried Google, OSM) do not show
this problem.
Reproduce as follows:
1. Create VirtualEarth layer as base layer.
2. Create marker(s) on a Marker layer.
3. Place the map within a JQuery resizable panel.
4. Hook into JQuery onresize_end event, and call the Map.updateSize()
function.
5. Resize the map manually with the mouse.
This causes the marker position to shift relative to the VirtualEarth
layer.
Manually, with the mouse, using the LayerSwitcher control, turning the
Marker layer to invisible then visible again, redisplays the Marker(s)
in the correct position. However, doing the same programmatically has
no effect.
I am testing in Windows XP professional (latest update), latest
Firefox (3.6.10), OpenLayers release 2.9.1.
--
Ticket URL: <http://trac.openlayers.org/ticket/2881>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list