diff --git a/lib/OpenLayers/Layer/VirtualEarth.js b/lib/OpenLayers/Layer/VirtualEarth.js index c556c5bbd3..d6be0a57ed 100644 --- a/lib/OpenLayers/Layer/VirtualEarth.js +++ b/lib/OpenLayers/Layer/VirtualEarth.js @@ -131,6 +131,13 @@ OpenLayers.Layer.VirtualEarth = OpenLayers.Class( }, + /** + * Method: onMapResize + */ + onMapResize: function() { + this.mapObject.Resize(this.map.size.w, this.map.size.h); + }, + /** * APIMethod: getWarningHTML *