fix(zoom): translateExtent not set correctly

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-11-26 15:38:03 +01:00
parent 27e39796a0
commit 043ba21a94
+2 -2
View File
@@ -204,8 +204,8 @@ watch(
(val) =>
(store.transform = [
clamp(val.x, store.translateExtent[0][0], store.translateExtent[1][0]),
clamp(val.y, store.translateExtent[0][0], store.translateExtent[1][0]),
clamp(val.zoom, store.translateExtent[0][0], store.translateExtent[1][0]),
clamp(val.y, store.translateExtent[0][1], store.translateExtent[1][1]),
clamp(val.zoom, store.minZoom, store.maxZoom),
]),
{ flush: 'sync', immediate: true },
)