0

Add "center" config option

This option allows you to specify your own initial center for a
tileset, which is useful if your map is extremely asymmetric or
you don't really care about what's around the spawn.

Future work needs to be done on the JS side in order to fix the
fromWorldToLatLng and friends, as they're currently off by -24 in X
and +24 in Z direction.

Closes #1350.
This commit is contained in:
Nicolas F
2019-07-06 19:06:15 +02:00
parent 5b0430f94b
commit 204bcd0310
7 changed files with 31 additions and 5 deletions

View File

@@ -951,6 +951,16 @@ Other HTML/JS output options
**Default:** ``#1a1a1a``
``center``
This is allows you to specify a list or a tuple of Minecraft world coordinates
that should be used as the map's default center, e.g. ``[800, 64, -334]``.
You may also specify only two coordinates, in case they will be interpreted as
X and Z coordinates, and Y is assumed to be ``64`` (sea level).
**Default:** The coordinates of your spawn, or ``[0, 64, 0]`` if the regionset
has no spawn.
Map update behavior
~~~~~~~~~~~~~~~~~~~