bruce-models 3.4.2 → 3.4.3
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 +12 -4
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +12 -4
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/common/geometry.js +11 -3
- 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
|
@@ -3880,9 +3880,17 @@
|
|
|
3880
3880
|
}
|
|
3881
3881
|
};
|
|
3882
3882
|
entities.forEach(entity => {
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3883
|
+
var _a, _b, _c;
|
|
3884
|
+
if (!((_a = entity === null || entity === void 0 ? void 0 : entity.Bruce) === null || _a === void 0 ? void 0 : _a.ID)) {
|
|
3885
|
+
return;
|
|
3886
|
+
}
|
|
3887
|
+
let geometry = entity.geometry;
|
|
3888
|
+
if (!geometry && (((_b = entity.location) === null || _b === void 0 ? void 0 : _b.longitude) && ((_c = entity.location) === null || _c === void 0 ? void 0 : _c.latitude))) {
|
|
3889
|
+
geometry = {
|
|
3890
|
+
Point: `${entity.location.longitude},${entity.location.latitude}` + (entity.location.altitude != null ? `,${entity.location.altitude}` : ""),
|
|
3891
|
+
};
|
|
3892
|
+
}
|
|
3893
|
+
processGeometry(geometry, entity.Bruce.ID);
|
|
3886
3894
|
});
|
|
3887
3895
|
return {
|
|
3888
3896
|
type: 'FeatureCollection',
|
|
@@ -10517,7 +10525,7 @@
|
|
|
10517
10525
|
DataSource.GetList = GetList;
|
|
10518
10526
|
})(exports.DataSource || (exports.DataSource = {}));
|
|
10519
10527
|
|
|
10520
|
-
const VERSION = "3.4.
|
|
10528
|
+
const VERSION = "3.4.3";
|
|
10521
10529
|
|
|
10522
10530
|
exports.VERSION = VERSION;
|
|
10523
10531
|
exports.AbstractApi = AbstractApi;
|