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

Using flowmap.gl in Observable #41

Open
atsokol opened this issue Apr 3, 2024 · 2 comments
Open

Using flowmap.gl in Observable #41

atsokol opened this issue Apr 3, 2024 · 2 comments

Comments

@atsokol
Copy link

atsokol commented Apr 3, 2024

Hi @ilyabo!

I am trying to use flowmap.gl library in Observable but am having trouble loading the module there. I’ve looked at this article and tried different tools including jsdelivr, unpkg, etc. but nothing seems to work. Would you be able to advise if it's possible to use this tool in Observable and show a mini example?

Sorry if the question is too amateurish. I am new to JS and Observable. I've been using flowmap.blue R widget, which is a great tool but is not being updated unfortunately.

Thanks,
Andrii

@atsokol
Copy link
Author

atsokol commented Apr 3, 2024

Here is a discussion thread on Observable Talk with Mike Bostock's response on the issue: https://talk.observablehq.com/t/loading-a-module-to-observable/9059

@ilyabo
Copy link
Member

ilyabo commented Apr 4, 2024

Hi Andrii! Thanks for sharing the Observable discussion thread. I know about the issue and I tried to address it before. The problem is the dependency on deck.gl. One way would be to bundle flowmap.gl and deck.gl together using rollup, although it would make it difficult to combine flowmap and deck.gl layers, but maybe it's still the easiest way. I will give it another try and get back to you.

BTW, there's now another R widget you might consider: https://github.com/JohMast/flowmapper

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants