rollback previous changeset. overriding inRange() not necessary

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1599 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-10-05 17:17:17 +00:00
parent ab4f69ac48
commit 3a177683d5

View File

@@ -88,26 +88,6 @@ OpenLayers.Layer.FixedZoomLevels.prototype = {
}
return resolution;
},
/** Overridden from OpenLayers.Layer because if the 3rd party tool has
* not been loaded (setcentered) yet, then its translation function
* will return null and therefore resolution will be null. In this case
* we want to return true so that the redraw will happen.
*
* @returns Whether or not the layer is displayable at the current map's
* current resolution
* @type Boolean
*/
inRange: function() {
var inRange = false;
if (this.map) {
var resolution = this.map.getResolution();
inRange = ( (resolution == null) ||
( (resolution >= this.minResolution) &&
(resolution <= this.maxResolution) ) );
}
return inRange;
},
/** Calculates using px-> lonlat translation functions on tl and br
* corners of viewport