Skip to content

Commit 60d5748

Browse files
MissAnichkamblomdahl
authored andcommitted
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 5b284ef commit 60d5748

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,8 @@ class MapboxCircle {
565565
_onCenterChanged() {
566566
this._lastCenterLngLat[0] = this.center[0];
567567
this._lastCenterLngLat[1] = this.center[1];
568+
this._editCenterLngLat[0] = this.center[0];
569+
this._editCenterLngLat[1] = this.center[1];
568570
}
569571

570572
/**

0 commit comments

Comments
 (0)