[OpenLayers-Dev] overviewMap viewport size to show entire overview map

Val Cartei val.cartei at gmail.com
Tue Oct 23 10:19:00 EDT 2007

I am trying to modify the size of the overviewMap control from its original
settings (180,90) to display the whole overview map.
I seem to have achieved this, however when I drag the rectangle to browse
the overview, its map scrolls, whereas it should stay fixed in the overview
If I restrict the extents of the map to its size it doesn't work either. Any

Here's the code:

//overviewMap object to  resize to match the size of the overview map

//restrict the extent of the overview map
scroller.ovmap.restrictedExtent=new OpenLayers.Bounds.fromSize(ovmap_size);

Best Regards,

Valentina Cartei
UK Tel. +44 (0)796 6882820
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20071023/d742cbae/attachment.html

More information about the Dev mailing list