[OpenLayers-Commits] r11848 - trunk/openlayers/lib/OpenLayers
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Thu Mar 31 12:26:45 EDT 2011
Author: tschaub
Date: 2011-03-31 09:26:42 -0700 (Thu, 31 Mar 2011)
New Revision: 11848
Modified:
trunk/openlayers/lib/OpenLayers/Map.js
Log:
Making it so overlays at the top of the draw stack get the moveTo call first (base layer still gets the first moveTo). p=mosesonline, r=me (closes #3230)
Modified: trunk/openlayers/lib/OpenLayers/Map.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Map.js 2011-03-31 14:42:44 UTC (rev 11847)
+++ trunk/openlayers/lib/OpenLayers/Map.js 2011-03-31 16:26:42 UTC (rev 11848)
@@ -1849,7 +1849,7 @@
bounds = this.baseLayer.getExtent();
- for (var i=0, len=this.layers.length; i<len; i++) {
+ for (var i=this.layers.length-1; i>=0; --i) {
var layer = this.layers[i];
if (layer !== this.baseLayer && !layer.isBaseLayer) {
var inRange = layer.calculateInRange();
More information about the Commits
mailing list