[OpenLayers-Dev] Fill up the most available space in the div
tag by wms map
juangon at gmail.com
Mon Jun 23 10:44:43 EDT 2008
I´ve came up against a problem like that in the viewer we´ve made.
Finally I had to make some test to ensure that the maxExtent is ok with some
min. resolution (in my case it was 1024*768, but the map div height and
width was in percentage, not absolute values).
Perhaps it`s not the best solution for this, but it worked more less. Now it
works with 1024*768 and higher resolutions...
I didn´t find any solution at 100% for this.
2008/6/23 Darko Radiceski <radiceski at gmail.com>:
> 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
> CASUAL ACADEMIC STAFF TEACHING - UOW SITACS
> (School of Information Technology and Computer Science,University of
> Univeristy of Wollongong - Alumni
> Dev mailing list
> Dev at openlayers.org
Juan Gonzalez del Pino
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Dev