diff --git a/src/components/Map/MapViewer/utils/config/useOlMapTileLayer.ts b/src/components/Map/MapViewer/utils/config/useOlMapTileLayer.ts index a636c57f4210f5ea5564bc93baa8e3bc37e0aecd..d98b480fe8c9e2494e841aad28dd37702c1b9c8b 100644 --- a/src/components/Map/MapViewer/utils/config/useOlMapTileLayer.ts +++ b/src/components/Map/MapViewer/utils/config/useOlMapTileLayer.ts @@ -46,7 +46,7 @@ export const useOlMapTileLayer = (): BaseLayer => { url: sourceUrl, maxZoom: mapSize.maxZoom, minZoom: mapSize.minZoom, - tileSize: mapSize.tileSize, + tileSize: Math.max(mapSize.tileSize, 1), wrapX: OPTIONS.wrapXInTileLayer, }), [sourceUrl, mapSize.maxZoom, mapSize.minZoom, mapSize.tileSize], diff --git a/src/components/Map/MapViewer/utils/useOlMap.ts b/src/components/Map/MapViewer/utils/useOlMap.ts index 4214f1fd2c30cdff199d6704f631f40915212f15..49ec30027077460bfdde9b9ff2b6e89961c0273a 100644 --- a/src/components/Map/MapViewer/utils/useOlMap.ts +++ b/src/components/Map/MapViewer/utils/useOlMap.ts @@ -20,13 +20,7 @@ type UseOlMap = (input?: UseOlMapInput) => UseOlMapOutput; export const useOlMap: UseOlMap = ({ target } = {}) => { const mapRef = React.useRef<null | HTMLDivElement>(null); const { mapInstance, handleSetMapInstance } = useMapInstance(); - // eslint-disable-next-line no-console - console.log('!!!!!!!!!!'); - // eslint-disable-next-line no-console - console.log(mapInstance); const view = useOlMapView({ mapInstance }); - // eslint-disable-next-line no-console - console.log(view); useOlMapLayers({ mapInstance }); useOlMapListeners({ view, mapInstance });