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