OpenLayers OpenLayers

Changeset 4056

Show
Ignore:
Timestamp:
08/27/07 12:18:14 (1 year ago)
Author:
euzuro
Message:

deprecate use of 'minZoomLevels' in WFS layer. (Closes #672)

Files:

Legend:

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

    r4038 r4056  
    164164        } 
    165165         
     166    //DEPRECATED - REMOVE IN 3.0 
    166167        // 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         }; 
     168        if (this.options.minZoomLevel) { 
     169             
     170            var err = "The minZoomLevel property is only intended for use " + 
     171                    "with the FixedZoomLevels-descendent layers. That this " + 
     172                    "wfs layer checks for minZoomLevel is a relic of the" + 
     173                    "past. We cannot, however, remove it without possibly " + 
     174                    "breaking OL based applications that may depend on it." + 
     175                    " Therefore we are deprecating it -- the minZoomLevel " + 
     176                    "check below will be removed at 3.0. Please instead " + 
     177                    "use min/max resolution setting as described here: " + 
     178                    "http://trac.openlayers.org/wiki/SettingZoomLevels"; 
     179            OpenLayers.Console.warn(err); 
     180             
     181            if (this.map.getZoom() < this.options.minZoomLevel) { 
     182                return null; 
     183            } 
     184        } 
    171185         
    172186        if (bounds == null) {