Bug fix...
This commit is contained in:
parent
8deed17b05
commit
9f9576d2f6
|
@ -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}
|
||||
/>
|
||||
);
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue