Skip to content
Snippets Groups Projects
Commit bddaac91 authored by Miłosz Grocholewski's avatar Miłosz Grocholewski
Browse files

Merge branch 'feat/MIN-65-zoom-quality' into 'development'

refactor(map): change view zoomFactor (zoom step)

Closes MIN-65

See merge request !295
parents 281a064f 6d632723
No related branches found
No related tags found
1 merge request!295refactor(map): change view zoomFactor (zoom step)
Pipeline #97337 passed
......@@ -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]);
......
......@@ -54,6 +54,7 @@ export const useOlMap: UseOlMap = ({ target } = {}) => {
}).extend([
new MouseWheelZoom({
duration: 0,
timeout: 20,
}),
]),
target: target || mapRef.current,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment