@dra2020/baseclient 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1515,6 +1515,16 @@ class GeoMultiCollection {
1515
1515
  }
1516
1516
  return undefined;
1517
1517
  }
1518
+ filter(test) {
1519
+ let m = new GeoMultiCollection();
1520
+ this.forEachEntry(e => {
1521
+ let col = this._col(e);
1522
+ let features = col ? col.features.filter(test) : null;
1523
+ if (features && features.length)
1524
+ m.add(e.tag, null, { type: 'FeatureCollection', features: features }, null);
1525
+ });
1526
+ return m;
1527
+ }
1518
1528
  }
1519
1529
  exports.GeoMultiCollection = GeoMultiCollection;
1520
1530
  var geoIntersectOptions;