@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/dist/baseclient.js +2 -0
- package/dist/baseclient.js.map +1 -1
- package/lib/geo/geo.ts +4 -1
- package/package.json +1 -1
package/dist/baseclient.js
CHANGED
|
@@ -2266,6 +2266,8 @@ function mergePolygon(f1, f2) {
|
|
|
2266
2266
|
function geoNormalizeCollection(col, options) {
|
|
2267
2267
|
options = Util.shallowAssignImmutable(NormalizeAll, options);
|
|
2268
2268
|
// Normalize individual features
|
|
2269
|
+
if (col && Array.isArray(col.features))
|
|
2270
|
+
col.features = col.features.filter((f) => f.properties && f.geometry && f.geometry.coordinates);
|
|
2269
2271
|
if (col && Array.isArray(col.features))
|
|
2270
2272
|
col.features.forEach((f) => geoNormalizeFeature(f, options));
|
|
2271
2273
|
// Ensure ID
|