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

Multiple Maps #8

Open
joeaddison opened this issue Dec 9, 2020 · 1 comment
Open

Multiple Maps #8

joeaddison opened this issue Dec 9, 2020 · 1 comment

Comments

@joeaddison
Copy link

Love nite-overlay! Looks and works great for the most part!

My problem is that I have moved Hawaii and Alaska so that they show just to the left of mainland US and now have 3 separate maps. The refresh functions seems to only be working for Hawaii (the last in the list). I have tried several combinations to get this working, but it eludes me. Is there any way to make this work? Below is my current setInterval function. addHours just ads 1 hour to the now object for testing.

            nite.setMap(map.main);
            nite.setDate(now.addHours(1));
            nite.refresh();

            nite.setMap(map.AK);
            nite.setDate(now);
            nite.refresh();

            nite.setMap(map.HI);
            nite.setDate(now);
            nite.refresh();

Thanks!
Joe

@rossengeorgiev
Copy link
Owner

The short answer is you cant. The current code only works for one map, it will need to be refactored to allow multiple instances of nite. One per map.

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