condition on one line

This commit is contained in:
snkashis 2013-01-21 10:14:42 -05:00
parent 65aad99297
commit 5524db2816

View File

@ -21,9 +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].features) {
this.addData(features[i].features);
} else if (features[i].geometries || features[i].geometry) {
if (features[i].geometries || features[i].geometry || features[i].features) {
this.addData(features[i]);
}
}