This commit is contained in:
Eric van der Vlist 2022-10-16 15:54:53 +02:00
parent 0d08ff8cba
commit cdf2ed2ea2
1 changed files with 3 additions and 3 deletions

View File

@ -49,9 +49,9 @@ const TiledLayersStack: react.FC<TiledLayersStackProperties> = (
const zoom = 2 ** (zoomLevel - safetyZoomLevels);
const currentTiledLayerKey = {
provider: tiledLayerKey.provider,
zoomLevel: zoomLevel -safetyZoomLevels + tiledLayerKey.zoomLevel,
x: tiledLayerKey.x * zoom,
y: tiledLayerKey.y * zoom,
zoomLevel: zoomLevel - safetyZoomLevels + tiledLayerKey.zoomLevel,
x: Math.floor(tiledLayerKey.x * zoom),
y: Math.floor(tiledLayerKey.y * zoom),
};
return (
<TiledLayer