Merge branch 'main' into v11

This commit is contained in:
moklick
2022-08-05 19:09:09 +02:00
9 changed files with 41 additions and 36 deletions
@@ -47,6 +47,9 @@ const ZoomPane = ({
elementsSelectable,
panOnDrag = true,
defaultViewport,
translateExtent,
minZoom,
maxZoom,
zoomActivationKeyCode,
preventScrolling = true,
children,
@@ -64,7 +67,6 @@ const ZoomPane = ({
useEffect(() => {
if (zoomPane.current) {
const { minZoom, maxZoom, translateExtent } = store.getState();
const d3ZoomInstance = zoom().scaleExtent([minZoom, maxZoom]).translateExtent(translateExtent);
const selection = select(zoomPane.current as Element).call(d3ZoomInstance);