bruce-models 4.6.7 → 4.6.8
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/bruce-models.es5.js +8 -9
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +8 -9
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/common/geometry.js +7 -8
- package/dist/lib/common/geometry.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -4616,15 +4616,11 @@
|
|
|
4616
4616
|
// This will append to the "full" object as it goes.
|
|
4617
4617
|
const traverse = (feature) => {
|
|
4618
4618
|
// Geometry collections don't have coords so we have to cast as any.
|
|
4619
|
-
const { type, coordinates, properties } = feature.geometry;
|
|
4619
|
+
const { type, coordinates, properties, geometries } = feature.geometry;
|
|
4620
4620
|
// Unknown thing. Ignoring.
|
|
4621
4621
|
if (!type) {
|
|
4622
4622
|
return;
|
|
4623
4623
|
}
|
|
4624
|
-
// No coordinates. Ignoring.
|
|
4625
|
-
if (!coordinates) {
|
|
4626
|
-
return;
|
|
4627
|
-
}
|
|
4628
4624
|
// Simple properties merge.
|
|
4629
4625
|
// Doesn't handle nested properties very well.
|
|
4630
4626
|
if (properties) {
|
|
@@ -4633,9 +4629,8 @@
|
|
|
4633
4629
|
// We'll first match cases of nested collections and handle them early.
|
|
4634
4630
|
// Then we'll be left with simple geometry cases.
|
|
4635
4631
|
if (type === exports.GeoJson.EType.GeometryCollection) {
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
const geo = collection.geometries[i];
|
|
4632
|
+
for (let i = 0; i < geometries.length; i++) {
|
|
4633
|
+
const geo = geometries[i];
|
|
4639
4634
|
traverse({
|
|
4640
4635
|
type: exports.GeoJson.EType.Feature,
|
|
4641
4636
|
geometry: geo,
|
|
@@ -4651,6 +4646,10 @@
|
|
|
4651
4646
|
}
|
|
4652
4647
|
return;
|
|
4653
4648
|
}
|
|
4649
|
+
// No coordinates. Ignoring.
|
|
4650
|
+
if (!coordinates) {
|
|
4651
|
+
return;
|
|
4652
|
+
}
|
|
4654
4653
|
const geometry = {};
|
|
4655
4654
|
switch (type) {
|
|
4656
4655
|
case exports.GeoJson.EType.Polygon:
|
|
@@ -13751,7 +13750,7 @@
|
|
|
13751
13750
|
})(exports.DataSource || (exports.DataSource = {}));
|
|
13752
13751
|
|
|
13753
13752
|
// This is updated with the package.json version on build.
|
|
13754
|
-
const VERSION = "4.6.
|
|
13753
|
+
const VERSION = "4.6.8";
|
|
13755
13754
|
|
|
13756
13755
|
exports.VERSION = VERSION;
|
|
13757
13756
|
exports.AbstractApi = AbstractApi;
|