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 'full screen' 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 = $('#carte').css('height');<br><br> if (height != "100%") {<br> $('#carte').css('height', '100%');<br>
$('#carte').css('width', '100%');<br> } else {<br> $('#carte').css('height', '400px');<br> $('#carte').css('width', '600px');<br>
<br> }<br><br> map.updateSize();<br>}<br><br>It'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>