bruce-cesium 3.5.2 → 3.5.4

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.
@@ -1989,7 +1989,9 @@
1989
1989
  }
1990
1990
  if (!(entity.geometry && typeof entity.geometry == "object")) return [3 /*break*/, 4];
1991
1991
  pointStr = entity.geometry.Point;
1992
- if (pointStr && typeof pointStr == "string") {
1992
+ // "0.0,0.0" seems to be generated on missing geometry in our re-index.
1993
+ // No location -> turns into 0,0 -> turns into 0.0,0.0 point geometry.
1994
+ if (pointStr && typeof pointStr == "string" && pointStr != "0.0,0.0") {
1993
1995
  points = bruceModels.Geometry.ParsePoints(pointStr);
1994
1996
  point = points.length > 0 ? points[0] : null;
1995
1997
  if (point && bruceModels.Carto.ValidateCarto(point)) {
@@ -2179,7 +2181,7 @@
2179
2181
  if ((entity === null || entity === void 0 ? void 0 : entity.geometryRadius) && (pos3d === null || pos3d === void 0 ? void 0 : pos3d.x)) {
2180
2182
  sphere = Cesium.BoundingSphere.fromPoints([pos3d]);
2181
2183
  // For now making sure it's less than x amount because we had a bug which made it huge.
2182
- if (entity.geometryRadius && entity.geometryRadius < 100 && entity.geometryRadius > 1) {
2184
+ if (entity.geometryRadius && entity.geometryRadius < 500 && entity.geometryRadius > 1) {
2183
2185
  sphere.radius = entity.geometryRadius;
2184
2186
  spheres.push(sphere);
2185
2187
  }
@@ -14017,7 +14019,9 @@
14017
14019
  loadUrlOverride = this.item.tileset.TilesetURL;
14018
14020
  var url = this.item.tileset.TilesetURL;
14019
14021
  var urlParts = url.split("/");
14020
- if (urlParts.length > 5) {
14022
+ // Checking for nextspace is a band-aid fix for external tilesets.
14023
+ // We'll need to do something better in the future. Eg: mark external tilesets as such or check for known nextspace domains.
14024
+ if (urlParts.length > 5 && url.includes("nextspace")) {
14021
14025
  var tilesetId_1 = urlParts[urlParts.length - 3];
14022
14026
  var accountId = urlParts[urlParts.length - 5].split(".")[0];
14023
14027
  this.item.tileset.TilesetID = tilesetId_1;
@@ -21576,7 +21580,7 @@
21576
21580
  ViewRenderEngine.Render = Render;
21577
21581
  })(exports.ViewRenderEngine || (exports.ViewRenderEngine = {}));
21578
21582
 
21579
- var VERSION = "3.5.2";
21583
+ var VERSION = "3.5.4";
21580
21584
 
21581
21585
  exports.VERSION = VERSION;
21582
21586
  exports.CesiumParabola = CesiumParabola;