Skip to content

Commit a1c452a

Browse files
liubgithubbingliu
and
bingliu
authored
animateTo对centerZ的支持 (#2476)
Co-authored-by: bingliu <bingliu@pixs.com>
1 parent e0a9a46 commit a1c452a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/map/Map.Anim.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ Map.include(/** @lends Map.prototype */{
174174
if (frame.styles['center']) {
175175
const center = frame.styles['center'];
176176
this._setPrjCenter(projection.project(center));
177+
this._centerZ = center.z;
177178
this.onMoving(this._parseEventFromCoord(this.getCenter()));
178179
} else if (frame.styles['prjCenter']) {
179180
const center = frame.styles['prjCenter'];

0 commit comments

Comments
 (0)