@cesium/engine 3.0.0 → 3.0.2

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.
Files changed (95) hide show
  1. package/Build/Workers/{AxisAlignedBoundingBox-4bfd84f3.js → AxisAlignedBoundingBox-a03420b1.js} +1 -1
  2. package/Build/Workers/{BoundingRectangle-5fd6403a.js → BoundingRectangle-32fa8a4a.js} +1 -1
  3. package/Build/Workers/{BoxGeometry-af7d05ef.js → BoxGeometry-cd550612.js} +1 -1
  4. package/Build/Workers/{Color-8e135f71.js → Color-571a6085.js} +1 -1
  5. package/Build/Workers/{CoplanarPolygonGeometryLibrary-59c69b0a.js → CoplanarPolygonGeometryLibrary-488b1a9f.js} +1 -1
  6. package/Build/Workers/{CorridorGeometryLibrary-63907365.js → CorridorGeometryLibrary-fc4ff147.js} +1 -1
  7. package/Build/Workers/{CylinderGeometry-dbaa1678.js → CylinderGeometry-bc26926d.js} +1 -1
  8. package/Build/Workers/{EllipseGeometry-6508b78b.js → EllipseGeometry-89533a10.js} +1 -1
  9. package/Build/Workers/{EllipseGeometryLibrary-21262a28.js → EllipseGeometryLibrary-b0d7df17.js} +1 -1
  10. package/Build/Workers/{EllipseOutlineGeometry-2a2510bb.js → EllipseOutlineGeometry-63ff7a87.js} +1 -1
  11. package/Build/Workers/{EllipsoidGeometry-8155e3a2.js → EllipsoidGeometry-07e99d2d.js} +1 -1
  12. package/Build/Workers/{EllipsoidOutlineGeometry-c045678d.js → EllipsoidOutlineGeometry-ba5c7ee2.js} +1 -1
  13. package/Build/Workers/{EllipsoidTangentPlane-546c0d5e.js → EllipsoidTangentPlane-65d41b3e.js} +1 -1
  14. package/Build/Workers/{FrustumGeometry-d3ff16d0.js → FrustumGeometry-4a7589ed.js} +1 -1
  15. package/Build/Workers/{GeometryAttribute-13da9466.js → GeometryAttribute-a5b6275b.js} +2 -2
  16. package/Build/Workers/{GeometryPipeline-03bc5709.js → GeometryPipeline-fa9e6ffc.js} +1 -1
  17. package/Build/Workers/{IntersectionTests-85350792.js → IntersectionTests-feace3da.js} +1 -1
  18. package/Build/Workers/{OrientedBoundingBox-29fb0fcd.js → OrientedBoundingBox-6b94d955.js} +1 -1
  19. package/Build/Workers/{PolygonGeometryLibrary-d447448d.js → PolygonGeometryLibrary-4ffc457d.js} +1 -1
  20. package/Build/Workers/{PolygonPipeline-460cce4e.js → PolygonPipeline-d5e66350.js} +1 -1
  21. package/Build/Workers/{PolylinePipeline-7119eb3f.js → PolylinePipeline-83410f0c.js} +1 -1
  22. package/Build/Workers/{PolylineVolumeGeometryLibrary-d25f0050.js → PolylineVolumeGeometryLibrary-290e7aec.js} +1 -1
  23. package/Build/Workers/{PrimitivePipeline-e648752b.js → PrimitivePipeline-6081d138.js} +1 -1
  24. package/Build/Workers/{RectangleGeometryLibrary-bb378fb6.js → RectangleGeometryLibrary-986710d8.js} +1 -1
  25. package/Build/Workers/{TerrainEncoding-c8e029a2.js → TerrainEncoding-528e1d68.js} +1 -1
  26. package/Build/Workers/{Transforms-e2d4a55a.js → Transforms-b527bb09.js} +1 -0
  27. package/Build/Workers/{WallGeometryLibrary-3e0819ec.js → WallGeometryLibrary-faf583f8.js} +1 -1
  28. package/Build/Workers/cesiumWorkerBootstrapper.js +1 -1
  29. package/Build/Workers/combineGeometry.js +1 -1
  30. package/Build/Workers/createBoxGeometry.js +1 -1
  31. package/Build/Workers/createBoxOutlineGeometry.js +1 -1
  32. package/Build/Workers/createCircleGeometry.js +1 -1
  33. package/Build/Workers/createCircleOutlineGeometry.js +1 -1
  34. package/Build/Workers/createCoplanarPolygonGeometry.js +1 -1
  35. package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +1 -1
  36. package/Build/Workers/createCorridorGeometry.js +1 -1
  37. package/Build/Workers/createCorridorOutlineGeometry.js +1 -1
  38. package/Build/Workers/createCylinderGeometry.js +1 -1
  39. package/Build/Workers/createCylinderOutlineGeometry.js +1 -1
  40. package/Build/Workers/createEllipseGeometry.js +1 -1
  41. package/Build/Workers/createEllipseOutlineGeometry.js +1 -1
  42. package/Build/Workers/createEllipsoidGeometry.js +1 -1
  43. package/Build/Workers/createEllipsoidOutlineGeometry.js +1 -1
  44. package/Build/Workers/createFrustumGeometry.js +1 -1
  45. package/Build/Workers/createFrustumOutlineGeometry.js +1 -1
  46. package/Build/Workers/createGeometry.js +1 -1
  47. package/Build/Workers/createGroundPolylineGeometry.js +4 -3
  48. package/Build/Workers/createPlaneGeometry.js +1 -1
  49. package/Build/Workers/createPlaneOutlineGeometry.js +1 -1
  50. package/Build/Workers/createPolygonGeometry.js +1 -1
  51. package/Build/Workers/createPolygonOutlineGeometry.js +1 -1
  52. package/Build/Workers/createPolylineGeometry.js +1 -1
  53. package/Build/Workers/createPolylineVolumeGeometry.js +1 -1
  54. package/Build/Workers/createPolylineVolumeOutlineGeometry.js +1 -1
  55. package/Build/Workers/createRectangleGeometry.js +1 -1
  56. package/Build/Workers/createRectangleOutlineGeometry.js +1 -1
  57. package/Build/Workers/createSimplePolylineGeometry.js +1 -1
  58. package/Build/Workers/createSphereGeometry.js +1 -1
  59. package/Build/Workers/createSphereOutlineGeometry.js +1 -1
  60. package/Build/Workers/createVectorTileGeometries.js +1 -1
  61. package/Build/Workers/createVectorTilePolygons.js +1 -1
  62. package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +1 -1
  63. package/Build/Workers/createVerticesFromHeightmap.js +1 -1
  64. package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +1 -1
  65. package/Build/Workers/createWallGeometry.js +1 -1
  66. package/Build/Workers/createWallOutlineGeometry.js +1 -1
  67. package/Build/Workers/package.js +1 -1
  68. package/Build/Workers/transcodeKTX2.js +14 -3
  69. package/Build/Workers/transferTypedArrayTest.js +1 -1
  70. package/Build/Workers/upsampleQuantizedTerrainMesh.js +1 -1
  71. package/Source/Core/CesiumTerrainProvider.js +2 -1
  72. package/Source/Core/Geometry.js +1 -1
  73. package/Source/Core/GoogleMaps.js +1 -1
  74. package/Source/Core/GroundPolylineGeometry.js +3 -2
  75. package/Source/Core/Ion.js +1 -1
  76. package/Source/Core/RequestScheduler.js +1 -0
  77. package/Source/DataSources/CzmlDataSource.js +6 -4
  78. package/Source/Scene/ArcGisMapService.js +1 -1
  79. package/Source/Scene/{parseBoundingVolumeSemantics.js → BoundingVolumeSemantics.js} +71 -15
  80. package/Source/Scene/Cesium3DTile.js +31 -13
  81. package/Source/Scene/GltfLoaderUtil.js +1 -7
  82. package/Source/Scene/ImageryLayer.js +2 -2
  83. package/Source/Scene/Implicit3DTileContent.js +4 -2
  84. package/Source/Scene/Model/CustomShaderPipelineStage.js +178 -164
  85. package/Source/Scene/Model/Model.js +3 -1
  86. package/Source/Scene/OpenStreetMapImageryProvider.js +3 -3
  87. package/Source/Shaders/Builtin/Functions/eastNorthUpToEyeCoordinates.glsl +1 -1
  88. package/Source/Shaders/Builtin/Functions/eastNorthUpToEyeCoordinates.js +1 -1
  89. package/Source/Shaders/EllipsoidFS.glsl +1 -1
  90. package/Source/Shaders/EllipsoidFS.js +1 -1
  91. package/Source/Shaders/GlobeFS.glsl +1 -1
  92. package/Source/Shaders/GlobeFS.js +1 -1
  93. package/index.d.ts +4 -4
  94. package/index.js +197 -197
  95. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- define(['./defaultValue-fe22d8c0', './Matrix3-41c58dde', './arrayRemoveDuplicates-d2061e85', './BoundingRectangle-5fd6403a', './Transforms-e2d4a55a', './Matrix2-e1298525', './ComponentDatatype-cf1fa08e', './PolylineVolumeGeometryLibrary-d25f0050', './Check-6ede7e26', './GeometryAttribute-13da9466', './GeometryAttributes-ad136444', './IndexDatatype-2643aa47', './Math-0a2ac845', './PolygonPipeline-460cce4e', './combine-d9581036', './RuntimeError-ef395448', './WebGLConstants-0b1ce7ba', './EllipsoidTangentPlane-546c0d5e', './AxisAlignedBoundingBox-4bfd84f3', './IntersectionTests-85350792', './Plane-4c3d403b', './PolylinePipeline-7119eb3f', './EllipsoidGeodesic-5b3623dc', './EllipsoidRhumbLine-ef872433'], (function (defaultValue, Matrix3, arrayRemoveDuplicates, BoundingRectangle, Transforms, Matrix2, ComponentDatatype, PolylineVolumeGeometryLibrary, Check, GeometryAttribute, GeometryAttributes, IndexDatatype, Math, PolygonPipeline, combine, RuntimeError, WebGLConstants, EllipsoidTangentPlane, AxisAlignedBoundingBox, IntersectionTests, Plane, PolylinePipeline, EllipsoidGeodesic, EllipsoidRhumbLine) { 'use strict';
1
+ define(['./defaultValue-fe22d8c0', './Matrix3-41c58dde', './arrayRemoveDuplicates-d2061e85', './BoundingRectangle-32fa8a4a', './Transforms-b527bb09', './Matrix2-e1298525', './ComponentDatatype-cf1fa08e', './PolylineVolumeGeometryLibrary-290e7aec', './Check-6ede7e26', './GeometryAttribute-a5b6275b', './GeometryAttributes-ad136444', './IndexDatatype-2643aa47', './Math-0a2ac845', './PolygonPipeline-d5e66350', './combine-d9581036', './RuntimeError-ef395448', './WebGLConstants-0b1ce7ba', './EllipsoidTangentPlane-65d41b3e', './AxisAlignedBoundingBox-a03420b1', './IntersectionTests-feace3da', './Plane-4c3d403b', './PolylinePipeline-83410f0c', './EllipsoidGeodesic-5b3623dc', './EllipsoidRhumbLine-ef872433'], (function (defaultValue, Matrix3, arrayRemoveDuplicates, BoundingRectangle, Transforms, Matrix2, ComponentDatatype, PolylineVolumeGeometryLibrary, Check, GeometryAttribute, GeometryAttributes, IndexDatatype, Math, PolygonPipeline, combine, RuntimeError, WebGLConstants, EllipsoidTangentPlane, AxisAlignedBoundingBox, IntersectionTests, Plane, PolylinePipeline, EllipsoidGeodesic, EllipsoidRhumbLine) { 'use strict';
2
2
 
3
3
  function computeAttributes(positions, shape) {
4
4
  const attributes = new GeometryAttributes.GeometryAttributes();
@@ -1,4 +1,4 @@
1
- define(['./defaultValue-fe22d8c0', './Matrix3-41c58dde', './Matrix2-e1298525', './Transforms-e2d4a55a', './Check-6ede7e26', './ComponentDatatype-cf1fa08e', './GeometryAttribute-13da9466', './GeometryAttributes-ad136444', './GeometryInstance-34d9e21e', './GeometryOffsetAttribute-9ad0019c', './GeometryPipeline-03bc5709', './IndexDatatype-2643aa47', './Math-0a2ac845', './PolygonPipeline-460cce4e', './RectangleGeometryLibrary-bb378fb6', './VertexFormat-030f11ff', './RuntimeError-ef395448', './combine-d9581036', './WebGLConstants-0b1ce7ba', './AttributeCompression-f9f6c717', './EncodedCartesian3-57415c8a', './IntersectionTests-85350792', './Plane-4c3d403b', './EllipsoidRhumbLine-ef872433'], (function (defaultValue, Matrix3, Matrix2, Transforms, Check, ComponentDatatype, GeometryAttribute, GeometryAttributes, GeometryInstance, GeometryOffsetAttribute, GeometryPipeline, IndexDatatype, Math$1, PolygonPipeline, RectangleGeometryLibrary, VertexFormat, RuntimeError, combine, WebGLConstants, AttributeCompression, EncodedCartesian3, IntersectionTests, Plane, EllipsoidRhumbLine) { 'use strict';
1
+ define(['./defaultValue-fe22d8c0', './Matrix3-41c58dde', './Matrix2-e1298525', './Transforms-b527bb09', './Check-6ede7e26', './ComponentDatatype-cf1fa08e', './GeometryAttribute-a5b6275b', './GeometryAttributes-ad136444', './GeometryInstance-34d9e21e', './GeometryOffsetAttribute-9ad0019c', './GeometryPipeline-fa9e6ffc', './IndexDatatype-2643aa47', './Math-0a2ac845', './PolygonPipeline-d5e66350', './RectangleGeometryLibrary-986710d8', './VertexFormat-030f11ff', './RuntimeError-ef395448', './combine-d9581036', './WebGLConstants-0b1ce7ba', './AttributeCompression-f9f6c717', './EncodedCartesian3-57415c8a', './IntersectionTests-feace3da', './Plane-4c3d403b', './EllipsoidRhumbLine-ef872433'], (function (defaultValue, Matrix3, Matrix2, Transforms, Check, ComponentDatatype, GeometryAttribute, GeometryAttributes, GeometryInstance, GeometryOffsetAttribute, GeometryPipeline, IndexDatatype, Math$1, PolygonPipeline, RectangleGeometryLibrary, VertexFormat, RuntimeError, combine, WebGLConstants, AttributeCompression, EncodedCartesian3, IntersectionTests, Plane, EllipsoidRhumbLine) { 'use strict';
2
2
 
3
3
  const positionScratch = new Matrix3.Cartesian3();
4
4
  const normalScratch = new Matrix3.Cartesian3();
@@ -1,4 +1,4 @@
1
- define(['./defaultValue-fe22d8c0', './Matrix3-41c58dde', './Matrix2-e1298525', './Transforms-e2d4a55a', './ComponentDatatype-cf1fa08e', './Check-6ede7e26', './GeometryAttribute-13da9466', './GeometryAttributes-ad136444', './GeometryOffsetAttribute-9ad0019c', './IndexDatatype-2643aa47', './Math-0a2ac845', './PolygonPipeline-460cce4e', './RectangleGeometryLibrary-bb378fb6', './RuntimeError-ef395448', './combine-d9581036', './WebGLConstants-0b1ce7ba', './EllipsoidRhumbLine-ef872433'], (function (defaultValue, Matrix3, Matrix2, Transforms, ComponentDatatype, Check, GeometryAttribute, GeometryAttributes, GeometryOffsetAttribute, IndexDatatype, Math$1, PolygonPipeline, RectangleGeometryLibrary, RuntimeError, combine, WebGLConstants, EllipsoidRhumbLine) { 'use strict';
1
+ define(['./defaultValue-fe22d8c0', './Matrix3-41c58dde', './Matrix2-e1298525', './Transforms-b527bb09', './ComponentDatatype-cf1fa08e', './Check-6ede7e26', './GeometryAttribute-a5b6275b', './GeometryAttributes-ad136444', './GeometryOffsetAttribute-9ad0019c', './IndexDatatype-2643aa47', './Math-0a2ac845', './PolygonPipeline-d5e66350', './RectangleGeometryLibrary-986710d8', './RuntimeError-ef395448', './combine-d9581036', './WebGLConstants-0b1ce7ba', './EllipsoidRhumbLine-ef872433'], (function (defaultValue, Matrix3, Matrix2, Transforms, ComponentDatatype, Check, GeometryAttribute, GeometryAttributes, GeometryOffsetAttribute, IndexDatatype, Math$1, PolygonPipeline, RectangleGeometryLibrary, RuntimeError, combine, WebGLConstants, EllipsoidRhumbLine) { 'use strict';
2
2
 
3
3
  const bottomBoundingSphere = new Transforms.BoundingSphere();
4
4
  const topBoundingSphere = new Transforms.BoundingSphere();
@@ -1,4 +1,4 @@
1
- define(['./defaultValue-fe22d8c0', './Matrix3-41c58dde', './ArcType-2d9abbbc', './Transforms-e2d4a55a', './Color-8e135f71', './ComponentDatatype-cf1fa08e', './Check-6ede7e26', './GeometryAttribute-13da9466', './GeometryAttributes-ad136444', './IndexDatatype-2643aa47', './Math-0a2ac845', './PolylinePipeline-7119eb3f', './Matrix2-e1298525', './RuntimeError-ef395448', './combine-d9581036', './WebGLConstants-0b1ce7ba', './EllipsoidGeodesic-5b3623dc', './EllipsoidRhumbLine-ef872433', './IntersectionTests-85350792', './Plane-4c3d403b'], (function (defaultValue, Matrix3, ArcType, Transforms, Color, ComponentDatatype, Check, GeometryAttribute, GeometryAttributes, IndexDatatype, Math, PolylinePipeline, Matrix2, RuntimeError, combine, WebGLConstants, EllipsoidGeodesic, EllipsoidRhumbLine, IntersectionTests, Plane) { 'use strict';
1
+ define(['./defaultValue-fe22d8c0', './Matrix3-41c58dde', './ArcType-2d9abbbc', './Transforms-b527bb09', './Color-571a6085', './ComponentDatatype-cf1fa08e', './Check-6ede7e26', './GeometryAttribute-a5b6275b', './GeometryAttributes-ad136444', './IndexDatatype-2643aa47', './Math-0a2ac845', './PolylinePipeline-83410f0c', './Matrix2-e1298525', './RuntimeError-ef395448', './combine-d9581036', './WebGLConstants-0b1ce7ba', './EllipsoidGeodesic-5b3623dc', './EllipsoidRhumbLine-ef872433', './IntersectionTests-feace3da', './Plane-4c3d403b'], (function (defaultValue, Matrix3, ArcType, Transforms, Color, ComponentDatatype, Check, GeometryAttribute, GeometryAttributes, IndexDatatype, Math, PolylinePipeline, Matrix2, RuntimeError, combine, WebGLConstants, EllipsoidGeodesic, EllipsoidRhumbLine, IntersectionTests, Plane) { 'use strict';
2
2
 
3
3
  function interpolateColors(p0, p1, color0, color1, minDistance, array, offset) {
4
4
  const numPoints = PolylinePipeline.PolylinePipeline.numberOfPoints(p0, p1, minDistance);
@@ -1,4 +1,4 @@
1
- define(['./defaultValue-fe22d8c0', './Matrix3-41c58dde', './Check-6ede7e26', './EllipsoidGeometry-8155e3a2', './VertexFormat-030f11ff', './Math-0a2ac845', './Transforms-e2d4a55a', './Matrix2-e1298525', './RuntimeError-ef395448', './combine-d9581036', './ComponentDatatype-cf1fa08e', './WebGLConstants-0b1ce7ba', './GeometryAttribute-13da9466', './GeometryAttributes-ad136444', './GeometryOffsetAttribute-9ad0019c', './IndexDatatype-2643aa47'], (function (defaultValue, Matrix3, Check, EllipsoidGeometry, VertexFormat, Math, Transforms, Matrix2, RuntimeError, combine, ComponentDatatype, WebGLConstants, GeometryAttribute, GeometryAttributes, GeometryOffsetAttribute, IndexDatatype) { 'use strict';
1
+ define(['./defaultValue-fe22d8c0', './Matrix3-41c58dde', './Check-6ede7e26', './EllipsoidGeometry-07e99d2d', './VertexFormat-030f11ff', './Math-0a2ac845', './Transforms-b527bb09', './Matrix2-e1298525', './RuntimeError-ef395448', './combine-d9581036', './ComponentDatatype-cf1fa08e', './WebGLConstants-0b1ce7ba', './GeometryAttribute-a5b6275b', './GeometryAttributes-ad136444', './GeometryOffsetAttribute-9ad0019c', './IndexDatatype-2643aa47'], (function (defaultValue, Matrix3, Check, EllipsoidGeometry, VertexFormat, Math, Transforms, Matrix2, RuntimeError, combine, ComponentDatatype, WebGLConstants, GeometryAttribute, GeometryAttributes, GeometryOffsetAttribute, IndexDatatype) { 'use strict';
2
2
 
3
3
  /**
4
4
  * A description of a sphere centered at the origin.
@@ -1,4 +1,4 @@
1
- define(['./defaultValue-fe22d8c0', './Matrix3-41c58dde', './Check-6ede7e26', './EllipsoidOutlineGeometry-c045678d', './Math-0a2ac845', './Transforms-e2d4a55a', './Matrix2-e1298525', './RuntimeError-ef395448', './combine-d9581036', './ComponentDatatype-cf1fa08e', './WebGLConstants-0b1ce7ba', './GeometryAttribute-13da9466', './GeometryAttributes-ad136444', './GeometryOffsetAttribute-9ad0019c', './IndexDatatype-2643aa47'], (function (defaultValue, Matrix3, Check, EllipsoidOutlineGeometry, Math, Transforms, Matrix2, RuntimeError, combine, ComponentDatatype, WebGLConstants, GeometryAttribute, GeometryAttributes, GeometryOffsetAttribute, IndexDatatype) { 'use strict';
1
+ define(['./defaultValue-fe22d8c0', './Matrix3-41c58dde', './Check-6ede7e26', './EllipsoidOutlineGeometry-ba5c7ee2', './Math-0a2ac845', './Transforms-b527bb09', './Matrix2-e1298525', './RuntimeError-ef395448', './combine-d9581036', './ComponentDatatype-cf1fa08e', './WebGLConstants-0b1ce7ba', './GeometryAttribute-a5b6275b', './GeometryAttributes-ad136444', './GeometryOffsetAttribute-9ad0019c', './IndexDatatype-2643aa47'], (function (defaultValue, Matrix3, Check, EllipsoidOutlineGeometry, Math, Transforms, Matrix2, RuntimeError, combine, ComponentDatatype, WebGLConstants, GeometryAttribute, GeometryAttributes, GeometryOffsetAttribute, IndexDatatype) { 'use strict';
2
2
 
3
3
  /**
4
4
  * A description of the outline of a sphere.
@@ -1,4 +1,4 @@
1
- define(['./Transforms-e2d4a55a', './BoxGeometry-af7d05ef', './Matrix3-41c58dde', './Color-8e135f71', './CylinderGeometry-dbaa1678', './defaultValue-fe22d8c0', './EllipsoidGeometry-8155e3a2', './IndexDatatype-2643aa47', './Matrix2-e1298525', './createTaskProcessorWorker', './Check-6ede7e26', './Math-0a2ac845', './combine-d9581036', './RuntimeError-ef395448', './ComponentDatatype-cf1fa08e', './WebGLConstants-0b1ce7ba', './GeometryAttribute-13da9466', './GeometryAttributes-ad136444', './GeometryOffsetAttribute-9ad0019c', './VertexFormat-030f11ff', './CylinderGeometryLibrary-7bf291b4'], (function (Transforms, BoxGeometry, Matrix3, Color, CylinderGeometry, defaultValue, EllipsoidGeometry, IndexDatatype, Matrix2, createTaskProcessorWorker, Check, Math$1, combine, RuntimeError, ComponentDatatype, WebGLConstants, GeometryAttribute, GeometryAttributes, GeometryOffsetAttribute, VertexFormat, CylinderGeometryLibrary) { 'use strict';
1
+ define(['./Transforms-b527bb09', './BoxGeometry-cd550612', './Matrix3-41c58dde', './Color-571a6085', './CylinderGeometry-bc26926d', './defaultValue-fe22d8c0', './EllipsoidGeometry-07e99d2d', './IndexDatatype-2643aa47', './Matrix2-e1298525', './createTaskProcessorWorker', './Check-6ede7e26', './Math-0a2ac845', './combine-d9581036', './RuntimeError-ef395448', './ComponentDatatype-cf1fa08e', './WebGLConstants-0b1ce7ba', './GeometryAttribute-a5b6275b', './GeometryAttributes-ad136444', './GeometryOffsetAttribute-9ad0019c', './VertexFormat-030f11ff', './CylinderGeometryLibrary-7bf291b4'], (function (Transforms, BoxGeometry, Matrix3, Color, CylinderGeometry, defaultValue, EllipsoidGeometry, IndexDatatype, Matrix2, createTaskProcessorWorker, Check, Math$1, combine, RuntimeError, ComponentDatatype, WebGLConstants, GeometryAttribute, GeometryAttributes, GeometryOffsetAttribute, VertexFormat, CylinderGeometryLibrary) { 'use strict';
2
2
 
3
3
  /**
4
4
  * Describes a renderable batch of geometry.
@@ -1,4 +1,4 @@
1
- define(['./AttributeCompression-f9f6c717', './Matrix3-41c58dde', './Color-8e135f71', './defaultValue-fe22d8c0', './IndexDatatype-2643aa47', './Math-0a2ac845', './OrientedBoundingBox-29fb0fcd', './Matrix2-e1298525', './createTaskProcessorWorker', './ComponentDatatype-cf1fa08e', './Check-6ede7e26', './WebGLConstants-0b1ce7ba', './Transforms-e2d4a55a', './combine-d9581036', './RuntimeError-ef395448', './EllipsoidTangentPlane-546c0d5e', './AxisAlignedBoundingBox-4bfd84f3', './IntersectionTests-85350792', './Plane-4c3d403b'], (function (AttributeCompression, Matrix3, Color, defaultValue, IndexDatatype, Math$1, OrientedBoundingBox, Matrix2, createTaskProcessorWorker, ComponentDatatype, Check, WebGLConstants, Transforms, combine, RuntimeError, EllipsoidTangentPlane, AxisAlignedBoundingBox, IntersectionTests, Plane) { 'use strict';
1
+ define(['./AttributeCompression-f9f6c717', './Matrix3-41c58dde', './Color-571a6085', './defaultValue-fe22d8c0', './IndexDatatype-2643aa47', './Math-0a2ac845', './OrientedBoundingBox-6b94d955', './Matrix2-e1298525', './createTaskProcessorWorker', './ComponentDatatype-cf1fa08e', './Check-6ede7e26', './WebGLConstants-0b1ce7ba', './Transforms-b527bb09', './combine-d9581036', './RuntimeError-ef395448', './EllipsoidTangentPlane-65d41b3e', './AxisAlignedBoundingBox-a03420b1', './IntersectionTests-feace3da', './Plane-4c3d403b'], (function (AttributeCompression, Matrix3, Color, defaultValue, IndexDatatype, Math$1, OrientedBoundingBox, Matrix2, createTaskProcessorWorker, ComponentDatatype, Check, WebGLConstants, Transforms, combine, RuntimeError, EllipsoidTangentPlane, AxisAlignedBoundingBox, IntersectionTests, Plane) { 'use strict';
2
2
 
3
3
  const scratchCenter = new Matrix3.Cartesian3();
4
4
  const scratchEllipsoid = new Matrix3.Ellipsoid();
@@ -1,4 +1,4 @@
1
- define(['./AxisAlignedBoundingBox-4bfd84f3', './Transforms-e2d4a55a', './Matrix2-e1298525', './Matrix3-41c58dde', './defaultValue-fe22d8c0', './TerrainEncoding-c8e029a2', './Math-0a2ac845', './OrientedBoundingBox-29fb0fcd', './RuntimeError-ef395448', './WebMercatorProjection-13ed1a6e', './createTaskProcessorWorker', './Check-6ede7e26', './combine-d9581036', './AttributeCompression-f9f6c717', './ComponentDatatype-cf1fa08e', './WebGLConstants-0b1ce7ba', './EllipsoidTangentPlane-546c0d5e', './IntersectionTests-85350792', './Plane-4c3d403b'], (function (AxisAlignedBoundingBox, Transforms, Matrix2, Matrix3, defaultValue, TerrainEncoding, Math$1, OrientedBoundingBox, RuntimeError, WebMercatorProjection, createTaskProcessorWorker, Check, combine, AttributeCompression, ComponentDatatype, WebGLConstants, EllipsoidTangentPlane, IntersectionTests, Plane) { 'use strict';
1
+ define(['./AxisAlignedBoundingBox-a03420b1', './Transforms-b527bb09', './Matrix2-e1298525', './Matrix3-41c58dde', './defaultValue-fe22d8c0', './TerrainEncoding-528e1d68', './Math-0a2ac845', './OrientedBoundingBox-6b94d955', './RuntimeError-ef395448', './WebMercatorProjection-13ed1a6e', './createTaskProcessorWorker', './Check-6ede7e26', './combine-d9581036', './AttributeCompression-f9f6c717', './ComponentDatatype-cf1fa08e', './WebGLConstants-0b1ce7ba', './EllipsoidTangentPlane-65d41b3e', './IntersectionTests-feace3da', './Plane-4c3d403b'], (function (AxisAlignedBoundingBox, Transforms, Matrix2, Matrix3, defaultValue, TerrainEncoding, Math$1, OrientedBoundingBox, RuntimeError, WebMercatorProjection, createTaskProcessorWorker, Check, combine, AttributeCompression, ComponentDatatype, WebGLConstants, EllipsoidTangentPlane, IntersectionTests, Plane) { 'use strict';
2
2
 
3
3
  const sizeOfUint16 = Uint16Array.BYTES_PER_ELEMENT;
4
4
  const sizeOfInt32 = Int32Array.BYTES_PER_ELEMENT;
@@ -1,4 +1,4 @@
1
- define(['./Matrix3-41c58dde', './AxisAlignedBoundingBox-4bfd84f3', './Transforms-e2d4a55a', './Matrix2-e1298525', './defaultValue-fe22d8c0', './Check-6ede7e26', './TerrainEncoding-c8e029a2', './Math-0a2ac845', './OrientedBoundingBox-29fb0fcd', './WebMercatorProjection-13ed1a6e', './RuntimeError-ef395448', './createTaskProcessorWorker', './combine-d9581036', './AttributeCompression-f9f6c717', './ComponentDatatype-cf1fa08e', './WebGLConstants-0b1ce7ba', './EllipsoidTangentPlane-546c0d5e', './IntersectionTests-85350792', './Plane-4c3d403b'], (function (Matrix3, AxisAlignedBoundingBox, Transforms, Matrix2, defaultValue, Check, TerrainEncoding, Math$1, OrientedBoundingBox, WebMercatorProjection, RuntimeError, createTaskProcessorWorker, combine, AttributeCompression, ComponentDatatype, WebGLConstants, EllipsoidTangentPlane, IntersectionTests, Plane) { 'use strict';
1
+ define(['./Matrix3-41c58dde', './AxisAlignedBoundingBox-a03420b1', './Transforms-b527bb09', './Matrix2-e1298525', './defaultValue-fe22d8c0', './Check-6ede7e26', './TerrainEncoding-528e1d68', './Math-0a2ac845', './OrientedBoundingBox-6b94d955', './WebMercatorProjection-13ed1a6e', './RuntimeError-ef395448', './createTaskProcessorWorker', './combine-d9581036', './AttributeCompression-f9f6c717', './ComponentDatatype-cf1fa08e', './WebGLConstants-0b1ce7ba', './EllipsoidTangentPlane-65d41b3e', './IntersectionTests-feace3da', './Plane-4c3d403b'], (function (Matrix3, AxisAlignedBoundingBox, Transforms, Matrix2, defaultValue, Check, TerrainEncoding, Math$1, OrientedBoundingBox, WebMercatorProjection, RuntimeError, createTaskProcessorWorker, combine, AttributeCompression, ComponentDatatype, WebGLConstants, EllipsoidTangentPlane, IntersectionTests, Plane) { 'use strict';
2
2
 
3
3
  /**
4
4
  * The encoding that is used for a heightmap
@@ -1,4 +1,4 @@
1
- define(['./AxisAlignedBoundingBox-4bfd84f3', './Matrix2-e1298525', './Matrix3-41c58dde', './defaultValue-fe22d8c0', './TerrainEncoding-c8e029a2', './IndexDatatype-2643aa47', './Math-0a2ac845', './Check-6ede7e26', './Transforms-e2d4a55a', './WebMercatorProjection-13ed1a6e', './createTaskProcessorWorker', './RuntimeError-ef395448', './AttributeCompression-f9f6c717', './ComponentDatatype-cf1fa08e', './WebGLConstants-0b1ce7ba', './combine-d9581036'], (function (AxisAlignedBoundingBox, Matrix2, Matrix3, defaultValue, TerrainEncoding, IndexDatatype, Math$1, Check, Transforms, WebMercatorProjection, createTaskProcessorWorker, RuntimeError, AttributeCompression, ComponentDatatype, WebGLConstants, combine) { 'use strict';
1
+ define(['./AxisAlignedBoundingBox-a03420b1', './Matrix2-e1298525', './Matrix3-41c58dde', './defaultValue-fe22d8c0', './TerrainEncoding-528e1d68', './IndexDatatype-2643aa47', './Math-0a2ac845', './Check-6ede7e26', './Transforms-b527bb09', './WebMercatorProjection-13ed1a6e', './createTaskProcessorWorker', './RuntimeError-ef395448', './AttributeCompression-f9f6c717', './ComponentDatatype-cf1fa08e', './WebGLConstants-0b1ce7ba', './combine-d9581036'], (function (AxisAlignedBoundingBox, Matrix2, Matrix3, defaultValue, TerrainEncoding, IndexDatatype, Math$1, Check, Transforms, WebMercatorProjection, createTaskProcessorWorker, RuntimeError, AttributeCompression, ComponentDatatype, WebGLConstants, combine) { 'use strict';
2
2
 
3
3
  /**
4
4
  * Provides terrain or other geometry for the surface of an ellipsoid. The surface geometry is
@@ -1,4 +1,4 @@
1
- define(['./defaultValue-fe22d8c0', './Matrix3-41c58dde', './Transforms-e2d4a55a', './ComponentDatatype-cf1fa08e', './Check-6ede7e26', './GeometryAttribute-13da9466', './GeometryAttributes-ad136444', './IndexDatatype-2643aa47', './Math-0a2ac845', './VertexFormat-030f11ff', './WallGeometryLibrary-3e0819ec', './Matrix2-e1298525', './RuntimeError-ef395448', './combine-d9581036', './WebGLConstants-0b1ce7ba', './arrayRemoveDuplicates-d2061e85', './PolylinePipeline-7119eb3f', './EllipsoidGeodesic-5b3623dc', './EllipsoidRhumbLine-ef872433', './IntersectionTests-85350792', './Plane-4c3d403b'], (function (defaultValue, Matrix3, Transforms, ComponentDatatype, Check, GeometryAttribute, GeometryAttributes, IndexDatatype, Math, VertexFormat, WallGeometryLibrary, Matrix2, RuntimeError, combine, WebGLConstants, arrayRemoveDuplicates, PolylinePipeline, EllipsoidGeodesic, EllipsoidRhumbLine, IntersectionTests, Plane) { 'use strict';
1
+ define(['./defaultValue-fe22d8c0', './Matrix3-41c58dde', './Transforms-b527bb09', './ComponentDatatype-cf1fa08e', './Check-6ede7e26', './GeometryAttribute-a5b6275b', './GeometryAttributes-ad136444', './IndexDatatype-2643aa47', './Math-0a2ac845', './VertexFormat-030f11ff', './WallGeometryLibrary-faf583f8', './Matrix2-e1298525', './RuntimeError-ef395448', './combine-d9581036', './WebGLConstants-0b1ce7ba', './arrayRemoveDuplicates-d2061e85', './PolylinePipeline-83410f0c', './EllipsoidGeodesic-5b3623dc', './EllipsoidRhumbLine-ef872433', './IntersectionTests-feace3da', './Plane-4c3d403b'], (function (defaultValue, Matrix3, Transforms, ComponentDatatype, Check, GeometryAttribute, GeometryAttributes, IndexDatatype, Math, VertexFormat, WallGeometryLibrary, Matrix2, RuntimeError, combine, WebGLConstants, arrayRemoveDuplicates, PolylinePipeline, EllipsoidGeodesic, EllipsoidRhumbLine, IntersectionTests, Plane) { 'use strict';
2
2
 
3
3
  const scratchCartesian3Position1 = new Matrix3.Cartesian3();
4
4
  const scratchCartesian3Position2 = new Matrix3.Cartesian3();
@@ -1,4 +1,4 @@
1
- define(['./defaultValue-fe22d8c0', './Matrix3-41c58dde', './Transforms-e2d4a55a', './ComponentDatatype-cf1fa08e', './Check-6ede7e26', './GeometryAttribute-13da9466', './GeometryAttributes-ad136444', './IndexDatatype-2643aa47', './Math-0a2ac845', './WallGeometryLibrary-3e0819ec', './Matrix2-e1298525', './RuntimeError-ef395448', './combine-d9581036', './WebGLConstants-0b1ce7ba', './arrayRemoveDuplicates-d2061e85', './PolylinePipeline-7119eb3f', './EllipsoidGeodesic-5b3623dc', './EllipsoidRhumbLine-ef872433', './IntersectionTests-85350792', './Plane-4c3d403b'], (function (defaultValue, Matrix3, Transforms, ComponentDatatype, Check, GeometryAttribute, GeometryAttributes, IndexDatatype, Math, WallGeometryLibrary, Matrix2, RuntimeError, combine, WebGLConstants, arrayRemoveDuplicates, PolylinePipeline, EllipsoidGeodesic, EllipsoidRhumbLine, IntersectionTests, Plane) { 'use strict';
1
+ define(['./defaultValue-fe22d8c0', './Matrix3-41c58dde', './Transforms-b527bb09', './ComponentDatatype-cf1fa08e', './Check-6ede7e26', './GeometryAttribute-a5b6275b', './GeometryAttributes-ad136444', './IndexDatatype-2643aa47', './Math-0a2ac845', './WallGeometryLibrary-faf583f8', './Matrix2-e1298525', './RuntimeError-ef395448', './combine-d9581036', './WebGLConstants-0b1ce7ba', './arrayRemoveDuplicates-d2061e85', './PolylinePipeline-83410f0c', './EllipsoidGeodesic-5b3623dc', './EllipsoidRhumbLine-ef872433', './IntersectionTests-feace3da', './Plane-4c3d403b'], (function (defaultValue, Matrix3, Transforms, ComponentDatatype, Check, GeometryAttribute, GeometryAttributes, IndexDatatype, Math, WallGeometryLibrary, Matrix2, RuntimeError, combine, WebGLConstants, arrayRemoveDuplicates, PolylinePipeline, EllipsoidGeodesic, EllipsoidRhumbLine, IntersectionTests, Plane) { 'use strict';
2
2
 
3
3
  const scratchCartesian3Position1 = new Matrix3.Cartesian3();
4
4
  const scratchCartesian3Position2 = new Matrix3.Cartesian3();
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.107
4
+ * Version 1.108
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -1001,6 +1001,12 @@ define(['./defaultValue-fe22d8c0', './Check-6ede7e26', './WebGLConstants-0b1ce7b
1001
1001
  return value;
1002
1002
  }
1003
1003
 
1004
+ _nextUint8Array(len) {
1005
+ const value = new Uint8Array(this._dataView.buffer, this._dataView.byteOffset + this._offset, len);
1006
+ this._offset += len;
1007
+ return value;
1008
+ }
1009
+
1004
1010
  _skip(bytes) {
1005
1011
  this._offset += bytes;
1006
1012
  return this;
@@ -1165,12 +1171,17 @@ define(['./defaultValue-fe22d8c0', './Check-6ede7e26', './WebGLConstants-0b1ce7b
1165
1171
  const keyData = kvdReader._scan(keyValueByteLength);
1166
1172
 
1167
1173
  const key = decodeText(keyData);
1174
+ container.keyValue[key] = kvdReader._nextUint8Array(keyValueByteLength - keyData.byteLength - 1);
1168
1175
 
1169
- const valueData = kvdReader._scan(keyValueByteLength - keyData.byteLength);
1176
+ if (key.match(/^ktx/i)) {
1177
+ const text = decodeText(container.keyValue[key]);
1178
+ container.keyValue[key] = text.substring(0, text.lastIndexOf('\x00'));
1179
+ }
1170
1180
 
1171
- container.keyValue[key] = key.match(/^ktx/i) ? decodeText(valueData) : valueData; // 4-byte alignment.
1181
+ const kvPadding = keyValueByteLength % 4 ? 4 - keyValueByteLength % 4 : 0; // align(4)
1182
+ // 4-byte alignment.
1172
1183
 
1173
- if (kvdReader._offset % 4) kvdReader._skip(4 - kvdReader._offset % 4);
1184
+ kvdReader._skip(kvPadding);
1174
1185
  } ///////////////////////////////////////////////////
1175
1186
  // Supercompression Global Data (SGD).
1176
1187
  ///////////////////////////////////////////////////
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.107
4
+ * Version 1.108
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -1,4 +1,4 @@
1
- define(['./AttributeCompression-f9f6c717', './Transforms-e2d4a55a', './Matrix2-e1298525', './Matrix3-41c58dde', './defaultValue-fe22d8c0', './TerrainEncoding-c8e029a2', './IndexDatatype-2643aa47', './Check-6ede7e26', './Math-0a2ac845', './OrientedBoundingBox-29fb0fcd', './createTaskProcessorWorker', './ComponentDatatype-cf1fa08e', './WebGLConstants-0b1ce7ba', './combine-d9581036', './RuntimeError-ef395448', './EllipsoidTangentPlane-546c0d5e', './AxisAlignedBoundingBox-4bfd84f3', './IntersectionTests-85350792', './Plane-4c3d403b'], (function (AttributeCompression, Transforms, Matrix2, Matrix3, defaultValue, TerrainEncoding, IndexDatatype, Check, Math$1, OrientedBoundingBox, createTaskProcessorWorker, ComponentDatatype, WebGLConstants, combine, RuntimeError, EllipsoidTangentPlane, AxisAlignedBoundingBox, IntersectionTests, Plane) { 'use strict';
1
+ define(['./AttributeCompression-f9f6c717', './Transforms-b527bb09', './Matrix2-e1298525', './Matrix3-41c58dde', './defaultValue-fe22d8c0', './TerrainEncoding-528e1d68', './IndexDatatype-2643aa47', './Check-6ede7e26', './Math-0a2ac845', './OrientedBoundingBox-6b94d955', './createTaskProcessorWorker', './ComponentDatatype-cf1fa08e', './WebGLConstants-0b1ce7ba', './combine-d9581036', './RuntimeError-ef395448', './EllipsoidTangentPlane-65d41b3e', './AxisAlignedBoundingBox-a03420b1', './IntersectionTests-feace3da', './Plane-4c3d403b'], (function (AttributeCompression, Transforms, Matrix2, Matrix3, defaultValue, TerrainEncoding, IndexDatatype, Check, Math$1, OrientedBoundingBox, createTaskProcessorWorker, ComponentDatatype, WebGLConstants, combine, RuntimeError, EllipsoidTangentPlane, AxisAlignedBoundingBox, IntersectionTests, Plane) { 'use strict';
2
2
 
3
3
  /**
4
4
  * Contains functions for operating on 2D triangles.
@@ -867,7 +867,8 @@ CesiumTerrainProvider.prototype.requestTileGeometry = function (
867
867
  // Optimized path for single layers
868
868
  layerToUse = layers[0];
869
869
  } else {
870
- for (let i = 0; i < layerCount; ++i) {
870
+ // Use the last layer where terrain data is available as it should be the most up-to-date
871
+ for (let i = layerCount - 1; i >= 0; --i) {
871
872
  const layer = layers[i];
872
873
  if (
873
874
  !defined(layer.availability) ||
@@ -260,7 +260,7 @@ Geometry._textureCoordinateRotationPoints = function (
260
260
 
261
261
  // Create a local east-north-up coordinate system centered on the polygon's bounding rectangle.
262
262
  // Project the southwest, northwest, and southeast corners of the bounding rectangle into the plane of ENU as 2D points.
263
- // These are the equivalents of (0,0), (0,1), and (1,0) in the texture coordiante system computed in ShadowVolumeAppearanceFS,
263
+ // These are the equivalents of (0,0), (0,1), and (1,0) in the texture coordinate system computed in ShadowVolumeAppearanceFS,
264
264
  // aka "ENU texture space."
265
265
  const rectangleCenter = Rectangle.center(
266
266
  boundingRectangle,
@@ -3,7 +3,7 @@ import defined from "./defined.js";
3
3
  import Resource from "./Resource.js";
4
4
 
5
5
  let defaultKeyCredit;
6
- const defaultKey = "AIzaSyCUMejKrafNiN2PiqvWNPxQJBuDRg-VqKQ";
6
+ const defaultKey = "AIzaSyDG4malBzpWiOoWpAm9q2OXvt_plH-NxcM";
7
7
 
8
8
  /**
9
9
  * Default settings for accessing the Google Maps API.
@@ -1477,8 +1477,9 @@ function generateGeometryAttributes(
1477
1477
  const minHeight = minMaxHeights.minimumTerrainHeight;
1478
1478
  const maxHeight = minMaxHeights.maximumTerrainHeight;
1479
1479
 
1480
- sumHeights += minHeight;
1481
- sumHeights += maxHeight;
1480
+ // Sum using abs() to properly account for negative eleavtions in calculating bounding sphere radius
1481
+ sumHeights += Math.abs(minHeight);
1482
+ sumHeights += Math.abs(maxHeight);
1482
1483
 
1483
1484
  adjustHeights(
1484
1485
  startBottom,
@@ -4,7 +4,7 @@ import Resource from "./Resource.js";
4
4
 
5
5
  let defaultTokenCredit;
6
6
  const defaultAccessToken =
7
- "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJhYzVkMTc1ZS00NTRhLTRjY2QtYTQwZS01YmU2Mjg1ODAwN2YiLCJpZCI6MjU5LCJpYXQiOjE2ODgzOTgwMjl9.MZC_HUBRd0y5HJeB-F5QSpT-fEgTM6mI5gMaSND9FHc";
7
+ "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJkNDE4MTdhNy0yYjYzLTQwNjktODJiMy0xMWU2MjI4MTA4ODQiLCJpZCI6MjU5LCJpYXQiOjE2OTA5MDkwMjZ9.G-iUU-kiQeQx74_iQdhyc5IUrVbIIFDhFx7RFn94LaQ";
8
8
  /**
9
9
  * Default settings for accessing the Cesium ion API.
10
10
  *
@@ -83,6 +83,7 @@ RequestScheduler.requestsByServer = {
83
83
  "assets.ion.cesium.com:443": 18,
84
84
  "ibasemaps-api.arcgis.com:443": 18,
85
85
  "tile.googleapis.com:443": 18,
86
+ "tile.openstreetmap.org:443": 18,
86
87
  };
87
88
 
88
89
  /**
@@ -1822,11 +1822,13 @@ function processPositionArrayPacketData(
1822
1822
  packetData.array = Cartesian3.unpackArray(packetData.cartesian);
1823
1823
  } else if (defined(packetData.cartographicRadians)) {
1824
1824
  packetData.array = Cartesian3.fromRadiansArrayHeights(
1825
- packetData.cartographicRadians
1825
+ packetData.cartographicRadians,
1826
+ Ellipsoid.WGS84
1826
1827
  );
1827
1828
  } else if (defined(packetData.cartographicDegrees)) {
1828
1829
  packetData.array = Cartesian3.fromDegreesArrayHeights(
1829
- packetData.cartographicDegrees
1830
+ packetData.cartographicDegrees,
1831
+ Ellipsoid.WGS84
1830
1832
  );
1831
1833
  }
1832
1834
 
@@ -1878,11 +1880,11 @@ function unpackCartesianArray(array) {
1878
1880
  }
1879
1881
 
1880
1882
  function unpackCartographicRadiansArray(array) {
1881
- return Cartesian3.fromRadiansArrayHeights(array);
1883
+ return Cartesian3.fromRadiansArrayHeights(array, Ellipsoid.WGS84);
1882
1884
  }
1883
1885
 
1884
1886
  function unpackCartographicDegreesArray(array) {
1885
- return Cartesian3.fromDegreesArrayHeights(array);
1887
+ return Cartesian3.fromDegreesArrayHeights(array, Ellipsoid.WGS84);
1886
1888
  }
1887
1889
 
1888
1890
  function processPositionArrayOfArraysPacketData(
@@ -4,7 +4,7 @@ import Resource from "../Core/Resource.js";
4
4
 
5
5
  let defaultTokenCredit;
6
6
  const defaultAccessToken =
7
- "AAPKe9643f5cea8f4275ba46e736fb001c17RVC2Pgh8SSg5tv_mxXnV5iUDfZ_yly3gPgY7_O_e_hzG7Vj3si9fO0YZ3wpeHA7h";
7
+ "AAPK8f33c81975d04fa5bc64d58baa922e4d8t7EX1YAV3MBqwKXAhJ1uohub5U5OCU0PyXE7kNEVf8hebc9ZA4kk17Y4FYDA_rV";
8
8
  /**
9
9
  * Default options for accessing the ArcGIS image tile service.
10
10
  *
@@ -1,5 +1,14 @@
1
1
  import Check from "../Core/Check.js";
2
2
  import defined from "../Core/defined.js";
3
+ import DeveloperError from "../Core/DeveloperError.js";
4
+
5
+ /**
6
+ * Utilities for parsing bounding volume semantics from 3D Tiles 1.1 metadata.
7
+ *
8
+ * @namespace BoundingVolumeSemantics
9
+ * @private
10
+ */
11
+ const BoundingVolumeSemantics = {};
3
12
 
4
13
  /**
5
14
  * Parse the bounding volume-related semantics such as
@@ -19,24 +28,44 @@ import defined from "../Core/defined.js";
19
28
  * @private
20
29
  * @experimental This feature is using part of the 3D Tiles spec that is not final and is subject to change without Cesium's standard deprecation policy.
21
30
  */
22
- function parseBoundingVolumeSemantics(tileMetadata) {
31
+ BoundingVolumeSemantics.parseAllBoundingVolumeSemantics = function (
32
+ tileMetadata
33
+ ) {
23
34
  //>>includeStart('debug', pragmas.debug);
24
35
  Check.typeOf.object("tileMetadata", tileMetadata);
25
36
  //>>includeEnd('debug');
26
37
 
27
38
  return {
28
39
  tile: {
29
- boundingVolume: parseBoundingVolume("TILE", tileMetadata),
30
- minimumHeight: parseMinimumHeight("TILE", tileMetadata),
31
- maximumHeight: parseMaximumHeight("TILE", tileMetadata),
40
+ boundingVolume: BoundingVolumeSemantics.parseBoundingVolumeSemantic(
41
+ "TILE",
42
+ tileMetadata
43
+ ),
44
+ minimumHeight: BoundingVolumeSemantics._parseMinimumHeight(
45
+ "TILE",
46
+ tileMetadata
47
+ ),
48
+ maximumHeight: BoundingVolumeSemantics._parseMaximumHeight(
49
+ "TILE",
50
+ tileMetadata
51
+ ),
32
52
  },
33
53
  content: {
34
- boundingVolume: parseBoundingVolume("CONTENT", tileMetadata),
35
- minimumHeight: parseMinimumHeight("CONTENT", tileMetadata),
36
- maximumHeight: parseMaximumHeight("CONTENT", tileMetadata),
54
+ boundingVolume: BoundingVolumeSemantics.parseBoundingVolumeSemantic(
55
+ "CONTENT",
56
+ tileMetadata
57
+ ),
58
+ minimumHeight: BoundingVolumeSemantics._parseMinimumHeight(
59
+ "CONTENT",
60
+ tileMetadata
61
+ ),
62
+ maximumHeight: BoundingVolumeSemantics._parseMaximumHeight(
63
+ "CONTENT",
64
+ tileMetadata
65
+ ),
37
66
  },
38
67
  };
39
- }
68
+ };
40
69
 
41
70
  /**
42
71
  * Parse the bounding volume from a tile metadata. If the metadata specify
@@ -52,7 +81,18 @@ function parseBoundingVolumeSemantics(tileMetadata) {
52
81
  * @return {object} An object representing the JSON description of the tile metadata
53
82
  * @private
54
83
  */
55
- function parseBoundingVolume(prefix, tileMetadata) {
84
+ BoundingVolumeSemantics.parseBoundingVolumeSemantic = function (
85
+ prefix,
86
+ tileMetadata
87
+ ) {
88
+ //>>includeStart('debug', pragmas.debug);
89
+ Check.typeOf.string("prefix", prefix);
90
+ if (prefix !== "TILE" && prefix !== "CONTENT") {
91
+ throw new DeveloperError("prefix must be either 'TILE' or 'CONTENT'");
92
+ }
93
+ Check.typeOf.object("tileMetadata", tileMetadata);
94
+ //>>includeEnd('debug');
95
+
56
96
  const boundingBoxSemantic = `${prefix}_BOUNDING_BOX`;
57
97
  const boundingBox = tileMetadata.getPropertyBySemantic(boundingBoxSemantic);
58
98
 
@@ -86,7 +126,7 @@ function parseBoundingVolume(prefix, tileMetadata) {
86
126
  }
87
127
 
88
128
  return undefined;
89
- }
129
+ };
90
130
 
91
131
  /**
92
132
  * Parse the minimum height from tile metadata. This is used for making tighter
@@ -98,10 +138,18 @@ function parseBoundingVolume(prefix, tileMetadata) {
98
138
  * @return {number} The minimum height
99
139
  * @private
100
140
  */
101
- function parseMinimumHeight(prefix, tileMetadata) {
141
+ BoundingVolumeSemantics._parseMinimumHeight = function (prefix, tileMetadata) {
142
+ //>>includeStart('debug', pragmas.debug);
143
+ Check.typeOf.string("prefix", prefix);
144
+ if (prefix !== "TILE" && prefix !== "CONTENT") {
145
+ throw new DeveloperError("prefix must be either 'TILE' or 'CONTENT'");
146
+ }
147
+ Check.typeOf.object("tileMetadata", tileMetadata);
148
+ //>>includeEnd('debug');
149
+
102
150
  const minimumHeightSemantic = `${prefix}_MINIMUM_HEIGHT`;
103
151
  return tileMetadata.getPropertyBySemantic(minimumHeightSemantic);
104
- }
152
+ };
105
153
 
106
154
  /**
107
155
  * Parse the maximum height from tile metadata. This is used for making tighter
@@ -113,9 +161,17 @@ function parseMinimumHeight(prefix, tileMetadata) {
113
161
  * @return {number} The maximum height
114
162
  * @private
115
163
  */
116
- function parseMaximumHeight(prefix, tileMetadata) {
164
+ BoundingVolumeSemantics._parseMaximumHeight = function (prefix, tileMetadata) {
165
+ //>>includeStart('debug', pragmas.debug);
166
+ Check.typeOf.string("prefix", prefix);
167
+ if (prefix !== "TILE" && prefix !== "CONTENT") {
168
+ throw new DeveloperError("prefix must be either 'TILE' or 'CONTENT'");
169
+ }
170
+ Check.typeOf.object("tileMetadata", tileMetadata);
171
+ //>>includeEnd('debug');
172
+
117
173
  const maximumHeightSemantic = `${prefix}_MAXIMUM_HEIGHT`;
118
174
  return tileMetadata.getPropertyBySemantic(maximumHeightSemantic);
119
- }
175
+ };
120
176
 
121
- export default parseBoundingVolumeSemantics;
177
+ export default BoundingVolumeSemantics;
@@ -35,6 +35,7 @@ import findGroupMetadata from "./findGroupMetadata.js";
35
35
  import findTileMetadata from "./findTileMetadata.js";
36
36
  import hasExtension from "./hasExtension.js";
37
37
  import Multiple3DTileContent from "./Multiple3DTileContent.js";
38
+ import BoundingVolumeSemantics from "./BoundingVolumeSemantics.js";
38
39
  import preprocess3DTileContent from "./preprocess3DTileContent.js";
39
40
  import SceneMode from "./SceneMode.js";
40
41
  import TileBoundingRegion from "./TileBoundingRegion.js";
@@ -107,6 +108,20 @@ function Cesium3DTile(tileset, baseResource, header, parent) {
107
108
  */
108
109
  this.computedTransform = computedTransform;
109
110
 
111
+ /**
112
+ * When tile metadata is present (3D Tiles 1.1) or the <code>3DTILES_metadata</code> extension is used,
113
+ * this stores a {@link TileMetadata} object for accessing tile metadata.
114
+ *
115
+ * @type {TileMetadata}
116
+ * @readonly
117
+ * @private
118
+ * @experimental This feature is using part of the 3D Tiles spec that is not final and is subject to change without Cesium's standard deprecation policy.
119
+ */
120
+ this.metadata = findTileMetadata(tileset, header);
121
+
122
+ // Important: tile metadata must be parsed before this line so that the
123
+ // metadata semantics TILE_BOUNDING_BOX, TILE_BOUNDING_REGION, or TILE_BOUNDING_SPHERE
124
+ // can override header.boundingVolume (if necessary)
110
125
  this._boundingVolume = this.createBoundingVolume(
111
126
  header.boundingVolume,
112
127
  computedTransform
@@ -328,17 +343,6 @@ function Cesium3DTile(tileset, baseResource, header, parent) {
328
343
  */
329
344
  this.hasMultipleContents = hasMultipleContents;
330
345
 
331
- /**
332
- * When tile metadata is present (3D Tiles 1.1) or the <code>3DTILES_metadata</code> extension is used,
333
- * this stores a {@link TileMetadata} object for accessing tile metadata.
334
- *
335
- * @type {TileMetadata}
336
- * @readonly
337
- * @private
338
- * @experimental This feature is using part of the 3D Tiles spec that is not final and is subject to change without Cesium's standard deprecation policy.
339
- */
340
- this.metadata = findTileMetadata(tileset, header);
341
-
342
346
  /**
343
347
  * The node in the tileset's LRU cache, used to determine when to unload a tile's content.
344
348
  *
@@ -1763,6 +1767,20 @@ Cesium3DTile.prototype.createBoundingVolume = function (
1763
1767
  transform,
1764
1768
  result
1765
1769
  ) {
1770
+ // if explicit tile metadata includes TILE_BOUNDING_BOX, TILE_BOUNDING_REGION,
1771
+ // or TILE_BOUNDING_SPHERE, override tile.boundingVolume.
1772
+ const tileMetadata = this.metadata;
1773
+ let metadataBoundingVolumeHeader;
1774
+ if (defined(tileMetadata)) {
1775
+ metadataBoundingVolumeHeader = BoundingVolumeSemantics.parseBoundingVolumeSemantic(
1776
+ "TILE",
1777
+ tileMetadata
1778
+ );
1779
+ }
1780
+ if (defined(metadataBoundingVolumeHeader)) {
1781
+ boundingVolumeHeader = metadataBoundingVolumeHeader;
1782
+ }
1783
+
1766
1784
  if (!defined(boundingVolumeHeader)) {
1767
1785
  throw new RuntimeError("boundingVolume must be defined");
1768
1786
  }
@@ -2003,8 +2021,8 @@ function updateContent(tile, tileset, frameState) {
2003
2021
  * - clipping function (union v. intersection)
2004
2022
 
2005
2023
  * @private
2006
- * @param {Cesium3DTile} tile
2007
- * @param {Cesium3DTileset} tileset
2024
+ * @param {Cesium3DTile} tile
2025
+ * @param {Cesium3DTileset} tileset
2008
2026
  */
2009
2027
  function updateClippingPlanes(tile, tileset) {
2010
2028
  const clippingPlanes = tileset.clippingPlanes;
@@ -103,14 +103,8 @@ GltfLoaderUtil.createSampler = function (options) {
103
103
  magFilter = defaultValue(sampler.magFilter, magFilter);
104
104
  }
105
105
 
106
- let usesTextureTransform = false;
107
- const extensions = textureInfo.extensions;
108
- if (defined(extensions) && defined(extensions.KHR_texture_transform)) {
109
- usesTextureTransform = true;
110
- }
111
-
112
106
  if (
113
- (compressedTextureNoMipmap || usesTextureTransform) &&
107
+ compressedTextureNoMipmap &&
114
108
  minFilter !== TextureMinificationFilter.LINEAR &&
115
109
  minFilter !== TextureMinificationFilter.NEAREST
116
110
  ) {
@@ -140,8 +140,8 @@ import TileImagery from "./TileImagery.js";
140
140
  *
141
141
  * @example
142
142
  * // Add an OpenStreetMaps layer
143
- * const imageryLayer = new Cesium.ImageryLayer(OpenStreetMapImageryProvider({
144
- * url: "https://a.tile.openstreetmap.org/"
143
+ * const imageryLayer = new Cesium.ImageryLayer(new Cesium.OpenStreetMapImageryProvider({
144
+ * url: "https://tile.openstreetmap.org/"
145
145
  * })),
146
146
  * scene.imageryLayers.add(imageryLayer);
147
147
  *
@@ -14,7 +14,7 @@ import S2Cell from "../Core/S2Cell.js";
14
14
  import ImplicitSubtree from "./ImplicitSubtree.js";
15
15
  import hasExtension from "./hasExtension.js";
16
16
  import MetadataSemantic from "./MetadataSemantic.js";
17
- import parseBoundingVolumeSemantics from "./parseBoundingVolumeSemantics.js";
17
+ import BoundingVolumeSemantics from "./BoundingVolumeSemantics.js";
18
18
 
19
19
  /**
20
20
  * A specialized {@link Cesium3DTileContent} that lazily evaluates an implicit
@@ -465,7 +465,9 @@ function deriveChildTile(
465
465
  if (defined(subtree.tilePropertyTableJson)) {
466
466
  tileMetadata = subtree.getTileMetadataView(implicitCoordinates);
467
467
 
468
- const boundingVolumeSemantics = parseBoundingVolumeSemantics(tileMetadata);
468
+ const boundingVolumeSemantics = BoundingVolumeSemantics.parseAllBoundingVolumeSemantics(
469
+ tileMetadata
470
+ );
469
471
  tileBounds = boundingVolumeSemantics.tile;
470
472
  contentBounds = boundingVolumeSemantics.content;
471
473
  }