Merge pull request #1013 from fdlk/set-radius-in-style

radius is part of CircleMarker style so should be changeable in using setStyle();
This commit is contained in:
Vladimir Agafonkin 2013-01-11 08:43:18 -08:00
commit 116671fa55

View File

@ -16,6 +16,11 @@ L.CircleMarker = L.Circle.extend({
projectLatlngs: function () {
this._point = this._map.latLngToLayerPoint(this._latlng);
},
_updateStyle : function () {
L.Circle.prototype._updateStyle.call(this);
this.setRadius(this.options.radius);
},
setRadius: function (radius) {
this._radius = radius;