From 60d57486ad2ef5e54d3946f84f3a42bc341088dd Mon Sep 17 00:00:00 2001 From: Anna Medyukh Date: Sat, 21 Jul 2018 13:53:00 -0400 Subject: [PATCH] fixed bug: setCenter to update circle location retained previous lnglat in _editCenterLngLat causing click on center dot to revert circle to previous location --- lib/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/main.js b/lib/main.js index 72364e6..5db2f69 100644 --- a/lib/main.js +++ b/lib/main.js @@ -565,6 +565,8 @@ class MapboxCircle { _onCenterChanged() { this._lastCenterLngLat[0] = this.center[0]; this._lastCenterLngLat[1] = this.center[1]; + this._editCenterLngLat[0] = this.center[0]; + this._editCenterLngLat[1] = this.center[1]; } /**