developmentseed / developmentseed/deck.gl-raster
Internal errors aren't passed to an `onError` callback
- Dominant language
- TypeScript
- Stars
- 228
- Forks
- 29
- Avg merge
- 12h 27m
- Merged PRs (30d)
- 4
Description
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:
```javascript
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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.