OpenLayers OpenLayers

Ticket #685: wfs.inrange.patch

File wfs.inrange.patch, 0.7 kB (added by crschmidt, 1 year ago)
  • lib/OpenLayers/Layer/WFS.js

    old new  
    194194        var outOfBounds = (!firstRendering && 
    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(); 
    200201            var tileWidth = bounds.getWidth() * this.ratio;