Bug fix
This commit is contained in:
parent
0d08ff8cba
commit
cdf2ed2ea2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue