Fix maths
This commit is contained in:
parent
46585a4b2b
commit
a336097f96
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue