[OpenLayers-Dev] Fill up the most available space in the div tag by wms map

Darko Radiceski radiceski at gmail.com
Mon Jun 23 09:33:48 EDT 2008

Dear all,

I am experiencing the following issue....

I load a map from WMS. And then i call map.zoomToMaxExtent()

That zooms out to full extent but what i have noticed it does not fill up to
the most available space in the div tag. The div tag for the map is of
absolute size.

So for example if the div tag is 400 x 400 , when i zoom to maxExtent the
WMS map i get is like 300 x 300 and is centered in the div. I would like the
map to fill the full 400 x 400 with the 180 and -180 being right at the edge
of the div.

Is is possible to specify on initial load for the map to be zoomed to full
extent but also fill up the most real eastate possible?


Radiceski Dan
University of Wollongong
SIFE - UOW Chapter - Alumni
(School of Information Technology and Computer Science,University of
Univeristy of Wollongong - Alumni
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20080623/d21d3237/attachment.html

More information about the Dev mailing list