loam
loam copied to clipboard
loam web worker in Safari throws "Can't find variable: File"
This can be reproduced by attempting to warp any image in the demo at:
https://github.com/raster-foundry/mini-apps/pull/30

This was using Safari 11.1.
Looks like File API support for Safari is a bit complicated, but the constructor is theoretically supported since 10.0: https://developer.mozilla.org/en-US/docs/Web/API/File
My best guess right now is that this is coming from here, but I'm not sure of exactly why that is or what the best workaround might be. https://github.com/azavea/loam/blob/develop/src/wrappers/gdalOpen.js#L11
@CloudNiner Two years later, I'm not able to replicate this any longer on Safari 13.1. Can you confirm? If so, I'll leave this open but remove it from the 1.0 milestone.
Confirmed working on Safari 13.1 via https://demos.azavea.com/map-warper/