OpenLayers OpenLayers

Changeset 7522

Show
Ignore:
Timestamp:
07/16/08 09:26:33 (1 month ago)
Author:
tschaub
Message:

Only trigger protocol read when layer is in range and visible.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/topp/trimet/lib/OpenLayers/Strategy/BBOX.js

    r7518 r7522  
    7474     */ 
    7575    updateListener: function(event) { 
    76         var mapBounds = this.layer.map.getExtent(); 
    77         if(event.force || this.invalidBounds(mapBounds)) { 
    78             this.calculateBounds(mapBounds); 
    79             this.triggerRead(event); 
     76        if(this.layer.inRange && this.layer.visibility) { 
     77            var mapBounds = this.layer.map.getExtent(); 
     78            if(event.force || this.invalidBounds(mapBounds)) { 
     79                this.calculateBounds(mapBounds); 
     80                this.triggerRead(event); 
     81            } 
    8082        } 
    8183    },