OpenLayers OpenLayers

Changeset 7544

Show
Ignore:
Timestamp:
07/18/08 05:13:41 (1 month ago)
Author:
pgiraud
Message:

zooming out or in the map called the moveTo method with incorrect arguments. This results in having the layer not correctly refresh.
We can rely on the previous commit and check if zoom has changed to force the moveTo.

Files:

Legend:

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

    r7533 r7544  
    276276    refresh: function(evt) { 
    277277        var bounds = this.layer.map.getExtent(); 
    278         this.grid.moveTo(bounds, evt.force); 
     278        var force = evt.zoomChanged || evt.force; 
     279        this.grid.moveTo(bounds, force); 
    279280    }, 
    280281