| 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 | } |
|---|