[OpenLayers-Commits] r11698 - trunk/openlayers/lib/OpenLayers
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Fri Mar 11 15:15:47 EST 2011
Author: ahocevar
Date: 2011-03-11 12:15:43 -0800 (Fri, 11 Mar 2011)
New Revision: 11698
Modified:
trunk/openlayers/lib/OpenLayers/Map.js
Log:
restoring allOverlays behavior as before #3062 when initially centering outside the base layer. r=bartvde (closes #3170)
Modified: trunk/openlayers/lib/OpenLayers/Map.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Map.js 2011-03-11 19:28:55 UTC (rev 11697)
+++ trunk/openlayers/lib/OpenLayers/Map.js 2011-03-11 20:15:43 UTC (rev 11698)
@@ -1753,6 +1753,7 @@
if (!this.getCachedCenter() && !this.isValidLonLat(lonlat)) {
lonlat = this.maxExtent.getCenterLonLat();
+ this.center = lonlat.clone();
}
if(this.restrictedExtent != null) {
More information about the Commits
mailing list