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
This commit is contained in:
ahocevar
2011-03-11 20:15:43 +00:00
parent 120d59f0e1
commit 83ade8f9d7

View File

@@ -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) {