diff --git a/src/ol/source/bingmapssource.js b/src/ol/source/bingmapssource.js index 9a2ce54635..930fb6f436 100644 --- a/src/ol/source/bingmapssource.js +++ b/src/ol/source/bingmapssource.js @@ -58,7 +58,7 @@ ol.source.BingMaps.prototype.handleImageryMetadataResponse = response.statusDescription != 'OK' || response.authenticationResultCode != 'ValidCredentials' || response.resourceSets.length != 1 || - response.resourceSets[0].length != 1) { + response.resourceSets[0].resources.length != 1) { this.setState(ol.source.State.ERROR); return; }