bruce-cesium 3.3.1 → 3.3.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.
@@ -3301,7 +3301,10 @@
3301
3301
  var _a;
3302
3302
  var heightRef = defaultStyle == null ? Cesium.HeightReference.CLAMP_TO_GROUND : defaultStyle;
3303
3303
  var altOptionId = (_a = style === null || style === void 0 ? void 0 : style.altitudeOption) === null || _a === void 0 ? void 0 : _a.id;
3304
- if (altOptionId == 1) {
3304
+ if (altOptionId == 0) {
3305
+ heightRef = Cesium.HeightReference.CLAMP_TO_GROUND;
3306
+ }
3307
+ else if (altOptionId == 1) {
3305
3308
  heightRef = Cesium.HeightReference.NONE;
3306
3309
  }
3307
3310
  else if (altOptionId == 2) {
@@ -9216,7 +9219,7 @@
9216
9219
  function correctStyle(style) {
9217
9220
  if (style && !style.Settings && !style.ID) {
9218
9221
  return {
9219
- ID: 0,
9222
+ ID: -1,
9220
9223
  Name: "Unknown",
9221
9224
  Settings: __assign({}, style),
9222
9225
  Type: bruceModels.Style.EType.Entity
@@ -9664,7 +9667,8 @@
9664
9667
  if ((_a = this.styleMapping) === null || _a === void 0 ? void 0 : _a.length) {
9665
9668
  for (var i = 0; i < this.styleMapping.length; i++) {
9666
9669
  var mapItem = this.styleMapping[i];
9667
- this.styleMapping[i].style = correctStyle(mapItem === null || mapItem === void 0 ? void 0 : mapItem.style);
9670
+ var mapStyle = mapItem.style ? mapItem.style : mapItem.Style;
9671
+ this.styleMapping[i].style = correctStyle(mapStyle);
9668
9672
  }
9669
9673
  }
9670
9674
  this.register = register;
@@ -9830,7 +9834,7 @@
9830
9834
  return [3 /*break*/, 15];
9831
9835
  }
9832
9836
  styleMap = styleMapping[i];
9833
- if (!!styleMap.style) return [3 /*break*/, 13];
9837
+ if (!(!styleMap.style && styleMap.StyleID > 0)) return [3 /*break*/, 13];
9834
9838
  styleId = styleMap.StyleID;
9835
9839
  if (!!styleId) return [3 /*break*/, 9];
9836
9840
  _c.label = 6;
@@ -17326,7 +17330,7 @@
17326
17330
  menuItems = [];
17327
17331
  version = view.DataVersion;
17328
17332
  if (view.Settings && bookmark.Settings) {
17329
- if (version === 2) {
17333
+ if (version >= 2) {
17330
17334
  vSettings = view.Settings;
17331
17335
  bSettings = bookmark.Settings;
17332
17336
  menuItems = vSettings.menuItems;
@@ -19974,7 +19978,7 @@
19974
19978
  CesiumViewMonitor.Monitor = Monitor;
19975
19979
  })(exports.CesiumViewMonitor || (exports.CesiumViewMonitor = {}));
19976
19980
 
19977
- var VERSION$1 = "3.3.1";
19981
+ var VERSION$1 = "3.3.3";
19978
19982
 
19979
19983
  exports.VERSION = VERSION$1;
19980
19984
  exports.CesiumParabola = CesiumParabola;