From 83ade8f9d74a1f0033b384b6d3369afbacc40ecd Mon Sep 17 00:00:00 2001 From: ahocevar Date: Fri, 11 Mar 2011 20:15:43 +0000 Subject: [PATCH] restoring allOverlays behavior as before #3062 when initially centering outside the base layer. r=bartvde (closes #3170) git-svn-id: http://svn.openlayers.org/trunk/openlayers@11698 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Map.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/OpenLayers/Map.js b/lib/OpenLayers/Map.js index b1e32945b4..f7f2a0aba7 100644 --- a/lib/OpenLayers/Map.js +++ b/lib/OpenLayers/Map.js @@ -1753,6 +1753,7 @@ OpenLayers.Map = OpenLayers.Class({ if (!this.getCachedCenter() && !this.isValidLonLat(lonlat)) { lonlat = this.maxExtent.getCenterLonLat(); + this.center = lonlat.clone(); } if(this.restrictedExtent != null) {