diff --git a/lib/OpenLayers/Layer.js b/lib/OpenLayers/Layer.js index 079a3a83d9..bcbd74328c 100644 --- a/lib/OpenLayers/Layer.js +++ b/lib/OpenLayers/Layer.js @@ -242,7 +242,7 @@ OpenLayers.Layer.prototype = { if (this.map != null) { var extent = this.map.getExtent(); if (extent != null) { - this.moveTo(this.map.getExtent(), true); + this.moveTo(extent, true); } } if ((this.map != null) &&