mars3d-cesium 1.133.2 → 1.134.0

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 (121) hide show
  1. package/Build/Cesium/Cesium.d.ts +317 -24
  2. package/Build/Cesium/Cesium.js +4691 -4681
  3. package/Build/Cesium/README.md +13 -0
  4. package/Build/Cesium/ThirdParty/Workers/zip-web-worker.js +1 -0
  5. package/Build/Cesium/ThirdParty/google-earth-dbroot-parser.js +1 -1
  6. package/Build/Cesium/ThirdParty/zip-module.wasm +0 -0
  7. package/Build/Cesium/Widgets/Images/ImageryProviders/googleContour.png +0 -0
  8. package/Build/Cesium/Widgets/Images/ImageryProviders/googleLabels.png +0 -0
  9. package/Build/Cesium/Widgets/Images/ImageryProviders/googleRoadmap.png +0 -0
  10. package/Build/Cesium/Widgets/Images/ImageryProviders/googleSatellite.png +0 -0
  11. package/Build/Cesium/Widgets/Images/ImageryProviders/googleSatelliteLabels.png +0 -0
  12. package/Build/Cesium/Workers/{chunk-NJT5VBT3.js → chunk-2JCPSPFZ.js} +2 -2
  13. package/Build/Cesium/Workers/{chunk-5WACMDJQ.js → chunk-32MO7V5T.js} +2 -2
  14. package/Build/Cesium/Workers/{chunk-HU3XCSCW.js → chunk-3HHF4FLI.js} +2 -2
  15. package/Build/Cesium/Workers/{chunk-QSBEFQ4F.js → chunk-3KJIOIAW.js} +2 -2
  16. package/Build/Cesium/Workers/{chunk-K7LLWBNJ.js → chunk-3LOSS6US.js} +2 -2
  17. package/Build/Cesium/Workers/{chunk-VLDV42YZ.js → chunk-3MSHXZ3R.js} +2 -2
  18. package/Build/Cesium/Workers/chunk-47HYUV57.js +26 -0
  19. package/Build/Cesium/Workers/{chunk-MPITALOH.js → chunk-4GXN2TLN.js} +2 -2
  20. package/Build/Cesium/Workers/{chunk-A6VUCLHN.js → chunk-4IBV4IJ2.js} +2 -2
  21. package/Build/Cesium/Workers/{chunk-LFEWZXYP.js → chunk-4SQ5VOGL.js} +2 -2
  22. package/Build/Cesium/Workers/{chunk-5ISKVHZE.js → chunk-4U44Y3LJ.js} +2 -2
  23. package/Build/Cesium/Workers/{chunk-IXJXM2U4.js → chunk-533CWN3S.js} +2 -2
  24. package/Build/Cesium/Workers/{chunk-AOU63PGD.js → chunk-5CEG2QXT.js} +2 -2
  25. package/Build/Cesium/Workers/chunk-6RNUBE7C.js +26 -0
  26. package/Build/Cesium/Workers/{chunk-PGRLXBGD.js → chunk-6Z4HPQBM.js} +2 -2
  27. package/Build/Cesium/Workers/{chunk-H5MHZH6P.js → chunk-AGFS5HXO.js} +2 -2
  28. package/Build/Cesium/Workers/{chunk-RLETINPU.js → chunk-ANK44TPE.js} +2 -2
  29. package/Build/Cesium/Workers/{chunk-JHQJZUYC.js → chunk-BFLWBYD7.js} +2 -2
  30. package/Build/Cesium/Workers/{chunk-YK6Q4ZLT.js → chunk-CC7D3NRR.js} +2 -2
  31. package/Build/Cesium/Workers/{chunk-TSCVBWG6.js → chunk-E25EHBNP.js} +2 -2
  32. package/Build/Cesium/Workers/{chunk-NU4HYD2L.js → chunk-F3WYPFWT.js} +2 -2
  33. package/Build/Cesium/Workers/{chunk-26JMB5EG.js → chunk-FMDYX22L.js} +2 -2
  34. package/Build/Cesium/Workers/{chunk-VRSY7XMN.js → chunk-G2YQOG6X.js} +2 -2
  35. package/Build/Cesium/Workers/{chunk-FM6NJIML.js → chunk-GBK5WL6O.js} +2 -2
  36. package/Build/Cesium/Workers/{chunk-QUD7TMKH.js → chunk-HL5XQX3U.js} +2 -2
  37. package/Build/Cesium/Workers/{chunk-PLLNGUDR.js → chunk-I5PTXW4X.js} +2 -2
  38. package/Build/Cesium/Workers/{chunk-U5ICFWQV.js → chunk-IS6TWZHW.js} +2 -2
  39. package/Build/Cesium/Workers/{chunk-2UIEEBAN.js → chunk-ITZ4CMQQ.js} +2 -2
  40. package/Build/Cesium/Workers/{chunk-QEWSVV5D.js → chunk-IX2ABJVZ.js} +1 -1
  41. package/Build/Cesium/Workers/{chunk-GM3O7MIS.js → chunk-KQ2WYAXZ.js} +1 -1
  42. package/Build/Cesium/Workers/{chunk-GFFNDPHK.js → chunk-MOZMRSMU.js} +2 -2
  43. package/Build/Cesium/Workers/{chunk-SPMVNJUF.js → chunk-N2Z3SETR.js} +2 -2
  44. package/Build/Cesium/Workers/{chunk-BJ452TA7.js → chunk-NESRFQPT.js} +2 -2
  45. package/Build/Cesium/Workers/{chunk-3H5MB2EO.js → chunk-NK7NRBX7.js} +2 -2
  46. package/Build/Cesium/Workers/{chunk-OKN5UZ7Q.js → chunk-OPXGNGJU.js} +2 -2
  47. package/Build/Cesium/Workers/{chunk-QJQQBZH2.js → chunk-Q7P2MJO5.js} +2 -2
  48. package/Build/Cesium/Workers/{chunk-MZ2NDMIB.js → chunk-RQDXHB4C.js} +2 -2
  49. package/Build/Cesium/Workers/chunk-SAO3WUFO.js +66 -0
  50. package/Build/Cesium/Workers/{chunk-W5POSMCN.js → chunk-TBEXBOWJ.js} +2 -2
  51. package/Build/Cesium/Workers/{chunk-VD6ECAIC.js → chunk-TOHTYCK3.js} +2 -2
  52. package/Build/Cesium/Workers/{chunk-JR7HYP6T.js → chunk-TWQXG26J.js} +1 -1
  53. package/Build/Cesium/Workers/{chunk-YDRG5X7A.js → chunk-UDPP7KSW.js} +1 -1
  54. package/Build/Cesium/Workers/{chunk-I3FYJ5IG.js → chunk-UGXOBMAM.js} +2 -2
  55. package/Build/Cesium/Workers/{chunk-NMCPHO6J.js → chunk-UNGJW75Z.js} +2 -2
  56. package/Build/Cesium/Workers/{chunk-Y4PFCRMK.js → chunk-URP2EK6R.js} +2 -2
  57. package/Build/Cesium/Workers/{chunk-VNVMHPJH.js → chunk-VIQLYDC6.js} +2 -2
  58. package/Build/Cesium/Workers/{chunk-62CQLB45.js → chunk-VISGUFDT.js} +2 -2
  59. package/Build/Cesium/Workers/{chunk-UJL35RP2.js → chunk-VWUEJJYN.js} +1 -1
  60. package/Build/Cesium/Workers/{chunk-DJKMCWX5.js → chunk-W3ZYCBIW.js} +2 -2
  61. package/Build/Cesium/Workers/{chunk-FUJYB47T.js → chunk-XD7WYY4D.js} +2 -2
  62. package/Build/Cesium/Workers/{chunk-J5DUVNRR.js → chunk-YO4HJAM4.js} +2 -2
  63. package/Build/Cesium/Workers/{chunk-U3MALRGE.js → chunk-ZEQMQTHI.js} +2 -2
  64. package/Build/Cesium/Workers/combineGeometry.js +2 -2
  65. package/Build/Cesium/Workers/createBoxGeometry.js +2 -2
  66. package/Build/Cesium/Workers/createBoxOutlineGeometry.js +2 -2
  67. package/Build/Cesium/Workers/createCircleGeometry.js +2 -2
  68. package/Build/Cesium/Workers/createCircleOutlineGeometry.js +2 -2
  69. package/Build/Cesium/Workers/createCoplanarPolygonGeometry.js +2 -2
  70. package/Build/Cesium/Workers/createCoplanarPolygonOutlineGeometry.js +2 -2
  71. package/Build/Cesium/Workers/createCorridorGeometry.js +2 -2
  72. package/Build/Cesium/Workers/createCorridorOutlineGeometry.js +2 -2
  73. package/Build/Cesium/Workers/createCylinderGeometry.js +2 -2
  74. package/Build/Cesium/Workers/createCylinderOutlineGeometry.js +2 -2
  75. package/Build/Cesium/Workers/createEllipseGeometry.js +2 -2
  76. package/Build/Cesium/Workers/createEllipseOutlineGeometry.js +2 -2
  77. package/Build/Cesium/Workers/createEllipsoidGeometry.js +2 -2
  78. package/Build/Cesium/Workers/createEllipsoidOutlineGeometry.js +2 -2
  79. package/Build/Cesium/Workers/createFrustumGeometry.js +2 -2
  80. package/Build/Cesium/Workers/createFrustumOutlineGeometry.js +2 -2
  81. package/Build/Cesium/Workers/createGeometry.js +2 -2
  82. package/Build/Cesium/Workers/createGroundPolylineGeometry.js +2 -2
  83. package/Build/Cesium/Workers/createPlaneGeometry.js +2 -2
  84. package/Build/Cesium/Workers/createPlaneOutlineGeometry.js +2 -2
  85. package/Build/Cesium/Workers/createPolygonGeometry.js +2 -2
  86. package/Build/Cesium/Workers/createPolygonOutlineGeometry.js +2 -2
  87. package/Build/Cesium/Workers/createPolylineGeometry.js +2 -2
  88. package/Build/Cesium/Workers/createPolylineVolumeGeometry.js +2 -2
  89. package/Build/Cesium/Workers/createPolylineVolumeOutlineGeometry.js +2 -2
  90. package/Build/Cesium/Workers/createRectangleGeometry.js +2 -2
  91. package/Build/Cesium/Workers/createRectangleOutlineGeometry.js +2 -2
  92. package/Build/Cesium/Workers/createSimplePolylineGeometry.js +2 -2
  93. package/Build/Cesium/Workers/createSphereGeometry.js +2 -2
  94. package/Build/Cesium/Workers/createSphereOutlineGeometry.js +2 -2
  95. package/Build/Cesium/Workers/createTaskProcessorWorker.js +2 -2
  96. package/Build/Cesium/Workers/createVectorTileClampedPolylines.js +2 -2
  97. package/Build/Cesium/Workers/createVectorTileGeometries.js +2 -2
  98. package/Build/Cesium/Workers/createVectorTilePoints.js +2 -2
  99. package/Build/Cesium/Workers/createVectorTilePolygons.js +2 -2
  100. package/Build/Cesium/Workers/createVectorTilePolylines.js +2 -2
  101. package/Build/Cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -2
  102. package/Build/Cesium/Workers/createVerticesFromHeightmap.js +2 -2
  103. package/Build/Cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +2 -2
  104. package/Build/Cesium/Workers/createWallGeometry.js +2 -2
  105. package/Build/Cesium/Workers/createWallOutlineGeometry.js +2 -2
  106. package/Build/Cesium/Workers/decodeDraco.js +2 -2
  107. package/Build/Cesium/Workers/decodeGoogleEarthEnterprisePacket.js +2 -2
  108. package/Build/Cesium/Workers/decodeI3S.js +2 -2
  109. package/Build/Cesium/Workers/gaussianSplatSorter.js +2 -2
  110. package/Build/Cesium/Workers/gaussianSplatTextureGenerator.js +2 -2
  111. package/Build/Cesium/Workers/transcodeKTX2.js +4 -4
  112. package/Build/Cesium/Workers/transferTypedArrayTest.js +1 -1
  113. package/Build/Cesium/Workers/upsampleQuantizedTerrainMesh.js +2 -2
  114. package/Build/Cesium/index.cjs +4796 -4786
  115. package/Build/Cesium/index.js +4781 -4771
  116. package/README.md +29 -30
  117. package/package.json +1 -1
  118. package/Build/Cesium/ThirdParty/Workers/z-worker-pako.js +0 -1
  119. package/Build/Cesium/Workers/chunk-HTW53N7A.js +0 -26
  120. package/Build/Cesium/Workers/chunk-LTGIIF63.js +0 -26
  121. package/Build/Cesium/Workers/chunk-YNUOUJTT.js +0 -66
