We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a4b700 commit 5a8d583Copy full SHA for 5a8d583
Source/Core/Resource.js
@@ -944,7 +944,8 @@ define([
944
window.URL.revokeObjectURL(generatedBlobResource.url);
945
}
946
947
- // We attach additional information to the error here so that it can be handled by an ImageProvider.
+ // If the blob load succeeded but the image decode failed, provide access to the blob on the error object because it may provide useful insight.
948
+ // In particular, BingMapsImageryProvider uses this to detect the zero-length "image" that some map styles return when a real tile is not available.
949
error.blob = generatedBlob;
950
951
return when.reject(error);
0 commit comments