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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user