I have try to make an example : <br><br>&lt;html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>&quot;&gt;<br>&lt;head&gt;<br>&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;<br>
&lt;title&gt;OpenLayers&lt;/title&gt;<br>&lt;!--  --&gt;<br><br>&lt;script    src=&#39;<a href="http://maps.google.com/maps?file=api&amp;amp;v=2&amp;amp;key=AZERAAAAbsmHETfVBBkfYg-JOma8IhRLLSF_UQf1WG5vAu5MHZHm0uNmSxSASAYqpbkiQpo160A-r5z5xWFQtw">http://maps.google.com/maps?file=api&amp;amp;v=2&amp;amp;key=AZERAAAAbsmHETfVBBkfYg-JOma8IhRLLSF_UQf1WG5vAu5MHZHm0uNmSxSASAYqpbkiQpo160A-r5z5xWFQtw</a>&#39;&gt;&lt;/script&gt;<br>
&lt;script    src=&quot;<a href="http://api.maps.yahoo.com/ajaxymap?v=3.0&amp;appid=euzuro-openlayers">http://api.maps.yahoo.com/ajaxymap?v=3.0&amp;appid=euzuro-openlayers</a>&quot;&gt;&lt;/script&gt;<br>&lt;script    src=&#39;<a href="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.1">http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.1</a>&#39;&gt;&lt;/script&gt;<br>
<br>&lt;!-- &lt;script src=&quot;OpenLayers-2.8/lib/OpenLayers.js&quot;&gt;&lt;/script&gt;--&gt;<br>&lt;script src=&quot;<a href="http://openlayers.org/api/2.9-rc3/OpenLayers.js">http://openlayers.org/api/2.9-rc3/OpenLayers.js</a>&quot;&gt;&lt;/script&gt; <br>
<br>&lt;script type=&#39;text/javascript&#39;&gt; <br>//<br>var map;<br><br>// increase reload attempts<br>OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3;<br><br>/**<br> * Initialise la map, les couches, les evenements...<br> * @return void<br>
 */<br>function init() {<br><br>    var usrbounds = new OpenLayers.Bounds(-1433917.9163166, 5014554.4359391,2167713.3877521, 6882716.1409359);<br><br>    var options = {<br>        projection : new OpenLayers.Projection(&quot;EPSG:900913&quot;),<br>
        displayProjection : new OpenLayers.Projection(&quot;EPSG:4326&quot;),<br>        units : &quot;m&quot;,<br>        // restrictedExtent : usrbounds,<br>        numZoomLevels : 18,<br>        maxResolution : 156543.0339,<br>
        maxExtent : new OpenLayers.Bounds(-20037508, -20037508, 20037508,<br>                20037508.34),<br>        controls : [ new OpenLayers.Control.Navigation(),<br>                     new OpenLayers.Control.MousePosition(),<br>
                     new OpenLayers.Control.LayerSwitcher() ]<br>    };<br>    map = new OpenLayers.Map(&#39;map&#39;, options);<br><br>    // create Google Mercator layers<br>    <br>        var gmap = new OpenLayers.Layer.Google(&quot;google_str&quot;, {<br>
            &#39;sphericalMercator&#39; : true<br>        });<br>        var gsat = new OpenLayers.Layer.Google(&quot;google_sat&quot;, {<br>            type : G_SATELLITE_MAP,<br>            &#39;sphericalMercator&#39; : true,<br>
            numZoomLevels : 22<br>        });<br>        var ghyb = new OpenLayers.Layer.Google(&quot;google_hyb&quot;, {<br>            type : G_HYBRID_MAP,<br>            &#39;sphericalMercator&#39; : true<br>        });<br>
        map.addLayers( [ gmap, gsat, ghyb ]);<br>    <br>    // create Virtual Earth layers<br><br>        <br>        var veroad = new OpenLayers.Layer.VirtualEarth(&quot;bing_str&quot;, {<br>            &#39;type&#39; : VEMapStyle.Road,<br>
            &#39;sphericalMercator&#39; : true<br>        });<br>        var veaer = new OpenLayers.Layer.VirtualEarth(&quot;bing_sat&quot;, {<br>            &#39;type&#39; : VEMapStyle.Aerial,<br>            &#39;sphericalMercator&#39; : true<br>
        });<br>        var vehyb = new OpenLayers.Layer.VirtualEarth(&quot;bing_hyb&quot;, {<br>            &#39;type&#39; : VEMapStyle.Hybrid,<br>            &#39;sphericalMercator&#39; : true<br>        });<br>        map.addLayers( [ veroad, veaer, vehyb ]);<br>
    <br>    // create Yahoo layer<br>            <br>        var yahoo = new OpenLayers.Layer.Yahoo(&quot;yahoo_str&quot;, {<br>            &#39;sphericalMercator&#39; : true<br>        });<br>        var yahoosat = new OpenLayers.Layer.Yahoo(&quot;yahoo_sat&quot;, {<br>
            &#39;type&#39; : YAHOO_MAP_SAT,<br>            &#39;sphericalMercator&#39; : true<br>        });<br>        var yahoohyb = new OpenLayers.Layer.Yahoo(&quot;yahoo_hyb&quot;, {<br>            &#39;type&#39; : YAHOO_MAP_HYB,<br>
            &#39;sphericalMercator&#39; : true<br>        });<br>        map.addLayers( [ yahoo, yahoosat, yahoohyb ]);<br>    // create OSM layer<br>            <br>        var mapnik = new OpenLayers.Layer.OSM(&quot;osm&quot;);<br>
        <br>        var osmarender = new OpenLayers.Layer.OSM(&quot;osm_tile&quot;,<br>                &quot;<a href="http://tah.openstreetmap.org/Tiles/tile/${z}/${x}/${y}.png">http://tah.openstreetmap.org/Tiles/tile/${z}/${x}/${y}.png</a>&quot;);<br>
        map.addLayers( [ mapnik, osmarender ]);<br>    <br>        //map.setBaseLayer(veaer);<br><br>    map.zoomToExtent(usrbounds, true);<br><br>}<br><br>/**<br> * Passer du plein ecrant a une taille fixe<br> * @return void<br>
 */<br>function togglePleinEcran() {<br>    var height =document.getElementById(&#39;carte&#39;).style[&#39;height&#39;];<br><br>    if (height != &quot;600px&quot;) {<br>        document.getElementById(&#39;carte&#39;).style[&#39;width&#39;]=&#39;1000px&#39;;<br>
        document.getElementById(&#39;carte&#39;).style[&#39;height&#39;]=&#39;600px&#39;;<br>        <br>    } else {<br>        document.getElementById(&#39;carte&#39;).style[&#39;width&#39;]=&#39;600px&#39;;<br>        document.getElementById(&#39;carte&#39;).style[&#39;height&#39;]=&#39;400px&#39;;<br>
<br>    }<br>    map.updateSize();<br>    <br>}<br><br>&lt;/script&gt;<br><br>&lt;/head&gt;<br>&lt;body onload=&quot;init()&quot; id=&quot;api&quot;&gt;<br><br>&lt;div id=&quot;carte&quot; style=&quot;width: 800px; height: 600px&quot;&gt;<br>
&lt;div id=&quot;map&quot; style=&quot;width: 100%; height: 100%&quot;&gt;&lt;/div&gt;<br><br>&lt;/div&gt;<br><br>1 Change the size &lt;br/&gt;<br>2 Change layer to bing layer.&lt;br/&gt;<br>3 Changer the size again and go to google map, normally you have bug (if you doesn&#39;t bug test steps again)&lt;br/&gt;&lt;br/&gt;<br>
<br>Another bug when you are on google map and switch to bing map the zoom is not the same&lt;br/&gt;<br>1 go to google map &lt;br/&gt;<br>2 go to bing map &lt;br/&gt;<br>Sometimes the zoom is not the same, make step again if the bug is not going&lt;br/&gt;<br>
<br>&lt;input class=&quot;button&quot; type=&quot;button&quot; value=&quot;Change size&quot;    onclick=&quot;togglePleinEcran();&quot; /&gt;<br><br>&lt;/body&gt;<br>&lt;/html&gt;<br><br>Hope that show you the issue.<br><br>
Cheers.<br><br>Jim<br><br><div class="gmail_quote">2010/4/22 Andreas Hocevar <span dir="ltr">&lt;<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
On Apr 22, 2010, at 09:25 , Jimmy Aumard wrote:<br>
<br>
&gt; Hello,<br>
&gt;<br>
&gt; I have test the 2.9 RC3 version of OpenLayers and I have always the bugs if I show a bing map, resize the map and change layer to google map. the google map object was not resized.<br>
<br>
</div>Please provide a minimal example that shows the issue.<br>
<br>
Regards,<br>
<font color="#888888">Andreas.<br>
</font><div><div></div><div class="h5"><br>
<br>
&gt;<br>
&gt; Thanks<br>
&gt;<br>
&gt; Jim<br>
&gt;<br>
&gt; 2010/4/20 Jimmy Aumard &lt;<a href="mailto:jimmy.aumard@gmail.com">jimmy.aumard@gmail.com</a>&gt;<br>
&gt; Yes I use OpenLayers 2.8 because it is the stable version, I have same problem with Google map and I resolved this with<br>
&gt;<br>
&gt; map.getLayersBy(&#39;name&#39;,&#39;google_str&#39;)[0].mapObject.checkResize();<br>
&gt;<br>
&gt; I will test the 2.9 version.<br>
&gt;<br>
&gt; Thanks.<br>
&gt;<br>
&gt; Jim<br>
&gt;<br>
&gt; 2010/4/19 Andreas Hocevar &lt;<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>&gt;<br>
&gt;<br>
&gt; On Apr 19, 2010, at 17:54 , Jimmy Aumard wrote:<br>
&gt;<br>
&gt; &gt; Thanks!!<br>
&gt; &gt;<br>
&gt; &gt; I have find another solution :<br>
&gt; &gt;<br>
&gt; &gt; map.getLayersBy(&#39;name&#39;,&#39;bing_str&#39;)[0].mapObject.Resize(500,500);<br>
&gt; &gt;<br>
&gt; &gt; I resize the bing map object for each layer and it&#39;s works.<br>
&gt;<br>
&gt; Oh, in that case I assume you are still using OpenLayers 2.8? This is fixed in 2.9 (see <a href="http://trac.openlayers.org/ticket/2285" target="_blank">http://trac.openlayers.org/ticket/2285</a>).<br>
&gt;<br>
&gt; -Andreas.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Aumard Jimmy<br>
&gt; Développeur<br>
&gt;<br>
&gt; KINAXIA<br>
&gt; c/o CICA / PacaEst<br>
&gt; 2229 Route des Crêtes<br>
&gt; F-06560 Sophia Antipolis<br>
&gt;<br>
&gt; Tél.: +33 (0)4 8973 0242<br>
&gt; Mob.: +33 (0)6 6017 2827<br>
&gt; Fax : +33 (0)4 8307 6583<br>
&gt;<br>
&gt; <a href="http://www.kinaxia.fr" target="_blank">http://www.kinaxia.fr</a><br>
<br>
</div></div>--<br>
<div><div></div><div class="h5">Andreas Hocevar<br>
OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
Expert service straight from the developers.<br>
<br>
</div></div></blockquote></div><br><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>