diff --git a/src/components/Map/MapViewer/utils/config/useOlMapView.ts b/src/components/Map/MapViewer/utils/config/useOlMapView.ts index ffa0b76e1564bd0fbcd0c638744ef529a650a27b..43e17b5bef4d95e5eaff6fcb0fd7ac019c0b8ff7 100644 --- a/src/components/Map/MapViewer/utils/config/useOlMapView.ts +++ b/src/components/Map/MapViewer/utils/config/useOlMapView.ts @@ -56,11 +56,12 @@ export const useOlMapView = ({ mapInstance }: UseOlMapViewInput): MapConfig['vie center: [center.x, center.y], zoom: mapInitialPosition.z, showFullExtent: OPTIONS.showFullExtent, - maxZoom: mapSize.maxZoom, + zoomFactor: 2 ** (1 / 3), + maxZoom: mapSize.maxZoom * 3, minZoom: mapSize.minZoom, extent, }), - [mapInitialPosition.z, mapSize.maxZoom, mapSize.minZoom, center, extent], + [mapInitialPosition.z, mapSize.maxZoom, center, extent], ); const view = useMemo(() => new View(viewConfig), [viewConfig]); diff --git a/src/components/Map/MapViewer/utils/useOlMap.ts b/src/components/Map/MapViewer/utils/useOlMap.ts index e80f32eff32904a0b78befbf7b064fde37bf320d..8cb003eef8ed44ec2226b6dfac062fb2200acd6d 100644 --- a/src/components/Map/MapViewer/utils/useOlMap.ts +++ b/src/components/Map/MapViewer/utils/useOlMap.ts @@ -54,6 +54,7 @@ export const useOlMap: UseOlMap = ({ target } = {}) => { }).extend([ new MouseWheelZoom({ duration: 0, + timeout: 20, }), ]), target: target || mapRef.current,