Moved max map zoom to be based off of max grid size

This commit is contained in:
Mitchell McCaffrey 2020-11-07 12:40:20 +11:00
parent e886da6dd9
commit 9853077e4f

View File

@ -161,7 +161,7 @@ export function getMapMaxZoom(map) {
return 10;
}
// Return max grid size / 2
return Math.max(Math.min(map.grid.size.x, map.grid.size.y) / 2, 5);
return Math.max(Math.max(map.grid.size.x, map.grid.size.y) / 2, 5);
}
export function snapNodeToMap(