fix(zoom): translateExtent not set correctly
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -204,8 +204,8 @@ watch(
|
|||||||
(val) =>
|
(val) =>
|
||||||
(store.transform = [
|
(store.transform = [
|
||||||
clamp(val.x, store.translateExtent[0][0], store.translateExtent[1][0]),
|
clamp(val.x, store.translateExtent[0][0], store.translateExtent[1][0]),
|
||||||
clamp(val.y, store.translateExtent[0][0], store.translateExtent[1][0]),
|
clamp(val.y, store.translateExtent[0][1], store.translateExtent[1][1]),
|
||||||
clamp(val.zoom, store.translateExtent[0][0], store.translateExtent[1][0]),
|
clamp(val.zoom, store.minZoom, store.maxZoom),
|
||||||
]),
|
]),
|
||||||
{ flush: 'sync', immediate: true },
|
{ flush: 'sync', immediate: true },
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user