From 9bf8c1e4e1a785b960d8b4eccc62cf8dc04a873f Mon Sep 17 00:00:00 2001 From: bingliu Date: Thu, 12 Dec 2024 11:16:18 +0800 Subject: [PATCH] =?UTF-8?q?animateTo=E5=AF=B9centerZ=E7=9A=84=E6=94=AF?= =?UTF-8?q?=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/map/Map.Anim.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/map/Map.Anim.ts b/src/map/Map.Anim.ts index ce0f143990..92154e66db 100644 --- a/src/map/Map.Anim.ts +++ b/src/map/Map.Anim.ts @@ -174,6 +174,7 @@ Map.include(/** @lends Map.prototype */{ if (frame.styles['center']) { const center = frame.styles['center']; this._setPrjCenter(projection.project(center)); + this._centerZ = center.z; this.onMoving(this._parseEventFromCoord(this.getCenter())); } else if (frame.styles['prjCenter']) { const center = frame.styles['prjCenter'];