Check resources length of first resource set (see #1149)

This commit is contained in:
Tim Schaub
2013-10-21 11:18:24 -06:00
parent 740b6e8b56
commit e70b55b60b
+1 -1
View File
@@ -58,7 +58,7 @@ ol.source.BingMaps.prototype.handleImageryMetadataResponse =
response.statusDescription != 'OK' || response.statusDescription != 'OK' ||
response.authenticationResultCode != 'ValidCredentials' || response.authenticationResultCode != 'ValidCredentials' ||
response.resourceSets.length != 1 || response.resourceSets.length != 1 ||
response.resourceSets[0].length != 1) { response.resourceSets[0].resources.length != 1) {
this.setState(ol.source.State.ERROR); this.setState(ol.source.State.ERROR);
return; return;
} }