Added setStyle method for MultiPolyLine and MultiPolygon.

This commit is contained in:
Carl Meyer 2011-06-11 19:51:37 -05:00
parent 7772651114
commit 367db80cf6

View File

@ -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);
}
}
}
});
}