From 1ad9a08fedf8ddaf7a884163fa76c9b68ff9d99d Mon Sep 17 00:00:00 2001 From: zhaoxinggang Date: Tue, 16 Apr 2024 13:37:39 +0800 Subject: [PATCH] Georoam supports the totalZoom parameter --- src/component/helper/MapDraw.ts | 1 + test/map-china.html | 1 + 2 files changed, 2 insertions(+) diff --git a/src/component/helper/MapDraw.ts b/src/component/helper/MapDraw.ts index 2ec2c5af2f..cc8fe4e80e 100644 --- a/src/component/helper/MapDraw.ts +++ b/src/component/helper/MapDraw.ts @@ -595,6 +595,7 @@ class MapDraw { roamHelper.updateViewOnZoom(controllerHost, e.scale, e.originX, e.originY); api.dispatchAction(zrUtil.extend(makeActionBase(), { + totalZoom: controllerHost.zoom, zoom: e.scale, originX: e.originX, originY: e.originY, diff --git a/test/map-china.html b/test/map-china.html index d8d84cc8f3..7f2df451f1 100644 --- a/test/map-china.html +++ b/test/map-china.html @@ -87,6 +87,7 @@ itemStyle: { areaColor: '#fff' }, + roam: true, data: [{ name: '广西', itemStyle: {