-
Notifications
You must be signed in to change notification settings - Fork 3
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
Fix bug causing data not to load #3
Conversation
Here's another one. I'm getting `Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0` in the browser console. Also the arrows do render. Basically, what's happening is that the data is not loading. [This SO answer](https://stackoverflow.com/a/42283829/3986879) solves the problem.
Cool! I just pushed a different fix for the same issue |
Can you try switching to the latest master on your machine? |
Sure, will try later today and report back! BTW. Unrelated (I also asked Luciano, whom I presume you know, in a email thread), but do you have some boilerplate for using flowmap.gl without react? |
Not at the moment. It should be possible though if you just use |
Will do!
It totally works by the way. Thanks. |
I've worked on it a bit, and I'm not really making much progress. I've been trying to use it with Svelte, but I'm not able to import it. After installing with npm and running I get this error upon import:
I haven't spent more time trying to debug this. What would be most helpful to me (and other data scientists who are not front end devs used to working in frameworks), was if there was a vanilla JS example. And even better, a standalone version that worked with standalone deck.gl! Then it would for example be usable on Observable! That would be awesome :). And I just want to say, I really appreciate this software, and I can use it by hacking together some React app using this example, but if part of your target audience is mobility researchers, then a more framework-independent version is really needed. |
Yes, a UMD build that could be used directly in the browser on in Observable would be definitely useful. I tried doing it some months ago, but there was a problem I think due to flowmap.gl depending on luma.gl while the UMD build of deck.gl contained but didn't expose luma.gl. Maybe this has changed, I will look into it. Created this issue: teralytics/flowmap.gl#93 |
Here's an example without React: https://github.com/ilyabo/flowmap.gl-purejs-example/ |
Here's another one.
I'm getting
Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0
in the browser console. Also the arrows do not render. Somehow, the data is not loading. This SO answer proposes the solution I suggest here.Note: I don't fully understand why this happens and why this fix works. If you don't have the same problem on your local machine, maybe this is specific to my system (OSX 10.14.6), though I have tried in all browsers with same result.