Make setRadius and updateStyle({radius: 123 }) work.
This commit is contained in:
parent
0390a86e7f
commit
6b51780e79
@ -19,10 +19,11 @@ L.CircleMarker = L.Circle.extend({
|
||||
|
||||
_updateStyle : function () {
|
||||
L.Circle.prototype._updateStyle.call(this);
|
||||
this.setRadius(this.options.radius);
|
||||
},
|
||||
|
||||
setRadius: function (radius) {
|
||||
this._radius = radius;
|
||||
this.options.radius = this._radius = radius;
|
||||
return this.redraw();
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user