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.
@@ -3944,9 +3944,17 @@ var Geometry;
3944
3944
  }
3945
3945
  };
3946
3946
  entities.forEach(entity => {
3947
- const { ID } = entity.Bruce;
3948
- const { geometry } = entity;
3949
- processGeometry(geometry, ID);
3947
+ var _a, _b, _c;
3948
+ if (!((_a = entity === null || entity === void 0 ? void 0 : entity.Bruce) === null || _a === void 0 ? void 0 : _a.ID)) {
3949
+ return;
3950
+ }
3951
+ let geometry = entity.geometry;
3952
+ if (!geometry && (((_b = entity.location) === null || _b === void 0 ? void 0 : _b.longitude) && ((_c = entity.location) === null || _c === void 0 ? void 0 : _c.latitude))) {
3953
+ geometry = {
3954
+ Point: `${entity.location.longitude},${entity.location.latitude}` + (entity.location.altitude != null ? `,${entity.location.altitude}` : ""),
3955
+ };
3956
+ }
3957
+ processGeometry(geometry, entity.Bruce.ID);
3950
3958
  });
3951
3959
  return {
3952
3960
  type: 'FeatureCollection',
@@ -10770,7 +10778,7 @@ var DataSource;
10770
10778
  DataSource.GetList = GetList;
10771
10779
  })(DataSource || (DataSource = {}));
10772
10780
 
10773
- const VERSION = "3.4.2";
10781
+ const VERSION = "3.4.3";
10774
10782
 
10775
10783
  export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityCoords, EntityTypeVisualSettings, EntityAttribute, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
10776
10784
  //# sourceMappingURL=bruce-models.es5.js.map