OpenLayers OpenLayers

Changeset 7523

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

Only trigger refresh on layer if in range and visible.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/topp/trimet/lib/OpenLayers/Layer/Vector.js

    r7496 r7523  
    265265    /** 
    266266     * Method: refresh 
    267      * Ask the layer to request features again and redraw them. 
     267     * Ask the layer to request features again and redraw them.  Triggers 
     268     *     the refresh event if the layer is in range and visible. 
    268269     * 
    269270     * Parameters: 
     
    272273     */ 
    273274    refresh: function(event) { 
    274         this.events.triggerEvent("refresh", event); 
     275        if(this.inRange && this.visible) { 
     276            this.events.triggerEvent("refresh", event); 
     277        } 
    275278    }, 
    276279