Fix maths

This commit is contained in:
Andras Schmelczer 2026-02-07 10:00:36 +00:00
parent 46585a4b2b
commit a336097f96

View file

@ -87,7 +87,7 @@ export function getBoundsFromViewState(
): Bounds {
const { longitude, latitude, zoom } = viewState;
const clampedLat = Math.max(-85, Math.min(85, latitude));
const TILE_SIZE = 256;
const TILE_SIZE = 512;
const scale = Math.pow(2, zoom);
const worldSize = TILE_SIZE * scale;