Moved max map zoom to be based off of max grid size
This commit is contained in:
parent
e886da6dd9
commit
9853077e4f
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user