loam icon indicating copy to clipboard operation
loam copied to clipboard

loam web worker in Safari throws "Can't find variable: File"

Open CloudNiner opened this issue 7 years ago • 4 comments
trafficstars

This can be reproduced by attempting to warp any image in the demo at:

https://github.com/raster-foundry/mini-apps/pull/30

screen shot 2018-04-30 at 11 20 04

CloudNiner avatar Apr 30 '18 15:04 CloudNiner

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

CloudNiner avatar Apr 30 '18 15:04 CloudNiner

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

ddohler avatar Apr 30 '18 17:04 ddohler

@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.

ddohler avatar May 11 '20 17:05 ddohler

Confirmed working on Safari 13.1 via https://demos.azavea.com/map-warper/

CloudNiner avatar May 11 '20 18:05 CloudNiner