OpenLayers OpenLayers

Changeset 4069

Show
Ignore:
Timestamp:
08/28/07 08:01:47 (1 year ago)
Author:
crschmidt
Message:

Stop WFS layer from requesting data when layer is not in range. (Closes #685)
Note that this is not a complete fix, but instead a patch for 2.5:
after 2.5, this should be changed/removed when map.setCenter() is
fixed. (See #937)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Layer/WFS.js

    r4056 r4069  
    195195                           !this.tile.bounds.containsBounds(bounds)); 
    196196 
    197         if ( zoomChanged || firstRendering || (!dragging && outOfBounds) ) { 
     197        if ( (zoomChanged || firstRendering || (!dragging && outOfBounds)) 
     198             && this.inRange) { 
    198199            //determine new tile bounds 
    199200            var center = bounds.getCenterLonLat();