radius is part of CircleMarker style so should be changeable in using
setStyle();
This commit is contained in:
parent
e0ee630421
commit
bd8d5ff712
@ -17,6 +17,11 @@ L.CircleMarker = L.Circle.extend({
|
|||||||
this._point = this._map.latLngToLayerPoint(this._latlng);
|
this._point = this._map.latLngToLayerPoint(this._latlng);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
_updateStyle : function () {
|
||||||
|
L.Circle.prototype._updateStyle.call(this);
|
||||||
|
this.setRadius(this.options.radius);
|
||||||
|
},
|
||||||
|
|
||||||
setRadius: function (radius) {
|
setRadius: function (radius) {
|
||||||
this._radius = radius;
|
this._radius = radius;
|
||||||
return this.redraw();
|
return this.redraw();
|
||||||
|
Loading…
Reference in New Issue
Block a user