feat(fitView): add minZoom and maxZoom params closes #1301
This commit is contained in:
@@ -47,8 +47,8 @@ const useZoomPanHelper = (): ZoomPanHelperFunctions => {
|
||||
bounds,
|
||||
width,
|
||||
height,
|
||||
minZoom,
|
||||
maxZoom,
|
||||
options.minZoom ?? minZoom,
|
||||
options.maxZoom ?? maxZoom,
|
||||
options.padding ?? DEFAULT_PADDING
|
||||
);
|
||||
const transform = zoomIdentity.translate(x, y).scale(zoom);
|
||||
|
||||
Reference in New Issue
Block a user