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.
- package/dist/bruce-cesium.es5.js +9 -5
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +8 -4
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/render-managers/tilesets/tileset-arb-render-manager.js +3 -1
- package/dist/lib/rendering/render-managers/tilesets/tileset-arb-render-manager.js.map +1 -1
- package/dist/lib/utils/entity-utils.js +4 -2
- package/dist/lib/utils/entity-utils.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-cesium.umd.js
CHANGED
|
@@ -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
|
-
|
|
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 <
|
|
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
|
-
|
|
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.
|
|
21583
|
+
var VERSION = "3.5.4";
|
|
21580
21584
|
|
|
21581
21585
|
exports.VERSION = VERSION;
|
|
21582
21586
|
exports.CesiumParabola = CesiumParabola;
|