Merge pull request #1299 from snkashis/fix_feat_collects

Handle arrays of feature collections, #1298
This commit is contained in:
Vladimir Agafonkin 2013-01-21 07:17:26 -08:00
commit a000304473

View File

@ -21,7 +21,7 @@ L.GeoJSON = L.FeatureGroup.extend({
if (features) {
for (i = 0, len = features.length; i < len; i++) {
// Only add this if geometry or geometries are set and not null
if (features[i].geometries || features[i].geometry) {
if (features[i].geometries || features[i].geometry || features[i].features) {
this.addData(features[i]);
}
}