radius is part of CircleMarker style so should be changeable in using

setStyle();
This commit is contained in:
Fleur Kelpin 2012-09-23 15:50:51 +02:00
parent e0ee630421
commit bd8d5ff712

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;