Skip to content

Commit 30a02ea

Browse files
committed
fixed bug: setCenter to update circle location retained previous lnglat in _editCenterLngLat causing click on center dot to revert circle to previous location
1 parent c3c29c0 commit 30a02ea

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,8 @@ class MapboxCircle {
562562
_onCenterChanged() {
563563
this._lastCenterLngLat[0] = this.center[0];
564564
this._lastCenterLngLat[1] = this.center[1];
565+
this._editCenterLngLat[0] = this.center[0];
566+
this._editCenterLngLat[1] = this.center[1];
565567
}
566568

567569
/**

0 commit comments

Comments
 (0)