radius is part of CircleMarker style so should be changeable in using
setStyle();
This commit is contained in:
parent
e0ee630421
commit
bd8d5ff712
@ -16,6 +16,11 @@ L.CircleMarker = L.Circle.extend({
|
|||||||
projectLatlngs: function () {
|
projectLatlngs: function () {
|
||||||
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user