Bug fix...

This commit is contained in:
Eric van der Vlist 2022-10-31 21:40:10 +01:00
parent 8deed17b05
commit 9f9576d2f6
2 changed files with 8 additions and 8 deletions

View File

@ -67,7 +67,7 @@ export const LayerStack: react.FC<LayerStackProperties> = (
key={key} key={key}
keyObject={keyObject} keyObject={keyObject}
shift={shift} shift={shift}
zoom={zoom * 256} zoom={256 / zoom}
coordinateSystem={props.coordinateSystem} coordinateSystem={props.coordinateSystem}
/> />
); );

View File

@ -135,13 +135,13 @@ export const LiveMap: react.FC<LiveMapProperties> = (
zoom: deltaZoomLevel + scope.zoom, zoom: deltaZoomLevel + scope.zoom,
tileProvider: scope.tileProvider, tileProvider: scope.tileProvider,
}; };
console.log( // console.log(
`LiveMap transform: ${JSON.stringify(t)}, ${JSON.stringify( // `LiveMap transform: ${JSON.stringify(t)}, ${JSON.stringify(
scope // scope
)} -> ${JSON.stringify(newScope)}, delta lat: ${ // )} -> ${JSON.stringify(newScope)}, delta lat: ${
newScope.center.lat - scope.center.lat // newScope.center.lat - scope.center.lat
}, delta lon: ${newScope.center.lon - scope.center.lon}` // }, delta lon: ${newScope.center.lon - scope.center.lon}`
); // );
setScope(newScope); setScope(newScope);
}; };