diff --git a/src/components/Map/MapViewer/utils/listeners/onMapPositionChange.test.ts b/src/components/Map/MapViewer/utils/listeners/onMapPositionChange.test.ts index 3ab05530b0776d285bb698ea023174f678521398..295b91d1aad607f60565dbb88c33f6bc043659a0 100644 --- a/src/components/Map/MapViewer/utils/listeners/onMapPositionChange.test.ts +++ b/src/components/Map/MapViewer/utils/listeners/onMapPositionChange.test.ts @@ -50,7 +50,7 @@ describe('onMapPositionChange - util', () => { { x: 1479, y: 581, - z: 7, + z: 6.68620779943448, }, ], ]; diff --git a/src/components/Map/MapViewer/utils/listeners/onMapPositionChange.ts b/src/components/Map/MapViewer/utils/listeners/onMapPositionChange.ts index 8bdf55b6e8614a029db153428d9f7defd248b114..7102fec7fdecfd1f771295030dd82e30c42bc767 100644 --- a/src/components/Map/MapViewer/utils/listeners/onMapPositionChange.ts +++ b/src/components/Map/MapViewer/utils/listeners/onMapPositionChange.ts @@ -18,7 +18,7 @@ export const onMapPositionChange = setMapPosition({ x, y, - z: Math.round(zoom), + z: zoom, }), ); };