refactor(controls): cleanup
This commit is contained in:
@@ -52,17 +52,17 @@ const Controls: FC<PropsWithChildren<ControlProps>> = ({
|
||||
}
|
||||
|
||||
const onZoomInHandler = () => {
|
||||
zoomIn?.();
|
||||
zoomIn();
|
||||
onZoomIn?.();
|
||||
};
|
||||
|
||||
const onZoomOutHandler = () => {
|
||||
zoomOut?.();
|
||||
zoomOut();
|
||||
onZoomOut?.();
|
||||
};
|
||||
|
||||
const onFitViewHandler = () => {
|
||||
fitView?.(fitViewOptions);
|
||||
fitView(fitViewOptions);
|
||||
onFitView?.();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user