Make setRadius and updateStyle({radius: 123 }) work.

This commit is contained in:
danzel 2013-02-04 09:51:27 +13:00
parent 0390a86e7f
commit 6b51780e79

View File

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