[OpenLayers-Dev] Virtual Earth not resizing in Open Layers - Solution

Darko Radiceski radiceski at gmail.com
Mon May 12 10:06:45 EDT 2008


Dear all,

I wasnt sure how to post this.

But here is a solution to the problem i had before. The VirtualEarth class
file in OpenLayers does not have the onResize method defined. So here is my
little contribution:


onMapResize: function() {

var sz = this.map.getSize();

this.mapObject.Resize(sz.w,sz.h);

},
this function is needed so the VE map resizes properly to fit the width and
the height of the div.


Sincerely
Darko

-- 
Radiceski Darko
University of Wollongong
Australia
SIFE - UOW Chapter - Alumni
CASUAL ACADEMIC STAFF TEACHING - UOW SITACS
(School of Information Technology and Computer Science,University of
Wollongong)
Univeristy of Wollongong - Alumni
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20080513/e22f1f22/attachment.html


More information about the Dev mailing list