@dra2020/baseclient 1.0.78 → 1.0.79
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 +3 -0
- package/dist/baseclient.js.map +1 -1
- package/lib/poly/polypack.ts +3 -0
- package/package.json +1 -1
package/lib/poly/polypack.ts
CHANGED
|
@@ -208,6 +208,9 @@ export function polyPack(coords: any, prepack?: PolyPack): PolyPack
|
|
|
208
208
|
// Null feature?
|
|
209
209
|
if (coords == null || (coords.length !== undefined && coords.length == 0)) return null;
|
|
210
210
|
|
|
211
|
+
// Null geometry?
|
|
212
|
+
if (coords && coords.type === 'Feature' && coords.geometry == null) return null;
|
|
213
|
+
|
|
211
214
|
// Actually already a PolyPack?
|
|
212
215
|
if (coords.offset !== undefined) return coords as PolyPack;
|
|
213
216
|
|