[OpenLayers-Commits] r11485 -
sandbox/ahocevar/layercontainer/lib/OpenLayers
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Fri Feb 25 07:17:20 EST 2011
Author: erilem
Date: 2011-02-25 04:17:19 -0800 (Fri, 25 Feb 2011)
New Revision: 11485
Modified:
sandbox/ahocevar/layercontainer/lib/OpenLayers/Map.js
Log:
trigger move on the map after triggering it on the layers
Modified: sandbox/ahocevar/layercontainer/lib/OpenLayers/Map.js
===================================================================
--- sandbox/ahocevar/layercontainer/lib/OpenLayers/Map.js 2011-02-25 12:14:35 UTC (rev 11484)
+++ sandbox/ahocevar/layercontainer/lib/OpenLayers/Map.js 2011-02-25 12:17:19 UTC (rev 11485)
@@ -1654,7 +1654,7 @@
/**
* Method: moveByPx
- * Drag the map by pixels
+ * Drag the map by pixels.
*
* Parameters:
* dx - {Number}
@@ -1691,7 +1691,6 @@
this.minPx.y -= dy;
this.maxPx.y -= dy;
}
- this.events.triggerEvent("move");
var layer, i, len;
for (i=0, len=this.layers.length; i<len; ++i) {
layer = this.layers[i];
@@ -1700,6 +1699,7 @@
layer.events.triggerEvent("move");
}
}
+ this.events.triggerEvent("move");
}
},
More information about the Commits
mailing list