Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CloudNiner opened this issue Apr 30, 2018 · 4 comments
Open

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

CloudNiner opened this issue Apr 30, 2018 · 4 comments
Labels
bug Something isn't working

Comments

@CloudNiner
Copy link

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

raster-foundry/mini-apps#30

screen shot 2018-04-30 at 11 20 04

@CloudNiner
Copy link
Author

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

@ddohler
Copy link
Collaborator

ddohler commented Apr 30, 2018

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
Copy link
Collaborator

ddohler commented May 11, 2020

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

@CloudNiner
Copy link
Author

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

@ddohler ddohler removed this from the 1.0.0 Release milestone May 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants