If maxResolution is not set, we want the serverResolution.
After 2fe882f4d8, no default maxResolution is set. To make the Math.min not return 0, we need a fallback if no maxResolution was configured.
This commit is contained in:
@@ -169,7 +169,8 @@ OpenLayers.Layer.Bing = OpenLayers.Class(OpenLayers.Layer.XYZ, {
|
|||||||
}
|
}
|
||||||
this.addOptions({
|
this.addOptions({
|
||||||
maxResolution: Math.min(
|
maxResolution: Math.min(
|
||||||
this.serverResolutions[res.zoomMin], this.maxResolution
|
this.serverResolutions[res.zoomMin],
|
||||||
|
this.maxResolution || Number.POSITIVE_INFINITY
|
||||||
),
|
),
|
||||||
numZoomLevels: Math.min(
|
numZoomLevels: Math.min(
|
||||||
res.zoomMax + 1 - res.zoomMin, this.numZoomLevels
|
res.zoomMax + 1 - res.zoomMin, this.numZoomLevels
|
||||||
|
|||||||
Reference in New Issue
Block a user