papyri icon indicating copy to clipboard operation
papyri copied to clipboard

Change default coordinates

Open Jerska opened this issue 3 years ago • 1 comments

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).

Jerska avatar Mar 21 '21 19:03 Jerska

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

https://github.com/jason-green-io/papyri/blob/eccf6da92468fdbf3e88e30b89764b06d90b81d5/template/index.html#L192

That line, set whatever box you like.

jason-green-io avatar Mar 19 '22 16:03 jason-green-io