[OpenLayers-Commits] r11410 -
sandbox/ahocevar/layercontainer/lib/OpenLayers/Layer
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Thu Feb 24 07:09:57 EST 2011
Author: erilem
Date: 2011-02-24 04:09:56 -0800 (Thu, 24 Feb 2011)
New Revision: 11410
Modified:
sandbox/ahocevar/layercontainer/lib/OpenLayers/Layer/Grid.js
Log:
have moveTo schedule the move of tiles again, this makes the Grid.html pass again
Modified: sandbox/ahocevar/layercontainer/lib/OpenLayers/Layer/Grid.js
===================================================================
--- sandbox/ahocevar/layercontainer/lib/OpenLayers/Layer/Grid.js 2011-02-24 12:01:57 UTC (rev 11409)
+++ sandbox/ahocevar/layercontainer/lib/OpenLayers/Layer/Grid.js 2011-02-24 12:09:56 UTC (rev 11410)
@@ -233,6 +233,8 @@
//
if (forceReTile || !tilesBounds.containsBounds(bounds, true)) {
this.initGriddedTiles(bounds);
+ } else {
+ this.scheduleMoveGriddedTiles();
}
}
}
@@ -247,6 +249,14 @@
* dy - {Number}
*/
moveByPx: function(dx, dy) {
+ this.scheduleMoveGriddedTiles();
+ },
+
+ /**
+ * Method: scheduleMoveGriddedTiles
+ * Schedule the move of tiles.
+ */
+ scheduleMoveGriddedTiles: function() {
if (this.timerId != null) {
window.clearTimeout(this.timerId);
}
More information about the Commits
mailing list