I'd like to give users feedback when a COGLayer fails to load, but it appears as though onError doesn't get hit for some errors. E.g. I've added this to my layer:
new COGLayer({
id: "cog-" + geotiffHref,
geotiff: geotiffHref,
onError: () => console.log("hi there"),
})
Then, a request that loads the GeoTIFF at https://maxar-opendata.s3.amazonaws.com/events/afghanistan-earthquake22/ard/42/120200201013/2022-06-27/10300100D4928800-visual.tif fails with:
No "hi there". I've dug a bit into deck.gl error handling, and haven't come with a solution that doesn't just implement a this.props.onError?.() manually. If that's the correct approach, happy to PR that.
I'd like to give users feedback when a
COGLayerfails to load, but it appears as thoughonErrordoesn't get hit for some errors. E.g. I've added this to my layer:Then, a request that loads the GeoTIFF at https://maxar-opendata.s3.amazonaws.com/events/afghanistan-earthquake22/ard/42/120200201013/2022-06-27/10300100D4928800-visual.tif fails with:
No "hi there". I've dug a bit into deck.gl error handling, and haven't come with a solution that doesn't just implement a
this.props.onError?.()manually. If that's the correct approach, happy to PR that.