OpenLayers OpenLayers

Changeset 1348

Show
Ignore:
Timestamp:
08/24/06 01:11:28 (2 years ago)
Author:
crschmidt
Message:

Restore maxZoomLevel functionality, removoed between rc1 and rc2 by Erik.
This was the *only* way of setting zoom levels up until 2.0, taking it away
in an RC release is bad. (This resolves Jeff Dege's most recent mail to the
users list.)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/openlayers/2.0/lib/OpenLayers/Layer.js

    r1324 r1348  
    183183          'numZoomLevels' 
    184184        ); 
     185        if (this.map.maxZoomLevel && !this.numZoomLevels) { 
     186            this.numZoomLevels = this.map.maxZoomLevel + 1; 
     187        } 
    185188        for(var i=0; i < properties.length; i++) { 
    186189            if (this[properties[i]] == null) {