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:
commit
116671fa55
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user