OpenLayers OpenLayers

Ticket #672: minZoomLevel.patch

File minZoomLevel.patch, 0.5 kB (added by euzuro, 1 year ago)

you're right, chris. the only place min/max zoom levels should be used is in the FixedZoomLevels descendent layers. Let's remove this.

  • lib/OpenLayers/Layer/WFS.js

    old new  
    163163            } 
    164164        } 
    165165         
    166         // don't load data if current zoom level doesn't match 
    167         if (this.options.minZoomLevel &&  
    168             (this.map.getZoom() < this.options.minZoomLevel) ) { 
    169             return null; 
    170         }; 
    171          
    172166        if (bounds == null) { 
    173167            bounds = this.map.getExtent(); 
    174168        }