<div dir="ltr"><div>Greetings all,</div>
<div>&nbsp;</div>
<div>I have an open layers map for which i would like to update the size.</div>
<div>&nbsp;</div>
<div>I do:</div>
<div>&nbsp;</div>
<div><font size="2">
<p></p></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">var</font></font><font size="2"> theResize=document.getElementById(</font><font color="#800000" size="2"><font color="#800000" size="2">&quot;theMap&quot;</font></font><font size="2">);
<p>theResize.style.width = integerPartWidth+</p></font><font color="#800000" size="2"><font color="#800000" size="2">&#39;px&#39;</font></font><font size="2">;
<p>theResize.style.height = integerPartHeight+</p></font><font color="#800000" size="2"><font color="#800000" size="2">&#39;px&#39;</font></font><font size="2">;
<p></p>
<p></p>
<p></p>
<p>myMAP.updateSize();</p>
<p></p>
<p></p></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">var</font></font><font size="2"> theSize = </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">new</font></font><font size="2"> OpenLayers.Size(integerPartWidth,integerPartHeight);
<p></p></font><font color="#008000" size="2"><font color="#008000" size="2">//graphic.setImageSize(theSize);</font></font><font size="2">
<p>graphic.size = theSize;</p>
<p>graphic.setTileSize();</p>
<p></p>
<p></p>
<p>graphic.setUrl(imageProcessorLocation+</p></font><font color="#800000" size="2"><font color="#800000" size="2">&#39;resize&amp;width=&#39;</font></font><font size="2">+integerPartWidth+</font><font color="#800000" size="2"><font color="#800000" size="2">&#39;&amp;height=&#39;</font></font><font size="2">+integerPartHeight+</font><font color="#800000" size="2"><font color="#800000" size="2">&#39;&amp;counter=&#39;</font></font><font size="2">+clickCounter);
<p>clickCounter++;</p>
<p></p>
<p></p></font>
<p><font color="#008000" size="2"><font color="#008000" size="2"></font></font></p><font size="2">
<p></p>myMAP.zoomToMaxExtent(); 
<p></p></font></div>
<div>by setting the new url i am invoking my image generator which will me a larger image based on my new paramets.</div>
<div>&nbsp;</div>
<div>The image generator gets invoked and the generates a resized image.</div>
<div>&nbsp;</div>
<div>But ocasionaly the map does not display my resized image.</div>
<div>&nbsp;</div>
<div>Anything wrong i am doing that you might be able to see?</div>
<div>&nbsp;</div>
<div>Cheers</div>
<div>Dan<br clear="all"><br>-- <br>Radiceski Darko<br>University of Wollongong<br>Australia<br>SIFE - UOW Chapter - Alumni<br>CASUAL ACADEMIC STAFF TEACHING - UOW SITACS<br>(School of Information Technology and Computer Science,University of Wollongong)<br>
Univeristy of Wollongong - Alumni<br></div></div>