@dra2020/baseclient 1.0.149 → 1.0.150
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 +1 -0
- package/package.json +1 -1
package/dist/baseclient.js
CHANGED
|
@@ -2639,6 +2639,8 @@ function isValidId(col) {
|
|
|
2639
2639
|
let set = new Set();
|
|
2640
2640
|
for (let i = 0; i < col.features.length; i++) {
|
|
2641
2641
|
let f = col.features[i];
|
|
2642
|
+
if (typeof f.properties.id === 'number')
|
|
2643
|
+
f.properties.id = String(f.properties.id); // Fix old 2016_BG collections
|
|
2642
2644
|
if (typeof f.properties.id !== 'string')
|
|
2643
2645
|
return false; // id must be string
|
|
2644
2646
|
if (set.has(f.properties.id))
|