fix(minimap): use translateExtent on pan
This commit is contained in:
@@ -209,8 +209,7 @@ const createRFStore = () =>
|
||||
set({ maxZoom });
|
||||
},
|
||||
setTranslateExtent: (translateExtent: CoordinateExtent) => {
|
||||
const { d3Zoom } = get();
|
||||
d3Zoom?.translateExtent(translateExtent);
|
||||
get().d3Zoom?.translateExtent(translateExtent);
|
||||
|
||||
set({ translateExtent });
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user