Skip to content

Commit

Permalink
Add radiuschanging and centerchanging events
Browse files Browse the repository at this point in the history
  • Loading branch information
eddydg committed May 28, 2018
1 parent c3c29c0 commit ea83354
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ class MapboxCircle {
this._currentCenterLngLat[0] = newCenter[0];
this._currentCenterLngLat[1] = newCenter[1];
}
this._eventEmitter.emit('centerchanging', this);
this._updateCircle();
this._animate();
}
Expand All @@ -170,6 +171,7 @@ class MapboxCircle {
} else {
this._currentRadius = Math.min(Math.max(this.options.minRadius, newRadius), this.options.maxRadius);
}
this._eventEmitter.emit('radiuschanging', this);
this._updateCircle();
this._animate();
}
Expand Down

0 comments on commit ea83354

Please sign in to comment.