Ticket #2881 (new bug)

Opened 3 years ago

Resizing map causes markers to shift relative to VirtualEarth layer

Reported by: dktrudgett Owned by:
Priority: minor Milestone: 3.0 Release
Component: general Version: 2.9
Keywords: Cc:
State:

Description

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.

Note: See TracTickets for help on using tickets.