From 9f9576d2f62301c22a9065aba8fe0d331e12fb87 Mon Sep 17 00:00:00 2001 From: evlist Date: Mon, 31 Oct 2022 21:40:10 +0100 Subject: [PATCH] Bug fix... --- src/components/map/LayerStack.tsx | 2 +- src/components/map/LiveMap.tsx | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/map/LayerStack.tsx b/src/components/map/LayerStack.tsx index 1e11f19..a963f26 100644 --- a/src/components/map/LayerStack.tsx +++ b/src/components/map/LayerStack.tsx @@ -67,7 +67,7 @@ export const LayerStack: react.FC = ( key={key} keyObject={keyObject} shift={shift} - zoom={zoom * 256} + zoom={256 / zoom} coordinateSystem={props.coordinateSystem} /> ); diff --git a/src/components/map/LiveMap.tsx b/src/components/map/LiveMap.tsx index ca1d7d5..1e00b83 100644 --- a/src/components/map/LiveMap.tsx +++ b/src/components/map/LiveMap.tsx @@ -135,13 +135,13 @@ export const LiveMap: react.FC = ( zoom: deltaZoomLevel + scope.zoom, tileProvider: scope.tileProvider, }; - console.log( - `LiveMap transform: ${JSON.stringify(t)}, ${JSON.stringify( - scope - )} -> ${JSON.stringify(newScope)}, delta lat: ${ - newScope.center.lat - scope.center.lat - }, delta lon: ${newScope.center.lon - scope.center.lon}` - ); + // console.log( + // `LiveMap transform: ${JSON.stringify(t)}, ${JSON.stringify( + // scope + // )} -> ${JSON.stringify(newScope)}, delta lat: ${ + // newScope.center.lat - scope.center.lat + // }, delta lon: ${newScope.center.lon - scope.center.lon}` + // ); setScope(newScope); };