Added setStyle method for MultiPolyLine and MultiPolygon.
This commit is contained in:
parent
7772651114
commit
367db80cf6
@ -10,6 +10,14 @@
|
||||
for (var i = 0, len = latlngs.length; i < len; i++) {
|
||||
this.addLayer(new klass(latlngs[i], options));
|
||||
}
|
||||
},
|
||||
|
||||
setStyle: function(style) {
|
||||
for (var i in this._layers) {
|
||||
if (this._layers.hasOwnProperty(i) && this._layers[i].setStyle) {
|
||||
this._layers[i].setStyle(style);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user