[OpenLayers-Commits] r12151 - trunk/openlayers/lib/OpenLayers/Layer
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Mon Jul 4 16:34:48 EDT 2011
Author: erilem
Date: 2011-07-04 13:34:47 -0700 (Mon, 04 Jul 2011)
New Revision: 12151
Modified:
trunk/openlayers/lib/OpenLayers/Layer/Grid.js
Log:
the map isn't correctly positioned when dragging with singleTile true, r=bartvde,ahocevar (references #3361)
Modified: trunk/openlayers/lib/OpenLayers/Layer/Grid.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Layer/Grid.js 2011-07-04 10:18:22 UTC (rev 12150)
+++ trunk/openlayers/lib/OpenLayers/Layer/Grid.js 2011-07-04 20:34:47 UTC (rev 12151)
@@ -266,7 +266,9 @@
* dy - {Number}
*/
moveByPx: function(dx, dy) {
- this.scheduleMoveGriddedTiles();
+ if (!this.singleTile) {
+ this.scheduleMoveGriddedTiles();
+ }
},
/**
More information about the Commits
mailing list