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
+2 -1
View File
@@ -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