Skip to content

Commit e488d56

Browse files
eddydgmblomdahl
authored andcommitted
Add radiuschanging and centerchanging events
1 parent 5b284ef commit e488d56

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
@@ -154,6 +154,7 @@ class MapboxCircle {
154154
this._currentCenterLngLat[0] = newCenter[0];
155155
this._currentCenterLngLat[1] = newCenter[1];
156156
}
157+
this._eventEmitter.emit('centerchanging', this);
157158
this._updateCircle();
158159
this._animate();
159160
}
@@ -170,6 +171,7 @@ class MapboxCircle {
170171
} else {
171172
this._currentRadius = Math.min(Math.max(this.options.minRadius, newRadius), this.options.maxRadius);
172173
}
174+
this._eventEmitter.emit('radiuschanging', this);
173175
this._updateCircle();
174176
this._animate();
175177
}

0 commit comments

Comments
 (0)