We removed support for this from Map unneccesarily.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1177 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-08-09 23:20:50 +00:00
parent bf41b45532
commit c7e43b67f3

View File

@@ -87,7 +87,7 @@ OpenLayers.Map.prototype = {
* zoom level 0 on gmaps
*
* @type float */
maxResolution: null,
maxResolution: 1.40625,
/** @type int */
minZoomLevel: 0,
@@ -210,15 +210,12 @@ OpenLayers.Map.prototype = {
// if maxResolution is specified as "auto", calculate it
// based on the maxExtent and the viewSize
//
if (this.maxResolution == "auto") {
if (this.maxResolution == "auto" || this.maxResolution == null) {
var maxExtent = this.getMaxExtent();
var viewSize = this.getSize();
this.maxResolution = Math.max(maxExtent.getWidth() / viewSize.w,
maxExtent.getHeight() / viewSize.h );
} else {
this.maxResolution = 1.40625;
}
},
/**