Hello,<br><br>I try to use mercator example <a href="http://openlayers.org/dev/examples/spherical-mercator.html">http://openlayers.org/dev/examples/spherical-mercator.html</a><br><br>But I want a button who toggle &#39;full screen&#39; and when I change the base layer this one take the old size.<br>
<br>This is my code when I click on the button:<br><br>function togglePleinEcran() {<br>    var height = $(&#39;#carte&#39;).css(&#39;height&#39;);<br><br>    if (height != &quot;100%&quot;) {<br>        $(&#39;#carte&#39;).css(&#39;height&#39;, &#39;100%&#39;);<br>
        $(&#39;#carte&#39;).css(&#39;width&#39;, &#39;100%&#39;);<br>    } else {<br>        $(&#39;#carte&#39;).css(&#39;height&#39;, &#39;400px&#39;);<br>        $(&#39;#carte&#39;).css(&#39;width&#39;, &#39;600px&#39;);<br>
<br>    }<br><br>    map.updateSize();<br>}<br><br>It&#39;s work the map take the all screen but when I change base layer (google to bing for example) bing take 600*400 and not 100%<br><br>Do you have an idea?<br><br>Thanks<br clear="all">
<br>-- <br>Aumard Jimmy<br>Développeur <br><br>KINAXIA<br>c/o CICA / PacaEst<br>2229 Route des Crêtes<br>F-06560 Sophia Antipolis<br><br>Tél.: +33 (0)4 8973 0242<br>Mob.: +33 (0)6 6017 2827<br>Fax : +33 (0)4 8307 6583<br>
<br><a href="http://www.kinaxia.fr">http://www.kinaxia.fr</a><br>