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}
keyObject={keyObject}
shift={shift}
zoom={zoom * 256}
zoom={256 / zoom}
coordinateSystem={props.coordinateSystem}
/>
);

View File

@ -135,13 +135,13 @@ export const LiveMap: react.FC<LiveMapProperties> = (
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);
};