-
Notifications
You must be signed in to change notification settings - Fork 13
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
Unable to create multiple instances on the same page #384
Comments
I think it should be possible, I know we've done it in the past, however I don't seem to have any examples. So this might be a regression. Leave this open, I don't know when I'll have time to look at this. In the meantime, you can load multiple maps into the same container. Example below. @turner any thoughts?
|
This should work. Note I'm using release 2.2.5
|
@turner That is not the question, my example also works for putting multiple juicebox browsers in a single div. See the poster's example code, the question is about putting separate browsers in separate divs. You can do this with igv.js. And at one time we could do this with juicebox.js. I think the problem is calling juicebox.init() twice, so maybe there is another function for the second and subsequent instances. |
@jrobinso ah, yes, it is indeed an init issue. each call will discard pre-exisiting browser instance(s) and create however many are in the config passed to it. |
OK its a bug then. |
Hi there. I am trying to render two different hic reports on the same page. This is the code that I have tried. I also noticed issue 124 mentioned this as solved but It doesn't seem to be working.
The second declaration of juicebox.init for container2 seems to be overriding the first instance. I have also tried passing the config as a list of two different configurations, however, this still does not work.
Is there a way to render two different .hic files at the same time? Thanks @jrobinso
The text was updated successfully, but these errors were encountered: