Merge pull request #243 from ahocevar/bing-maxresolution

If maxResolution is not set, we want the serverResolution. r=@bartvde
This commit is contained in:
ahocevar
2012-02-24 07:27:28 -08:00

View File

@@ -169,7 +169,8 @@ OpenLayers.Layer.Bing = OpenLayers.Class(OpenLayers.Layer.XYZ, {
}
this.addOptions({
maxResolution: Math.min(
this.serverResolutions[res.zoomMin], this.maxResolution
this.serverResolutions[res.zoomMin],
this.maxResolution || Number.POSITIVE_INFINITY
),
numZoomLevels: Math.min(
res.zoomMax + 1 - res.zoomMin, this.numZoomLevels