fix(minimap): use translateExtent on pan

This commit is contained in:
moklick
2022-12-08 17:02:55 +01:00
parent 7c51a61f10
commit 860af7caed
3 changed files with 19 additions and 14 deletions
+1 -2
View File
@@ -209,8 +209,7 @@ const createRFStore = () =>
set({ maxZoom });
},
setTranslateExtent: (translateExtent: CoordinateExtent) => {
const { d3Zoom } = get();
d3Zoom?.translateExtent(translateExtent);
get().d3Zoom?.translateExtent(translateExtent);
set({ translateExtent });
},