Merge pull request #419 from ahocevar/bing-attribution

Incorrect Bing attribution when custom maxResolution is set. r=@elemoine
This commit is contained in:
ahocevar
2012-04-20 06:11:31 -07:00

View File

@@ -223,7 +223,8 @@ OpenLayers.Layer.Bing = OpenLayers.Class(OpenLayers.Layer.XYZ, {
this.map.getProjectionObject(),
new OpenLayers.Projection("EPSG:4326")
);
var providers = res.imageryProviders, zoom = this.map.getZoom() + 1,
var providers = res.imageryProviders,
zoom = this.serverResolutions.indexOf(this.getServerResolution()),
copyrights = "", provider, i, ii, j, jj, bbox, coverage;
for (i=0,ii=providers.length; i<ii; ++i) {
provider = providers[i];