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

Change default coordinates #35

Open
Jerska opened this issue Mar 21, 2021 · 1 comment
Open

Change default coordinates #35

Jerska opened this issue Mar 21, 2021 · 1 comment

Comments

@Jerska
Copy link

Jerska commented Mar 21, 2021

Hey there!

Thanks for this tool, it's awesome to be able to have such a map of our world! :)

The small pain point I have is because, in my server, we've moved to something like -8000, -2000, which means you have to dezoom quite a bit before seeing the map.

It's solvable by sharing the URL with the coordinates inside them, or having a redirect, but it would be great to be able to set the default coordinates via a flag at build time (or use the world spawn coordinates instead of (0,0), we've moved it with /setworldspawn).

@jason-green-io
Copy link
Owner

You can probably edit the index.html file no load those coordinates by default.

map.fitBounds([[-1000, -1000], [1000, 1000]]);

That line, set whatever box you like.

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