Check resources length of first resource set (see #1149)
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user