0

Track centers by layer instead of by world

This fixes a bug where a world with multiple layers with different
"northdirection" values would initially load at the wrong center point
because the center for the last layer would override prior values
in the overview.collections.centers map.
This commit is contained in:
Cliff Meyers
2019-12-30 19:40:36 -05:00
parent 751ba39bd0
commit a29e9ddf20
2 changed files with 19 additions and 14 deletions

View File

@@ -39,7 +39,7 @@ overviewer.collections = {
/**
* When switching regionsets, where should we zoom to?
* Defaults to spawn. Stored as map of world names to [latlng, zoom]
* Defaults to spawn. Stored as map of maps: world names to layer names to [latlng, zoom]
*/
'centers': {},