@dra2020/baseclient 1.0.70 → 1.0.71

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.
package/lib/geo/geo.ts CHANGED
@@ -106,7 +106,10 @@ export function geoNormalizeCollection(col: GeoFeatureCollection, options?: Norm
106
106
  options = Util.shallowAssignImmutable(NormalizeAll, options);
107
107
 
108
108
  // Normalize individual features
109
- if (col && Array.isArray(col.features)) col.features.forEach((f: GeoFeature) => geoNormalizeFeature(f, options));
109
+ if (col && Array.isArray(col.features))
110
+ col.features = col.features.filter((f: any) => f.properties && f.geometry && f.geometry.coordinates);
111
+ if (col && Array.isArray(col.features))
112
+ col.features.forEach((f: GeoFeature) => geoNormalizeFeature(f, options));
110
113
 
111
114
  // Ensure ID
112
115
  if (options.ensureID)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dra2020/baseclient",
3
- "version": "1.0.70",
3
+ "version": "1.0.71",
4
4
  "description": "Utility functions for Javascript projects.",
5
5
  "main": "dist/baseclient.js",
6
6
  "types": "./dist/all/all.d.ts",