[OpenLayers-Commits] r7483 - sandbox/vector-behavior/lib/OpenLayers/Strategy
commits at openlayers.org
commits at openlayers.org
Wed Jul 9 10:50:33 EDT 2008
Author: elemoine
Date: 2008-07-09 10:50:32 -0400 (Wed, 09 Jul 2008)
New Revision: 7483
Modified:
sandbox/vector-behavior/lib/OpenLayers/Strategy/Grid.js
Log:
OpenLayers.Grid calls tile.moveTo with 3 arguments, the third arguments tells with the tile must redraw. Take that third arg into account.
Modified: sandbox/vector-behavior/lib/OpenLayers/Strategy/Grid.js
===================================================================
--- sandbox/vector-behavior/lib/OpenLayers/Strategy/Grid.js 2008-07-09 14:07:31 UTC (rev 7482)
+++ sandbox/vector-behavior/lib/OpenLayers/Strategy/Grid.js 2008-07-09 14:50:32 UTC (rev 7483)
@@ -79,10 +79,15 @@
/**
*/
- moveTo: function(bounds, position) {
- this.bounds = bounds;
- this.position = position;
- this.draw();
+ moveTo: function(bounds, position, redraw) {
+ if (redraw == null) {
+ redraw = true;
+ }
+ this.bounds = bounds.clone();
+ this.position = position.clone();
+ if (redraw) {
+ this.draw();
+ }
},
/**
More information about the Commits
mailing list