OpenLayers OpenLayers

Changeset 7483

Show
Ignore:
Timestamp:
07/09/08 10:50:32 (2 months ago)
Author:
elemoine
Message:

OpenLayers.Grid calls tile.moveTo with 3 arguments, the third arguments tells with the tile must redraw. Take that third arg into account.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/vector-behavior/lib/OpenLayers/Strategy/Grid.js

    r7482 r7483  
    8080        /** 
    8181         */ 
    82         moveTo: function(bounds, position) { 
    83             this.bounds = bounds; 
    84             this.position = position; 
    85             this.draw(); 
     82        moveTo: function(bounds, position, redraw) { 
     83            if (redraw == null) { 
     84                redraw = true; 
     85            } 
     86            this.bounds = bounds.clone(); 
     87            this.position = position.clone(); 
     88            if (redraw) { 
     89                this.draw(); 
     90            } 
    8691        }, 
    8792