fix ellipse disappearing with big radiusY
This commit is contained in:
parent
264eca8ee6
commit
192973093f
@ -45,8 +45,10 @@ L.CircleMarker = L.Path.extend({
|
||||
},
|
||||
|
||||
_updateBounds: function () {
|
||||
var r = this._radius + this._clickTolerance(),
|
||||
p = [r, r];
|
||||
var r = this._radius,
|
||||
r2 = this._radiusY || r,
|
||||
w = this._clickTolerance(),
|
||||
p = [r + w, r2 + w];
|
||||
this._pxBounds = new L.Bounds(this._point.subtract(p), this._point.add(p));
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user