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

Unable to add multiple celestial maps #131

Open
aniket-kale opened this issue Jun 19, 2022 · 3 comments
Open

Unable to add multiple celestial maps #131

aniket-kale opened this issue Jun 19, 2022 · 3 comments

Comments

@aniket-kale
Copy link

Hi, Celestial maps are new for me. I am using this in Vue.

I am trying to add multiple celestial maps on the same page but it's not working. If I comment out any one of them then another one is working but both are not working at the same time. In my application, I have to give the ability to the user to view multiple maps(max 3).

What I saw in the Element tab is that the container tag is not generating after the canvas tag for the second map. (Ref 1st screenshot). container is generated for 1st map still both maps are not working.

Screenshot when both maps are uncommented
image

Screenshot when the first map is commented
image

Screenshot when the second map is commented
image

Please help, Thanks.

@aniket-kale
Copy link
Author

aniket-kale commented Jun 20, 2022

Hi @ofrohn, Any thoughts on this? Thanks.

@qubiack
Copy link

qubiack commented Jan 20, 2023

You can just use an undocumented option container in your config file:

 return {
            adaptable: false,
            container: `CustomId`, // here you can define a custom container name
            'projection': 'airy',

@johnvanhulsen
Copy link

Got the same issue. The container option isn't the fix unfortunately. When the second one is implemented; they both gone away.

If someone has a fix, please let me know :)

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

3 participants