condition on one line
This commit is contained in:
parent
65aad99297
commit
5524db2816
@ -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]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user