[OpenLayers-Users] Displaying map in absolutely positioned div

Richard Eichhorn r.eichhorn at netbi.com.au
Thu Nov 12 02:39:55 EST 2009


I have a map displayed in an absolutely positioned DIV which I can move
about the screen.

When I create an OpenLayers.Control.
SelectFeature control and draw a rectangle by holding down the mouse button
and dragging, it works fine.  If I then move the DIV containing the map, and
try it again the starting position of the rectangle is now relative to the
original position of the DIV.

If I then subsequently resize the browser window, it starts working again.

I have tried experimenting with calling onMapResize() for each layer, but it
makes no difference.

Any ideas?

Cheers,
Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20091112/b8823222/attachment.html


More information about the Users mailing list