Bug fix
This commit is contained in:
parent
0d08ff8cba
commit
cdf2ed2ea2
|
@ -50,8 +50,8 @@ const TiledLayersStack: react.FC<TiledLayersStackProperties> = (
|
||||||
const currentTiledLayerKey = {
|
const currentTiledLayerKey = {
|
||||||
provider: tiledLayerKey.provider,
|
provider: tiledLayerKey.provider,
|
||||||
zoomLevel: zoomLevel - safetyZoomLevels + tiledLayerKey.zoomLevel,
|
zoomLevel: zoomLevel - safetyZoomLevels + tiledLayerKey.zoomLevel,
|
||||||
x: tiledLayerKey.x * zoom,
|
x: Math.floor(tiledLayerKey.x * zoom),
|
||||||
y: tiledLayerKey.y * zoom,
|
y: Math.floor(tiledLayerKey.y * zoom),
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<TiledLayer
|
<TiledLayer
|
||||||
|
|
Loading…
Reference in New Issue