Skip to content

Commit 3ec5a4a

Browse files
committed
let map.animateTo return player
1 parent e4f1382 commit 3ec5a4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/map/Map.Anim.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Map.include(/** @lends Map.prototype */{
6969
}
7070
}
7171
if (empty) {
72-
return this;
72+
return null;
7373
}
7474
const zoomOrigin = view['around'] || new Point(this.width / 2, this.height / 2);
7575
let preView = this.getView();
@@ -132,7 +132,7 @@ Map.include(/** @lends Map.prototype */{
132132

133133
this._startAnim(props, zoomOrigin);
134134

135-
return this;
135+
return player;
136136
},
137137

138138
/**

0 commit comments

Comments
 (0)