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