fix ellipse disappearing with big radiusY

This commit is contained in:
Vladimir Agafonkin 2014-01-03 15:27:18 +02:00
parent 264eca8ee6
commit 192973093f

View File

@ -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));
},