@@ -5457,15 +5457,6 @@ export class DefaultProxy extends Proxy {
5457
5457
  getURL(resource: string): string;
5458
5458
  }
5459
5459
 
5460
- /**
5461
- * Returns the first parameter if not undefined, otherwise the second parameter.
5462
- Useful for setting a default value for a parameter.
5463
- * @example
5464
- * param = Cesium.defaultValue(param, 'default');
5465
- * @returns Returns the first parameter if not undefined, otherwise the second parameter.
5466
- */
5467
- export function defaultValue(a: any, b: any): any;
5468
-
5469
5460
  /**
5470
5461
  * @example
5471
5462
  * if (Cesium.defined(positions)) {
@@ -9095,7 +9086,7 @@ export class IonResource extends Resource {
9095
9086
  * @param [options] - An object with the following properties:
9096
9087
  * @param [options.accessToken = Ion.defaultAccessToken] - The access token to use.
9097
9088
  * @param [options.server = Ion.defaultServer] - The resource to the Cesium ion API server.
9098
- * @returns A Promise to am instance representing the Cesium ion Asset.
9089
+ * @returns A Promise to an instance representing the Cesium ion Asset.
9099
9090
  */
9100
9091
  static fromAssetId(assetId: number, options?: {
9101
9092
  accessToken?: string;
@@ -30657,12 +30648,12 @@ export class ClippingPlaneCollection {
30657
30648
  * An event triggered when a new clipping plane is added to the collection. Event handlers
30658
30649
  are passed the new plane and the index at which it was added.
30659
30650
  */
30660
- planeAdded: Event;
30651
+ readonly planeAdded: Event;
30661
30652
  /**
30662
30653
  * An event triggered when a new clipping plane is removed from the collection. Event handlers
30663
30654
  are passed the new plane and the index from which it was removed.
30664
30655
  */
30665
- planeRemoved: Event;
30656
+ readonly planeRemoved: Event;
30666
30657
  /**
30667
30658
  * Returns the number of planes in this collection. This is commonly used with
30668
30659
  {@link ClippingPlaneCollection#get} to iterate over all the planes
@@ -30802,6 +30793,33 @@ export class ClippingPolygon {
30802
30793
  computeRectangle(result?: Rectangle): Rectangle;
30803
30794
  }
30804
30795
 
30796
+ /**
30797
+ * Returns a deep copy of the given array.
30798
+
30799
+ If the input is undefined, then <code>undefined</code> is returned.
30800
+
30801
+ Otherwise, the result will be a copy of the given array, where
30802
+ each element is copied with <code>Cartesian3.clone</code>.
30803
+ * @param input - The input array
30804
+ * @returns The copy
30805
+ */
30806
+ export function copyArrayCartesian3(input: Cartesian3[] | undefined): Cartesian3[] | undefined;
30807
+
30808
+ /**
30809
+ * Returns whether the given arrays are component-wise equal.
30810
+
30811
+ When both arrays are undefined, then <code>true</code> is returned.
30812
+ When only one array is defined, or they are both defined but have
30813
+ different lengths, then <code>false</code> is returned.
30814
+
30815
+ Otherwise, returns whether the corresponding elements of the arrays
30816
+ are equal, as of <code>Cartesian3.equals</code>.
30817
+ * @param a - The first array
30818
+ * @param b - The second array
30819
+ * @returns Whether the arrays are equal
30820
+ */
30821
+ export function equalsArrayCartesian3(a: Cartesian3[] | undefined, b: Cartesian3[] | undefined): boolean;
30822
+
30805
30823
  /**
30806
30824
  * Specifies a set of clipping polygons. Clipping polygons selectively disable rendering in a region
30807
30825
  inside or outside the specified list of {@link ClippingPolygon} objects for a single glTF model, 3D Tileset, or the globe.
@@ -31911,9 +31929,9 @@ export enum DepthFunction {
31911
31929
 
31912
31930
  /**
31913
31931
  * Returns the type that the given class property has in a GLSL shader.
31914
-
31915
- It returns the same string as `PropertyTextureProperty.prototype.getGlslType`
31916
- for a property texture property with the given class property
31932
+ *
31933
+ * It returns the same string as `PropertyTextureProperty.prototype.getGlslType`
31934
+ * for a property texture property with the given class property
31917
31935
  * @param classProperty - The class property
31918
31936
  * @returns The GLSL shader type string for the property
31919
31937
  */
@@ -31921,8 +31939,8 @@ export function getGlslType(classProperty: MetadataClassProperty): string;
31921
31939
 
31922
31940
  /**
31923
31941
  * Returns a shader statement that applies the inverse of the
31924
- value transform to the given value, based on the given offset
31925
- and scale.
31942
+ * value transform to the given value, based on the given offset
31943
+ * and scale.
31926
31944
  * @param input - The input value
31927
31945
  * @param offset - The offset
31928
31946
  * @param scale - The scale
@@ -31932,7 +31950,7 @@ export function unapplyValueTransform(input: string, offset: string, scale: stri
31932
31950
 
31933
31951
  /**
31934
31952
  * Returns a shader statement that applies the inverse of the
31935
- normalization, based on the given component type
31953
+ * normalization, based on the given component type
31936
31954
  * @param input - The input value
31937
31955
  * @param componentType - The component type
31938
31956
  * @returns The statement
@@ -31941,20 +31959,20 @@ export function unnormalize(input: string, componentType: string): string;
31941
31959
 
31942
31960
  /**
31943
31961
  * Creates a shader statement that returns the value of the specified
31944
- property, normalized to the range [0, 1].
31962
+ * property, normalized to the range [0, 1].
31945
31963
  * @param classProperty - The class property
31946
31964
  * @param metadataProperty - The metadata property, either
31947
- a `PropertyTextureProperty` or a `PropertyAttributeProperty`
31965
+ * a `PropertyTextureProperty` or a `PropertyAttributeProperty`
31948
31966
  * @returns The string
31949
31967
  */
31950
31968
  export function getSourceValueStringScalar(classProperty: MetadataClassProperty, metadataProperty: any): string;
31951
31969
 
31952
31970
  /**
31953
31971
  * Creates a shader statement that returns the value of the specified
31954
- component of the given property, normalized to the range [0, 1].
31972
+ * component of the given property, normalized to the range [0, 1].
31955
31973
  * @param classProperty - The class property
31956
31974
  * @param metadataProperty - The metadata property, either
31957
- a `PropertyTextureProperty` or a `PropertyAttributeProperty`
31975
+ * a `PropertyTextureProperty` or a `PropertyAttributeProperty`
31958
31976
  * @param componentName - The name, in ["x", "y", "z", "w"]
31959
31977
  * @returns The string
31960
31978
  */
@@ -33058,6 +33076,258 @@ export function loadGltfJson(): void;
33058
33076
  */
33059
33077
  export function removeExtension(gltf: any, extension: string): any;
33060
33078
 
33079
+ export namespace Google2DImageryProvider {
33080
+ /**
33081
+ * Initialization options for the Google2DImageryProvider constructor
33082
+ * @property key - The Google api key to send with tile requests.
33083
+ * @property session - The Google session token that tracks the current state of your map and viewport.
33084
+ * @property url - The Google 2D maps endpoint.
33085
+ * @property tileWidth - The width of each tile in pixels.
33086
+ * @property tileHeight - The height of each tile in pixels.
33087
+ * @property [ellipsoid = Ellipsoid.default] - The ellipsoid. If not specified, the default ellipsoid is used.
33088
+ * @property [minimumLevel = 0] - The minimum level-of-detail supported by the imagery provider. Take care when specifying
33089
+ this that the number of tiles at the minimum level is small, such as four or less. A larger number is likely
33090
+ to result in rendering problems.
33091
+ * @property [maximumLevel = 22] - The maximum level-of-detail supported by the imagery provider.
33092
+ * @property [rectangle = Rectangle.MAX_VALUE] - The rectangle, in radians, covered by the image.
33093
+ */
33094
+ type ConstructorOptions = {
33095
+ key: string;
33096
+ session: string;
33097
+ url: string | Resource | IonResource;
33098
+ tileWidth: string;
33099
+ tileHeight: string;
33100
+ ellipsoid?: Ellipsoid;
33101
+ minimumLevel?: number;
33102
+ maximumLevel?: number;
33103
+ rectangle?: Rectangle;
33104
+ };
33105
+ }
33106
+
33107
+ /**
33108
+ * <div class="notice">
33109
+ This object is normally not instantiated directly, use {@link Google2DImageryProvider.fromIonAssetId} or {@link Google2DImageryProvider.fromUrl}.
33110
+ </div>
33111
+
33112
+
33113
+ Provides 2D image tiles from {@link https://developers.google.com/maps/documentation/tile/2d-tiles-overview|Google 2D Tiles}.
33114
+
33115
+ Google 2D Tiles can only be used with the Google geocoder.
33116
+ * @example
33117
+ * // Google 2D imagery provider
33118
+ const googleTilesProvider = Cesium.Google2DImageryProvider.fromIonAssetId({
33119
+ assetId: 3830184
33120
+ });
33121
+ * @example
33122
+ * // Use your own Google api key
33123
+ Cesium.GoogleMaps.defaultApiKey = "your-api-key";
33124
+
33125
+ const googleTilesProvider = Cesium.Google2DImageryProvider.fromUrl({
33126
+ mapType: "SATELLITE"
33127
+ });
33128
+ * @param options - Object describing initialization options
33129
+ */
33130
+ export class Google2DImageryProvider {
33131
+ constructor(options: Google2DImageryProvider.ConstructorOptions);
33132
+ /**
33133
+ * Gets the URL of the Google 2D Imagery server.
33134
+ */
33135
+ readonly url: string;
33136
+ /**
33137
+ * Gets the rectangle, in radians, of the imagery provided by the instance.
33138
+ */
33139
+ readonly rectangle: Rectangle;
33140
+ /**
33141
+ * Gets the width of each tile, in pixels.
33142
+ */
33143
+ readonly tileWidth: number;
33144
+ /**
33145
+ * Gets the height of each tile, in pixels.
33146
+ */
33147
+ readonly tileHeight: number;
33148
+ /**
33149
+ * Gets the maximum level-of-detail that can be requested.
33150
+ */
33151
+ readonly maximumLevel: number | undefined;
33152
+ /**
33153
+ * Gets the minimum level-of-detail that can be requested. Generally,
33154
+ a minimum level should only be used when the rectangle of the imagery is small
33155
+ enough that the number of tiles at the minimum level is small. An imagery
33156
+ provider with more than a few tiles at the minimum level will lead to
33157
+ rendering problems.
33158
+ */
33159
+ readonly minimumLevel: number;
33160
+ /**
33161
+ * Gets the tiling scheme used by the provider.
33162
+ */
33163
+ readonly tilingScheme: TilingScheme;
33164
+ /**
33165
+ * Gets the tile discard policy. If not undefined, the discard policy is responsible
33166
+ for filtering out "missing" tiles via its shouldDiscardImage function. If this function
33167
+ returns undefined, no tiles are filtered.
33168
+ */
33169
+ readonly tileDiscardPolicy: TileDiscardPolicy;
33170
+ /**
33171
+ * Gets an event that is raised when the imagery provider encounters an asynchronous error. By subscribing
33172
+ to the event, you will be notified of the error and can potentially recover from it. Event listeners
33173
+ are passed an instance of {@link TileProviderError}.
33174
+ */
33175
+ readonly errorEvent: Event;
33176
+ /**
33177
+ * Gets the credit to display when this imagery provider is active. Typically this is used to credit
33178
+ the source of the imagery.
33179
+ */
33180
+ readonly credit: Credit;
33181
+ /**
33182
+ * Gets the proxy used by this provider.
33183
+ */
33184
+ readonly proxy: Proxy;
33185
+ /**
33186
+ * Gets a value indicating whether or not the images provided by this imagery provider
33187
+ include an alpha channel. If this property is false, an alpha channel, if present, will
33188
+ be ignored. If this property is true, any images without an alpha channel will be treated
33189
+ as if their alpha is 1.0 everywhere. When this property is false, memory usage
33190
+ and texture upload time are reduced.
33191
+ */
33192
+ readonly hasAlphaChannel: boolean;
33193
+ /**
33194
+ * Creates an {@link ImageryProvider} which provides 2D global tiled imagery from {@link https://developers.google.com/maps/documentation/tile/2d-tiles-overview|Google 2D Tiles}, streamed using the Cesium ion REST API.
33195
+ * @example
33196
+ * // Google 2D imagery provider
33197
+ const googleTilesProvider = Cesium.Google2DImageryProvider.fromIonAssetId({
33198
+ assetId: 3830184
33199
+ });
33200
+ * @example
33201
+ * // Google 2D roadmap overlay with custom styles
33202
+ const googleTileProvider = Cesium.Google2DImageryProvider.fromIonAssetId({
33203
+ assetId: 3830184,
33204
+ overlayLayerType: "layerRoadmap",
33205
+ styles: [
33206
+ {
33207
+ stylers: [{ hue: "#00ffe6" }, { saturation: -20 }],
33208
+ },
33209
+ {
33210
+ featureType: "road",
33211
+ elementType: "geometry",
33212
+ stylers: [{ lightness: 100 }, { visibility: "simplified" }],
33213
+ },
33214
+ ],
33215
+ });
33216
+ * @param options - Object with the following properties:
33217
+ * @param options.assetId - The Cesium ion asset id.
33218
+ * @param [options.mapType = "satellite"] - The map type of the Google map imagery. Valid options are satellite, terrain, and roadmap. If overlayLayerType is set, mapType is ignored and a transparent overlay is returned. If overlayMapType is undefined, then a basemap of mapType is returned. layerRoadmap overlayLayerType is included in terrain and roadmap mapTypes.
33219
+ * @param [options.language = "en_US"] - an IETF language tag that specifies the language used to display information on the tiles
33220
+ * @param [options.region = "US"] - A Common Locale Data Repository region identifier (two uppercase letters) that represents the physical location of the user.
33221
+ * @param [options.overlayLayerType] - Returns a transparent overlay map with the specified layerType. If no value is provided, a basemap of mapType is returned. Use multiple instances of Google2DImageryProvider to add multiple Google Maps overlays to a scene. layerRoadmap is included in terrain and roadmap mapTypes, so adding as overlay to terrain or roadmap has no effect.
33222
+ * @param [options.styles] - An array of JSON style objects that specify the appearance and detail level of map features such as roads, parks, and built-up areas. Styling is used to customize the standard Google base map. The styles parameter is valid only if the mapType is roadmap. For the complete style syntax, see the ({@link https://developers.google.com/maps/documentation/tile/style-reference|Google Style Reference}).
33223
+ * @param [options.ellipsoid = Ellipsoid.default] - The ellipsoid. If not specified, the default ellipsoid is used.
33224
+ * @param [options.minimumLevel = 0] - The minimum level-of-detail supported by the imagery provider. Take care when specifying
33225
+ this that the number of tiles at the minimum level is small, such as four or less. A larger number is likely
33226
+ to result in rendering problems.
33227
+ * @param [options.maximumLevel = 22] - The maximum level-of-detail supported by the imagery provider.
33228
+ * @param [options.rectangle = Rectangle.MAX_VALUE] - The rectangle, in radians, covered by the image.
33229
+ * @param [options.credit] - A credit for the data source, which is displayed on the canvas.
33230
+ * @returns A promise that resolves to the created Google2DImageryProvider.
33231
+ */
33232
+ static fromIonAssetId(options: {
33233
+ assetId: string;
33234
+ mapType?: "satellite" | "terrain" | "roadmap";
33235
+ language?: string;
33236
+ region?: string;
33237
+ overlayLayerType?: "layerRoadmap" | "layerStreetview" | "layerTraffic";
33238
+ styles?: any;
33239
+ ellipsoid?: Ellipsoid;
33240
+ minimumLevel?: number;
33241
+ maximumLevel?: number;
33242
+ rectangle?: Rectangle;
33243
+ credit?: Credit | string;
33244
+ }): Promise<Google2DImageryProvider>;
33245
+ /**
33246
+ * Creates an {@link ImageryProvider} which provides 2D global tiled imagery from {@link https://developers.google.com/maps/documentation/tile/2d-tiles-overview|Google 2D Tiles}.
33247
+ * @example
33248
+ * // Use your own Google api key
33249
+ Cesium.GoogleMaps.defaultApiKey = "your-api-key";
33250
+
33251
+ const googleTilesProvider = Cesium.Google2DImageryProvider.fromUrl({
33252
+ mapType: "satellite"
33253
+ });
33254
+ * @example
33255
+ * // Google 2D roadmap overlay with custom styles
33256
+ Cesium.GoogleMaps.defaultApiKey = "your-api-key";
33257
+
33258
+ const googleTileProvider = Cesium.Google2DImageryProvider.fromUrl({
33259
+ overlayLayerType: "layerRoadmap",
33260
+ styles: [
33261
+ {
33262
+ stylers: [{ hue: "#00ffe6" }, { saturation: -20 }],
33263
+ },
33264
+ {
33265
+ featureType: "road",
33266
+ elementType: "geometry",
33267
+ stylers: [{ lightness: 100 }, { visibility: "simplified" }],
33268
+ },
33269
+ ],
33270
+ });
33271
+ * @param options - Object with the following properties:
33272
+ * @param [options.key = GoogleMaps.defaultApiKey] - Your API key to access Google 2D Tiles. See {@link https://developers.google.com/maps/documentation/javascript/get-api-key} for instructions on how to create your own key.
33273
+ * @param [options.mapType = "satellite"] - The map type of the Google map imagery. Valid options are satellite, terrain, and roadmap. If overlayLayerType is set, mapType is ignored and a transparent overlay is returned. If overlayMapType is undefined, then a basemap of mapType is returned. layerRoadmap overlayLayerType is included in terrain and roadmap mapTypes.
33274
+ * @param [options.language = "en_US"] - an IETF language tag that specifies the language used to display information on the tiles
33275
+ * @param [options.region = "US"] - A Common Locale Data Repository region identifier (two uppercase letters) that represents the physical location of the user.
33276
+ * @param [options.overlayLayerType] - Returns a transparent overlay map with the specified layerType. If no value is provided, a basemap of mapType is returned. Use multiple instances of Google2DImageryProvider to add multiple Google Maps overlays to a scene. layerRoadmap is included in terrain and roadmap mapTypes, so adding as overlay to terrain or roadmap has no effect.
33277
+ * @param [options.styles] - An array of JSON style objects that specify the appearance and detail level of map features such as roads, parks, and built-up areas. Styling is used to customize the standard Google base map. The styles parameter is valid only if the mapType is roadmap. For the complete style syntax, see the ({@link https://developers.google.com/maps/documentation/tile/style-reference|Google Style Reference}).
33278
+ * @param [options.ellipsoid = Ellipsoid.default] - The ellipsoid. If not specified, the default ellipsoid is used.
33279
+ * @param [options.minimumLevel = 0] - The minimum level-of-detail supported by the imagery provider. Take care when specifying
33280
+ this that the number of tiles at the minimum level is small, such as four or less. A larger number is likely
33281
+ to result in rendering problems.
33282
+ * @param [options.maximumLevel = 22] - The maximum level-of-detail supported by the imagery provider.
33283
+ * @param [options.rectangle = Rectangle.MAX_VALUE] - The rectangle, in radians, covered by the image.
33284
+ * @param [options.credit] - A credit for the data source, which is displayed on the canvas.
33285
+ * @returns A promise that resolves to the created Google2DImageryProvider.
33286
+ */
33287
+ static fromUrl(options: {
33288
+ key?: string;
33289
+ mapType?: "satellite" | "terrain" | "roadmap";
33290
+ language?: string;
33291
+ region?: string;
33292
+ overlayLayerType?: "layerRoadmap" | "layerStreetview" | "layerTraffic";
33293
+ styles?: any;
33294
+ ellipsoid?: Ellipsoid;
33295
+ minimumLevel?: number;
33296
+ maximumLevel?: number;
33297
+ rectangle?: Rectangle;
33298
+ credit?: Credit | string;
33299
+ }): Promise<Google2DImageryProvider>;
33300
+ /**
33301
+ * Gets the credits to be displayed when a given tile is displayed.
33302
+ * @param x - The tile X coordinate.
33303
+ * @param y - The tile Y coordinate.
33304
+ * @param level - The tile level;
33305
+ * @returns The credits to be displayed when the tile is displayed.
33306
+ */
33307
+ getTileCredits(x: number, y: number, level: number): Credit[] | undefined;
33308
+ /**
33309
+ * Requests the image for a given tile.
33310
+ * @param x - The tile X coordinate.
33311
+ * @param y - The tile Y coordinate.
33312
+ * @param level - The tile level.
33313
+ * @param [request] - The request object. Intended for internal use only.
33314
+ * @returns A promise for the image that will resolve when the image is available, or
33315
+ undefined if there are too many active requests to the server, and the request should be retried later.
33316
+ */
33317
+ requestImage(x: number, y: number, level: number, request?: Request): Promise<ImageryTypes> | undefined;
33318
+ /**
33319
+ * Picking features is not currently supported by this imagery provider, so this function simply returns
33320
+ undefined.
33321
+ * @param x - The tile X coordinate.
33322
+ * @param y - The tile Y coordinate.
33323
+ * @param level - The tile level.
33324
+ * @param longitude - The longitude at which to pick features.
33325
+ * @param latitude - The latitude at which to pick features.
33326
+ * @returns Undefined since picking is not supported.
33327
+ */
33328
+ pickFeatures(x: number, y: number, level: number, longitude: number, latitude: number): undefined;
33329
+ }
33330
+
33061
33331
  export namespace GoogleEarthEnterpriseImageryProvider {
33062
33332
  /**
33063
33333
  * Initialization options for the GoogleEarthEnterpriseImageryProvider constructor
@@ -39671,6 +39941,29 @@ export type PickedMetadataInfo = {
39671
39941
  classProperty: MetadataClassProperty;
39672
39942
  };
39673
39943
 
39944
+ /**
39945
+ * Remove all invalid binary body references from the batch table
39946
+ JSON of the given parsed content.
39947
+
39948
+ This is a workaround for gracefully handling the invalid PNTS
39949
+ files that may have been created by the point cloud tiler.
39950
+ See https://github.com/CesiumGS/cesium/issues/12872
39951
+
39952
+ When the batch table JSON is undefined, nothing will be done.
39953
+ When the batch table binary is defined, nothing will be done
39954
+ (assuming that any binary body references are valid - this is
39955
+ not checked here).
39956
+
39957
+ Otherwise, this will remove all binary body references from the
39958
+ batch table JSON that are not resolved from draco via the
39959
+ `parsedContent.draco.batchTableProperties`.
39960
+
39961
+ If any (invalid) binary body reference is found (and removed),
39962
+ a one-time warning will be printed.
39963
+ * @param parsedContent - The parsed content
39964
+ */
39965
+ export function removeInvalidBinaryBodyReferences(parsedContent: any): void;
39966
+
39674
39967
  /**
39675
39968
  * Options for performing point attenuation based on geometric error when rendering
39676
39969
  point clouds using 3D Tiles.
@@ -41520,8 +41813,8 @@ const scene = new Cesium.Scene({
41520
41813
  * @param options - Object with the following properties:
41521
41814
  * @param options.canvas - The HTML canvas element to create the scene for.
41522
41815
  * @param [options.contextOptions] - Context and WebGL creation properties.
41523
- * @param [options.creditContainer] - The HTML element in which the credits will be displayed.
41524
- * @param [options.creditViewport] - The HTML element in which to display the credit popup. If not specified, the viewport will be a added as a sibling of the canvas.
41816
+ * @param [options.creditContainer] - The HTML element in which the credits will be displayed. If not specified, a credit container will be created and added as a sibling of the canvas.
41817
+ * @param [options.creditViewport] - The HTML element in which to display the credit popup. If not specified, the viewport will be added as a sibling of the canvas.
41525
41818
  * @param [options.ellipsoid = Ellipsoid.default] - The default ellipsoid. If not specified, the default ellipsoid is used.
41526
41819
  * @param [options.mapProjection = new GeographicProjection(options.ellipsoid)] - The map projection to use in 2D and Columbus View modes.
41527
41820
  * @param [options.orderIndependentTranslucency = true] - If true and the configuration supports it, use order independent translucency.