[OpenLayers-Dev] Update the size of the map

Darko Radiceski radiceski at gmail.com
Wed Oct 8 02:23:56 EDT 2008


Greetings all,

I have an open layers map for which i would like to update the size.

I do:


var theResize=document.getElementById("theMap");

theResize.style.width = integerPartWidth+'px';

theResize.style.height = integerPartHeight+'px';

 myMAP.updateSize();

var theSize = new OpenLayers.Size(integerPartWidth,integerPartHeight);

//graphic.setImageSize(theSize);

graphic.size = theSize;

graphic.setTileSize();

 graphic.setUrl(imageProcessorLocation+'resize&width='+integerPartWidth+
'&height='+integerPartHeight+'&counter='+clickCounter);

clickCounter++;

 myMAP.zoomToMaxExtent();

by setting the new url i am invoking my image generator which will me a
larger image based on my new paramets.

The image generator gets invoked and the generates a resized image.

But ocasionaly the map does not display my resized image.

Anything wrong i am doing that you might be able to see?

Cheers
Dan

-- 
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/20081008/ceba175e/attachment.html


More information about the Dev mailing list