@dra2020/baseclient 1.0.37 → 1.0.38

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/poly/poly.ts CHANGED
@@ -683,6 +683,7 @@ export function featureRewind(poly: any): any
683
683
  let d = Util.depthof(poly.geometry.coordinates);
684
684
  if (d === 4) closePoly(poly.geometry.coordinates);
685
685
  else if (d === 5) poly.geometry.coordinates.forEach(closePoly);
686
+ poly.geometry.type = d === 4 ? 'Polygon' : 'MultiPolygon';
686
687
  }
687
688
  return poly;
688
689
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dra2020/baseclient",
3
- "version": "1.0.37",
3
+ "version": "1.0.38",
4
4
  "description": "Utility functions for Javascript projects.",
5
5
  "main": "dist/baseclient.js",
6
6
  "types": "./dist/all/all.d.ts",