diff --git a/src/components/map/Handlers.tsx b/src/components/map/Handlers.tsx index c60c5d8..419ddf5 100644 --- a/src/components/map/Handlers.tsx +++ b/src/components/map/Handlers.tsx @@ -1,10 +1,9 @@ import react, { useRef } from 'react'; -import { useAtom } from 'jotai'; import { Point } from './types'; import './Handler.css'; import { handlersConfig } from './config'; -import { relativeCoordinateSystemAtom, Transformation } from './LiveMap'; +import { Transformation } from './LiveMap'; /** * diff --git a/src/components/map/LayerStack.test.tsx b/src/components/map/LayerStack.test.tsx index 29ad14f..bee6cae 100644 --- a/src/components/map/LayerStack.test.tsx +++ b/src/components/map/LayerStack.test.tsx @@ -27,16 +27,16 @@ describe('The LayerStack component', () => { transform="translate(0, 0) scale(1)" > { transform="translate(0, 0) scale(1)" > = (props: MapProperties) => { - const centerPX = { - x: window.innerWidth / 2, - y: window.innerHeight / 2, - }; - const tileProvider = tileProviders[props.scope.tileProvider]; const tilesZoom = Math.min( diff --git a/src/components/map/TiledLayer.tsx b/src/components/map/TiledLayer.tsx index 9c47412..e2a28a2 100644 --- a/src/components/map/TiledLayer.tsx +++ b/src/components/map/TiledLayer.tsx @@ -1,4 +1,3 @@ -import { useAtom } from 'jotai'; import react from 'react'; import TileSet from './TileSet'; import { Point, TileKeyObject } from './types'; diff --git a/src/components/map/tile-providers.tsx b/src/components/map/tile-providers.tsx index a604ae6..7fc499c 100644 --- a/src/components/map/tile-providers.tsx +++ b/src/components/map/tile-providers.tsx @@ -1,5 +1,4 @@ -import Tile from './Tile'; -import { TileFactory, TileKeyObject } from './types'; +import { TileKeyObject } from './types'; export interface TileProvider { name: string;