From e3f1b72d8c8d204094572fa2140d50ad3d84bfd5 Mon Sep 17 00:00:00 2001 From: James Lyne Date: Thu, 17 Feb 2022 19:55:10 +0000 Subject: [PATCH] Fix typo --- src/model/LiveAtlasProjection.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/model/LiveAtlasProjection.ts b/src/model/LiveAtlasProjection.ts index be361ef..b8006d6 100644 --- a/src/model/LiveAtlasProjection.ts +++ b/src/model/LiveAtlasProjection.ts @@ -52,8 +52,8 @@ export class LiveAtlasProjection { latLngToLocation(latLng: LatLng, y: number): Coordinate { const ptw = this.mapToWorld, - lon = this.tileSize + latLng.lat * (1 << this.nativeZoomLevels), - lat = latLng.lng * (1 << this.nativeZoomLevels), + lat = this.tileSize + latLng.lat * (1 << this.nativeZoomLevels), + lon = latLng.lng * (1 << this.nativeZoomLevels), x = ptw[0] * lon + ptw[1] * lat + ptw[2] * y, z = ptw[6] * lon + ptw[7] * lat + ptw[8] * y;