mars3d-cesium 1.133.2 → 1.134.1
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/Build/Cesium/Cesium.d.ts +347 -25
- package/Build/Cesium/Cesium.js +6137 -5933
- package/Build/Cesium/README.md +13 -0
- package/Build/Cesium/ThirdParty/Workers/zip-web-worker.js +1 -0
- package/Build/Cesium/ThirdParty/google-earth-dbroot-parser.js +1 -1
- package/Build/Cesium/ThirdParty/zip-module.wasm +0 -0
- package/Build/Cesium/Widgets/Images/ImageryProviders/googleContour.png +0 -0
- package/Build/Cesium/Widgets/Images/ImageryProviders/googleLabels.png +0 -0
- package/Build/Cesium/Widgets/Images/ImageryProviders/googleRoadmap.png +0 -0
- package/Build/Cesium/Widgets/Images/ImageryProviders/googleSatellite.png +0 -0
- package/Build/Cesium/Widgets/Images/ImageryProviders/googleSatelliteLabels.png +0 -0
- package/Build/Cesium/Workers/{chunk-PGRLXBGD.js → chunk-2XAYR2C5.js} +2 -2
- package/Build/Cesium/Workers/{chunk-TSCVBWG6.js → chunk-36F26KDU.js} +2 -2
- package/Build/Cesium/Workers/{chunk-VD6ECAIC.js → chunk-3BMZFUIS.js} +2 -2
- package/Build/Cesium/Workers/{chunk-VLDV42YZ.js → chunk-3N5IAKV6.js} +2 -2
- package/Build/Cesium/Workers/{chunk-YDRG5X7A.js → chunk-3YVQFPEA.js} +1 -1
- package/Build/Cesium/Workers/chunk-5EKXAWY2.js +26 -0
- package/Build/Cesium/Workers/{chunk-U5ICFWQV.js → chunk-6V5VCJIK.js} +2 -2
- package/Build/Cesium/Workers/{chunk-26JMB5EG.js → chunk-7PWAPQMR.js} +2 -2
- package/Build/Cesium/Workers/{chunk-DJKMCWX5.js → chunk-BHEGHSUV.js} +2 -2
- package/Build/Cesium/Workers/{chunk-K7LLWBNJ.js → chunk-BZCNXLAV.js} +2 -2
- package/Build/Cesium/Workers/{chunk-3H5MB2EO.js → chunk-CCMYWO2Z.js} +2 -2
- package/Build/Cesium/Workers/{chunk-5WACMDJQ.js → chunk-CXWKXKLC.js} +2 -2
- package/Build/Cesium/Workers/{chunk-W5POSMCN.js → chunk-DWB2X2GT.js} +2 -2
- package/Build/Cesium/Workers/{chunk-LFEWZXYP.js → chunk-FHRJ7RM7.js} +2 -2
- package/Build/Cesium/Workers/{chunk-GM3O7MIS.js → chunk-FYM7FH76.js} +1 -1
- package/Build/Cesium/Workers/{chunk-PLLNGUDR.js → chunk-GCICUX7F.js} +2 -2
- package/Build/Cesium/Workers/{chunk-VRSY7XMN.js → chunk-GI4C5ZA7.js} +2 -2
- package/Build/Cesium/Workers/chunk-HGZVX7FO.js +26 -0
- package/Build/Cesium/Workers/{chunk-BJ452TA7.js → chunk-HS5NQVZP.js} +2 -2
- package/Build/Cesium/Workers/{chunk-JR7HYP6T.js → chunk-ICMXBR5Q.js} +1 -1
- package/Build/Cesium/Workers/chunk-IST6PDKJ.js +26 -0
- package/Build/Cesium/Workers/{chunk-U3MALRGE.js → chunk-JOINT6ZY.js} +2 -2
- package/Build/Cesium/Workers/{chunk-2UIEEBAN.js → chunk-JVHAGGZ4.js} +2 -2
- package/Build/Cesium/Workers/{chunk-QSBEFQ4F.js → chunk-KH4YREDS.js} +2 -2
- package/Build/Cesium/Workers/{chunk-NU4HYD2L.js → chunk-KSAGT36C.js} +2 -2
- package/Build/Cesium/Workers/{chunk-NMCPHO6J.js → chunk-LFQUFABF.js} +2 -2
- package/Build/Cesium/Workers/{chunk-62CQLB45.js → chunk-LFTD56GD.js} +2 -2
- package/Build/Cesium/Workers/{chunk-SPMVNJUF.js → chunk-LSUTXALB.js} +2 -2
- package/Build/Cesium/Workers/{chunk-GFFNDPHK.js → chunk-M3RDBIKJ.js} +2 -2
- package/Build/Cesium/Workers/{chunk-QJQQBZH2.js → chunk-NM5RXPPR.js} +2 -2
- package/Build/Cesium/Workers/{chunk-A6VUCLHN.js → chunk-OB4HVIX7.js} +2 -2
- package/Build/Cesium/Workers/{chunk-NJT5VBT3.js → chunk-ODKXMTNX.js} +2 -2
- package/Build/Cesium/Workers/{chunk-AOU63PGD.js → chunk-OGDEH66A.js} +2 -2
- package/Build/Cesium/Workers/{chunk-I3FYJ5IG.js → chunk-OOSM3HIZ.js} +2 -2
- package/Build/Cesium/Workers/{chunk-RLETINPU.js → chunk-PBRHRBI3.js} +2 -2
- package/Build/Cesium/Workers/{chunk-Y4PFCRMK.js → chunk-PQMBL3WJ.js} +2 -2
- package/Build/Cesium/Workers/{chunk-FUJYB47T.js → chunk-PWFUIKY7.js} +2 -2
- package/Build/Cesium/Workers/{chunk-UJL35RP2.js → chunk-QODUKPMY.js} +1 -1
- package/Build/Cesium/Workers/{chunk-OKN5UZ7Q.js → chunk-QYYTQG3K.js} +2 -2
- package/Build/Cesium/Workers/{chunk-H5MHZH6P.js → chunk-S4ZFPLP7.js} +2 -2
- package/Build/Cesium/Workers/{chunk-IXJXM2U4.js → chunk-S5AMICSZ.js} +2 -2
- package/Build/Cesium/Workers/{chunk-VNVMHPJH.js → chunk-S7TQAJ23.js} +2 -2
- package/Build/Cesium/Workers/{chunk-HU3XCSCW.js → chunk-TONNLA2O.js} +2 -2
- package/Build/Cesium/Workers/chunk-V6RYMOUL.js +66 -0
- package/Build/Cesium/Workers/{chunk-MZ2NDMIB.js → chunk-VHMT7FVL.js} +2 -2
- package/Build/Cesium/Workers/{chunk-5ISKVHZE.js → chunk-VQWK2NDL.js} +2 -2
- package/Build/Cesium/Workers/{chunk-J5DUVNRR.js → chunk-WK46KJEL.js} +2 -2
- package/Build/Cesium/Workers/{chunk-QEWSVV5D.js → chunk-XFGB44SP.js} +1 -1
- package/Build/Cesium/Workers/{chunk-MPITALOH.js → chunk-YVDMSXFB.js} +2 -2
- package/Build/Cesium/Workers/{chunk-FM6NJIML.js → chunk-ZA5ZFQBT.js} +2 -2
- package/Build/Cesium/Workers/{chunk-JHQJZUYC.js → chunk-ZASIUHFB.js} +2 -2
- package/Build/Cesium/Workers/chunk-ZDQFFSCM.js +26 -0
- package/Build/Cesium/Workers/combineGeometry.js +2 -2
- package/Build/Cesium/Workers/createBoxGeometry.js +2 -2
- package/Build/Cesium/Workers/createBoxOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createCircleGeometry.js +2 -2
- package/Build/Cesium/Workers/createCircleOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createCoplanarPolygonGeometry.js +2 -2
- package/Build/Cesium/Workers/createCoplanarPolygonOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createCorridorGeometry.js +2 -2
- package/Build/Cesium/Workers/createCorridorOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createCylinderGeometry.js +2 -2
- package/Build/Cesium/Workers/createCylinderOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createEllipseGeometry.js +2 -2
- package/Build/Cesium/Workers/createEllipseOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createEllipsoidGeometry.js +2 -2
- package/Build/Cesium/Workers/createEllipsoidOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createFrustumGeometry.js +2 -2
- package/Build/Cesium/Workers/createFrustumOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createGeometry.js +2 -2
- package/Build/Cesium/Workers/createGroundPolylineGeometry.js +2 -2
- package/Build/Cesium/Workers/createPlaneGeometry.js +2 -2
- package/Build/Cesium/Workers/createPlaneOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createPolygonGeometry.js +2 -2
- package/Build/Cesium/Workers/createPolygonOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createPolylineGeometry.js +2 -2
- package/Build/Cesium/Workers/createPolylineVolumeGeometry.js +2 -2
- package/Build/Cesium/Workers/createPolylineVolumeOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createRectangleGeometry.js +2 -2
- package/Build/Cesium/Workers/createRectangleOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createSimplePolylineGeometry.js +2 -2
- package/Build/Cesium/Workers/createSphereGeometry.js +2 -2
- package/Build/Cesium/Workers/createSphereOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/createTaskProcessorWorker.js +2 -2
- package/Build/Cesium/Workers/createVectorTileClampedPolylines.js +2 -2
- package/Build/Cesium/Workers/createVectorTileGeometries.js +2 -2
- package/Build/Cesium/Workers/createVectorTilePoints.js +2 -2
- package/Build/Cesium/Workers/createVectorTilePolygons.js +2 -2
- package/Build/Cesium/Workers/createVectorTilePolylines.js +2 -2
- package/Build/Cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -2
- package/Build/Cesium/Workers/createVerticesFromHeightmap.js +2 -2
- package/Build/Cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +2 -2
- package/Build/Cesium/Workers/createWallGeometry.js +2 -2
- package/Build/Cesium/Workers/createWallOutlineGeometry.js +2 -2
- package/Build/Cesium/Workers/decodeDraco.js +2 -2
- package/Build/Cesium/Workers/decodeGoogleEarthEnterprisePacket.js +2 -2
- package/Build/Cesium/Workers/decodeI3S.js +2 -2
- package/Build/Cesium/Workers/gaussianSplatSorter.js +2 -2
- package/Build/Cesium/Workers/gaussianSplatTextureGenerator.js +2 -2
- package/Build/Cesium/Workers/transcodeKTX2.js +4 -4
- package/Build/Cesium/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Cesium/Workers/upsampleQuantizedTerrainMesh.js +2 -2
- package/Build/Cesium/index.cjs +6228 -6024
- package/Build/Cesium/index.js +6210 -6006
- package/README.md +29 -30
- package/package.json +1 -1
- package/Build/Cesium/ThirdParty/Workers/z-worker-pako.js +0 -1
- package/Build/Cesium/Workers/chunk-HTW53N7A.js +0 -26
- package/Build/Cesium/Workers/chunk-LTGIIF63.js +0 -26
- package/Build/Cesium/Workers/chunk-QUD7TMKH.js +0 -26
- package/Build/Cesium/Workers/chunk-YK6Q4ZLT.js +0 -26
- package/Build/Cesium/Workers/chunk-YNUOUJTT.js +0 -66
package/Build/Cesium/Cesium.d.ts
CHANGED
|
@@ -3675,6 +3675,12 @@ export class Color {
|
|
|
3675
3675
|
* @returns The modified result parameter or a new instance if result was undefined.
|
|
3676
3676
|
*/
|
|
3677
3677
|
toBytes(result?: number[]): number[];
|
|
3678
|
+
/**
|
|
3679
|
+
* Converts RGBA values in bytes to a single numeric unsigned 32-bit RGBA value, using the endianness
|
|
3680
|
+
of the system.
|
|
3681
|
+
* @returns A single numeric unsigned 32-bit RGBA value.
|
|
3682
|
+
*/
|
|
3683
|
+
static bytesToRgba(): number;
|
|
3678
3684
|
/**
|
|
3679
3685
|
* Converts this color to a single numeric unsigned 32-bit RGBA value, using the endianness
|
|
3680
3686
|
of the system.
|
|
@@ -5457,15 +5463,6 @@ export class DefaultProxy extends Proxy {
|
|
|
5457
5463
|
getURL(resource: string): string;
|
|
5458
5464
|
}
|
|
5459
5465
|
|
|
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
5466
|
/**
|
|
5470
5467
|
* @example
|
|
5471
5468
|
* if (Cesium.defined(positions)) {
|
|
@@ -7909,7 +7906,7 @@ export class GoogleEarthEnterpriseTerrainData {
|
|
|
7909
7906
|
upsample(tilingScheme: TilingScheme, thisX: number, thisY: number, thisLevel: number, descendantX: number, descendantY: number, descendantLevel: number): Promise<HeightmapTerrainData> | undefined;
|
|
7910
7907
|
/**
|
|
7911
7908
|
* Determines if a given child tile is available, based on the
|
|
7912
|
-
{@link
|
|
7909
|
+
{@link GoogleEarthEnterpriseTerrainData.childTileMask}. The given child tile coordinates are assumed
|
|
7913
7910
|
to be one of the four children of this tile. If non-child tile coordinates are
|
|
7914
7911
|
given, the availability of the southeast child tile is returned.
|
|
7915
7912
|
* @param thisX - The tile X coordinate of this (the parent) tile.
|
|
@@ -9095,7 +9092,7 @@ export class IonResource extends Resource {
|
|
|
9095
9092
|
* @param [options] - An object with the following properties:
|
|
9096
9093
|
* @param [options.accessToken = Ion.defaultAccessToken] - The access token to use.
|
|
9097
9094
|
* @param [options.server = Ion.defaultServer] - The resource to the Cesium ion API server.
|
|
9098
|
-
* @returns A Promise to
|
|
9095
|
+
* @returns A Promise to an instance representing the Cesium ion Asset.
|
|
9099
9096
|
*/
|
|
9100
9097
|
static fromAssetId(assetId: number, options?: {
|
|
9101
9098
|
accessToken?: string;
|
|
@@ -25651,6 +25648,8 @@ export type WebGLOptions = {
|
|
|
25651
25648
|
failIfMajorPerformanceCaveat?: boolean;
|
|
25652
25649
|
};
|
|
25653
25650
|
|
|
25651
|
+
export function PickId(pickObjects: Map<number, object>, key: number, color: Color): void;
|
|
25652
|
+
|
|
25654
25653
|
/**
|
|
25655
25654
|
* The data type of a pixel.
|
|
25656
25655
|
*/
|
|
@@ -30657,12 +30656,12 @@ export class ClippingPlaneCollection {
|
|
|
30657
30656
|
* An event triggered when a new clipping plane is added to the collection. Event handlers
|
|
30658
30657
|
are passed the new plane and the index at which it was added.
|
|
30659
30658
|
*/
|
|
30660
|
-
planeAdded: Event;
|
|
30659
|
+
readonly planeAdded: Event;
|
|
30661
30660
|
/**
|
|
30662
30661
|
* An event triggered when a new clipping plane is removed from the collection. Event handlers
|
|
30663
30662
|
are passed the new plane and the index from which it was removed.
|
|
30664
30663
|
*/
|
|
30665
|
-
planeRemoved: Event;
|
|
30664
|
+
readonly planeRemoved: Event;
|
|
30666
30665
|
/**
|
|
30667
30666
|
* Returns the number of planes in this collection. This is commonly used with
|
|
30668
30667
|
{@link ClippingPlaneCollection#get} to iterate over all the planes
|
|
@@ -30802,6 +30801,33 @@ export class ClippingPolygon {
|
|
|
30802
30801
|
computeRectangle(result?: Rectangle): Rectangle;
|
|
30803
30802
|
}
|
|
30804
30803
|
|
|
30804
|
+
/**
|
|
30805
|
+
* Returns a deep copy of the given array.
|
|
30806
|
+
|
|
30807
|
+
If the input is undefined, then <code>undefined</code> is returned.
|
|
30808
|
+
|
|
30809
|
+
Otherwise, the result will be a copy of the given array, where
|
|
30810
|
+
each element is copied with <code>Cartesian3.clone</code>.
|
|
30811
|
+
* @param input - The input array
|
|
30812
|
+
* @returns The copy
|
|
30813
|
+
*/
|
|
30814
|
+
export function copyArrayCartesian3(input: Cartesian3[] | undefined): Cartesian3[] | undefined;
|
|
30815
|
+
|
|
30816
|
+
/**
|
|
30817
|
+
* Returns whether the given arrays are component-wise equal.
|
|
30818
|
+
|
|
30819
|
+
When both arrays are undefined, then <code>true</code> is returned.
|
|
30820
|
+
When only one array is defined, or they are both defined but have
|
|
30821
|
+
different lengths, then <code>false</code> is returned.
|
|
30822
|
+
|
|
30823
|
+
Otherwise, returns whether the corresponding elements of the arrays
|
|
30824
|
+
are equal, as of <code>Cartesian3.equals</code>.
|
|
30825
|
+
* @param a - The first array
|
|
30826
|
+
* @param b - The second array
|
|
30827
|
+
* @returns Whether the arrays are equal
|
|
30828
|
+
*/
|
|
30829
|
+
export function equalsArrayCartesian3(a: Cartesian3[] | undefined, b: Cartesian3[] | undefined): boolean;
|
|
30830
|
+
|
|
30805
30831
|
/**
|
|
30806
30832
|
* Specifies a set of clipping polygons. Clipping polygons selectively disable rendering in a region
|
|
30807
30833
|
inside or outside the specified list of {@link ClippingPolygon} objects for a single glTF model, 3D Tileset, or the globe.
|
|
@@ -31911,9 +31937,9 @@ export enum DepthFunction {
|
|
|
31911
31937
|
|
|
31912
31938
|
/**
|
|
31913
31939
|
* 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
|
|
31940
|
+
*
|
|
31941
|
+
* It returns the same string as `PropertyTextureProperty.prototype.getGlslType`
|
|
31942
|
+
* for a property texture property with the given class property
|
|
31917
31943
|
* @param classProperty - The class property
|
|
31918
31944
|
* @returns The GLSL shader type string for the property
|
|
31919
31945
|
*/
|
|
@@ -31921,8 +31947,8 @@ export function getGlslType(classProperty: MetadataClassProperty): string;
|
|
|
31921
31947
|
|
|
31922
31948
|
/**
|
|
31923
31949
|
* 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.
|
|
31950
|
+
* value transform to the given value, based on the given offset
|
|
31951
|
+
* and scale.
|
|
31926
31952
|
* @param input - The input value
|
|
31927
31953
|
* @param offset - The offset
|
|
31928
31954
|
* @param scale - The scale
|
|
@@ -31932,7 +31958,7 @@ export function unapplyValueTransform(input: string, offset: string, scale: stri
|
|
|
31932
31958
|
|
|
31933
31959
|
/**
|
|
31934
31960
|
* Returns a shader statement that applies the inverse of the
|
|
31935
|
-
normalization, based on the given component type
|
|
31961
|
+
* normalization, based on the given component type
|
|
31936
31962
|
* @param input - The input value
|
|
31937
31963
|
* @param componentType - The component type
|
|
31938
31964
|
* @returns The statement
|
|
@@ -31941,20 +31967,20 @@ export function unnormalize(input: string, componentType: string): string;
|
|
|
31941
31967
|
|
|
31942
31968
|
/**
|
|
31943
31969
|
* Creates a shader statement that returns the value of the specified
|
|
31944
|
-
property, normalized to the range [0, 1].
|
|
31970
|
+
* property, normalized to the range [0, 1].
|
|
31945
31971
|
* @param classProperty - The class property
|
|
31946
31972
|
* @param metadataProperty - The metadata property, either
|
|
31947
|
-
a `PropertyTextureProperty` or a `PropertyAttributeProperty`
|
|
31973
|
+
* a `PropertyTextureProperty` or a `PropertyAttributeProperty`
|
|
31948
31974
|
* @returns The string
|
|
31949
31975
|
*/
|
|
31950
31976
|
export function getSourceValueStringScalar(classProperty: MetadataClassProperty, metadataProperty: any): string;
|
|
31951
31977
|
|
|
31952
31978
|
/**
|
|
31953
31979
|
* Creates a shader statement that returns the value of the specified
|
|
31954
|
-
component of the given property, normalized to the range [0, 1].
|
|
31980
|
+
* component of the given property, normalized to the range [0, 1].
|
|
31955
31981
|
* @param classProperty - The class property
|
|
31956
31982
|
* @param metadataProperty - The metadata property, either
|
|
31957
|
-
a `PropertyTextureProperty` or a `PropertyAttributeProperty`
|
|
31983
|
+
* a `PropertyTextureProperty` or a `PropertyAttributeProperty`
|
|
31958
31984
|
* @param componentName - The name, in ["x", "y", "z", "w"]
|
|
31959
31985
|
* @returns The string
|
|
31960
31986
|
*/
|
|
@@ -33058,6 +33084,258 @@ export function loadGltfJson(): void;
|
|
|
33058
33084
|
*/
|
|
33059
33085
|
export function removeExtension(gltf: any, extension: string): any;
|
|
33060
33086
|
|
|
33087
|
+
export namespace Google2DImageryProvider {
|
|
33088
|
+
/**
|
|
33089
|
+
* Initialization options for the Google2DImageryProvider constructor
|
|
33090
|
+
* @property key - The Google api key to send with tile requests.
|
|
33091
|
+
* @property session - The Google session token that tracks the current state of your map and viewport.
|
|
33092
|
+
* @property url - The Google 2D maps endpoint.
|
|
33093
|
+
* @property tileWidth - The width of each tile in pixels.
|
|
33094
|
+
* @property tileHeight - The height of each tile in pixels.
|
|
33095
|
+
* @property [ellipsoid = Ellipsoid.default] - The ellipsoid. If not specified, the default ellipsoid is used.
|
|
33096
|
+
* @property [minimumLevel = 0] - The minimum level-of-detail supported by the imagery provider. Take care when specifying
|
|
33097
|
+
this that the number of tiles at the minimum level is small, such as four or less. A larger number is likely
|
|
33098
|
+
to result in rendering problems.
|
|
33099
|
+
* @property [maximumLevel = 22] - The maximum level-of-detail supported by the imagery provider.
|
|
33100
|
+
* @property [rectangle = Rectangle.MAX_VALUE] - The rectangle, in radians, covered by the image.
|
|
33101
|
+
*/
|
|
33102
|
+
type ConstructorOptions = {
|
|
33103
|
+
key: string;
|
|
33104
|
+
session: string;
|
|
33105
|
+
url: string | Resource | IonResource;
|
|
33106
|
+
tileWidth: string;
|
|
33107
|
+
tileHeight: string;
|
|
33108
|
+
ellipsoid?: Ellipsoid;
|
|
33109
|
+
minimumLevel?: number;
|
|
33110
|
+
maximumLevel?: number;
|
|
33111
|
+
rectangle?: Rectangle;
|
|
33112
|
+
};
|
|
33113
|
+
}
|
|
33114
|
+
|
|
33115
|
+
/**
|
|
33116
|
+
* <div class="notice">
|
|
33117
|
+
This object is normally not instantiated directly, use {@link Google2DImageryProvider.fromIonAssetId} or {@link Google2DImageryProvider.fromUrl}.
|
|
33118
|
+
</div>
|
|
33119
|
+
|
|
33120
|
+
|
|
33121
|
+
Provides 2D image tiles from {@link https://developers.google.com/maps/documentation/tile/2d-tiles-overview|Google 2D Tiles}.
|
|
33122
|
+
|
|
33123
|
+
Google 2D Tiles can only be used with the Google geocoder.
|
|
33124
|
+
* @example
|
|
33125
|
+
* // Google 2D imagery provider
|
|
33126
|
+
const googleTilesProvider = Cesium.Google2DImageryProvider.fromIonAssetId({
|
|
33127
|
+
assetId: 3830184
|
|
33128
|
+
});
|
|
33129
|
+
* @example
|
|
33130
|
+
* // Use your own Google api key
|
|
33131
|
+
Cesium.GoogleMaps.defaultApiKey = "your-api-key";
|
|
33132
|
+
|
|
33133
|
+
const googleTilesProvider = Cesium.Google2DImageryProvider.fromUrl({
|
|
33134
|
+
mapType: "SATELLITE"
|
|
33135
|
+
});
|
|
33136
|
+
* @param options - Object describing initialization options
|
|
33137
|
+
*/
|
|
33138
|
+
export class Google2DImageryProvider {
|
|
33139
|
+
constructor(options: Google2DImageryProvider.ConstructorOptions);
|
|
33140
|
+
/**
|
|
33141
|
+
* Gets the URL of the Google 2D Imagery server.
|
|
33142
|
+
*/
|
|
33143
|
+
readonly url: string;
|
|
33144
|
+
/**
|
|
33145
|
+
* Gets the rectangle, in radians, of the imagery provided by the instance.
|
|
33146
|
+
*/
|
|
33147
|
+
readonly rectangle: Rectangle;
|
|
33148
|
+
/**
|
|
33149
|
+
* Gets the width of each tile, in pixels.
|
|
33150
|
+
*/
|
|
33151
|
+
readonly tileWidth: number;
|
|
33152
|
+
/**
|
|
33153
|
+
* Gets the height of each tile, in pixels.
|
|
33154
|
+
*/
|
|
33155
|
+
readonly tileHeight: number;
|
|
33156
|
+
/**
|
|
33157
|
+
* Gets the maximum level-of-detail that can be requested.
|
|
33158
|
+
*/
|
|
33159
|
+
readonly maximumLevel: number | undefined;
|
|
33160
|
+
/**
|
|
33161
|
+
* Gets the minimum level-of-detail that can be requested. Generally,
|
|
33162
|
+
a minimum level should only be used when the rectangle of the imagery is small
|
|
33163
|
+
enough that the number of tiles at the minimum level is small. An imagery
|
|
33164
|
+
provider with more than a few tiles at the minimum level will lead to
|
|
33165
|
+
rendering problems.
|
|
33166
|
+
*/
|
|
33167
|
+
readonly minimumLevel: number;
|
|
33168
|
+
/**
|
|
33169
|
+
* Gets the tiling scheme used by the provider.
|
|
33170
|
+
*/
|
|
33171
|
+
readonly tilingScheme: TilingScheme;
|
|
33172
|
+
/**
|
|
33173
|
+
* Gets the tile discard policy. If not undefined, the discard policy is responsible
|
|
33174
|
+
for filtering out "missing" tiles via its shouldDiscardImage function. If this function
|
|
33175
|
+
returns undefined, no tiles are filtered.
|
|
33176
|
+
*/
|
|
33177
|
+
readonly tileDiscardPolicy: TileDiscardPolicy;
|
|
33178
|
+
/**
|
|
33179
|
+
* Gets an event that is raised when the imagery provider encounters an asynchronous error. By subscribing
|
|
33180
|
+
to the event, you will be notified of the error and can potentially recover from it. Event listeners
|
|
33181
|
+
are passed an instance of {@link TileProviderError}.
|
|
33182
|
+
*/
|
|
33183
|
+
readonly errorEvent: Event;
|
|
33184
|
+
/**
|
|
33185
|
+
* Gets the credit to display when this imagery provider is active. Typically this is used to credit
|
|
33186
|
+
the source of the imagery.
|
|
33187
|
+
*/
|
|
33188
|
+
readonly credit: Credit;
|
|
33189
|
+
/**
|
|
33190
|
+
* Gets the proxy used by this provider.
|
|
33191
|
+
*/
|
|
33192
|
+
readonly proxy: Proxy;
|
|
33193
|
+
/**
|
|
33194
|
+
* Gets a value indicating whether or not the images provided by this imagery provider
|
|
33195
|
+
include an alpha channel. If this property is false, an alpha channel, if present, will
|
|
33196
|
+
be ignored. If this property is true, any images without an alpha channel will be treated
|
|
33197
|
+
as if their alpha is 1.0 everywhere. When this property is false, memory usage
|
|
33198
|
+
and texture upload time are reduced.
|
|
33199
|
+
*/
|
|
33200
|
+
readonly hasAlphaChannel: boolean;
|
|
33201
|
+
/**
|
|
33202
|
+
* 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.
|
|
33203
|
+
* @example
|
|
33204
|
+
* // Google 2D imagery provider
|
|
33205
|
+
const googleTilesProvider = Cesium.Google2DImageryProvider.fromIonAssetId({
|
|
33206
|
+
assetId: 3830184
|
|
33207
|
+
});
|
|
33208
|
+
* @example
|
|
33209
|
+
* // Google 2D roadmap overlay with custom styles
|
|
33210
|
+
const googleTileProvider = Cesium.Google2DImageryProvider.fromIonAssetId({
|
|
33211
|
+
assetId: 3830184,
|
|
33212
|
+
overlayLayerType: "layerRoadmap",
|
|
33213
|
+
styles: [
|
|
33214
|
+
{
|
|
33215
|
+
stylers: [{ hue: "#00ffe6" }, { saturation: -20 }],
|
|
33216
|
+
},
|
|
33217
|
+
{
|
|
33218
|
+
featureType: "road",
|
|
33219
|
+
elementType: "geometry",
|
|
33220
|
+
stylers: [{ lightness: 100 }, { visibility: "simplified" }],
|
|
33221
|
+
},
|
|
33222
|
+
],
|
|
33223
|
+
});
|
|
33224
|
+
* @param options - Object with the following properties:
|
|
33225
|
+
* @param options.assetId - The Cesium ion asset id.
|
|
33226
|
+
* @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.
|
|
33227
|
+
* @param [options.language = "en_US"] - an IETF language tag that specifies the language used to display information on the tiles
|
|
33228
|
+
* @param [options.region = "US"] - A Common Locale Data Repository region identifier (two uppercase letters) that represents the physical location of the user.
|
|
33229
|
+
* @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.
|
|
33230
|
+
* @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}).
|
|
33231
|
+
* @param [options.ellipsoid = Ellipsoid.default] - The ellipsoid. If not specified, the default ellipsoid is used.
|
|
33232
|
+
* @param [options.minimumLevel = 0] - The minimum level-of-detail supported by the imagery provider. Take care when specifying
|
|
33233
|
+
this that the number of tiles at the minimum level is small, such as four or less. A larger number is likely
|
|
33234
|
+
to result in rendering problems.
|
|
33235
|
+
* @param [options.maximumLevel = 22] - The maximum level-of-detail supported by the imagery provider.
|
|
33236
|
+
* @param [options.rectangle = Rectangle.MAX_VALUE] - The rectangle, in radians, covered by the image.
|
|
33237
|
+
* @param [options.credit] - A credit for the data source, which is displayed on the canvas.
|
|
33238
|
+
* @returns A promise that resolves to the created Google2DImageryProvider.
|
|
33239
|
+
*/
|
|
33240
|
+
static fromIonAssetId(options: {
|
|
33241
|
+
assetId: string;
|
|
33242
|
+
mapType?: "satellite" | "terrain" | "roadmap";
|
|
33243
|
+
language?: string;
|
|
33244
|
+
region?: string;
|
|
33245
|
+
overlayLayerType?: "layerRoadmap" | "layerStreetview" | "layerTraffic";
|
|
33246
|
+
styles?: any;
|
|
33247
|
+
ellipsoid?: Ellipsoid;
|
|
33248
|
+
minimumLevel?: number;
|
|
33249
|
+
maximumLevel?: number;
|
|
33250
|
+
rectangle?: Rectangle;
|
|
33251
|
+
credit?: Credit | string;
|
|
33252
|
+
}): Promise<Google2DImageryProvider>;
|
|
33253
|
+
/**
|
|
33254
|
+
* 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}.
|
|
33255
|
+
* @example
|
|
33256
|
+
* // Use your own Google api key
|
|
33257
|
+
Cesium.GoogleMaps.defaultApiKey = "your-api-key";
|
|
33258
|
+
|
|
33259
|
+
const googleTilesProvider = Cesium.Google2DImageryProvider.fromUrl({
|
|
33260
|
+
mapType: "satellite"
|
|
33261
|
+
});
|
|
33262
|
+
* @example
|
|
33263
|
+
* // Google 2D roadmap overlay with custom styles
|
|
33264
|
+
Cesium.GoogleMaps.defaultApiKey = "your-api-key";
|
|
33265
|
+
|
|
33266
|
+
const googleTileProvider = Cesium.Google2DImageryProvider.fromUrl({
|
|
33267
|
+
overlayLayerType: "layerRoadmap",
|
|
33268
|
+
styles: [
|
|
33269
|
+
{
|
|
33270
|
+
stylers: [{ hue: "#00ffe6" }, { saturation: -20 }],
|
|
33271
|
+
},
|
|
33272
|
+
{
|
|
33273
|
+
featureType: "road",
|
|
33274
|
+
elementType: "geometry",
|
|
33275
|
+
stylers: [{ lightness: 100 }, { visibility: "simplified" }],
|
|
33276
|
+
},
|
|
33277
|
+
],
|
|
33278
|
+
});
|
|
33279
|
+
* @param options - Object with the following properties:
|
|
33280
|
+
* @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.
|
|
33281
|
+
* @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.
|
|
33282
|
+
* @param [options.language = "en_US"] - an IETF language tag that specifies the language used to display information on the tiles
|
|
33283
|
+
* @param [options.region = "US"] - A Common Locale Data Repository region identifier (two uppercase letters) that represents the physical location of the user.
|
|
33284
|
+
* @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.
|
|
33285
|
+
* @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}).
|
|
33286
|
+
* @param [options.ellipsoid = Ellipsoid.default] - The ellipsoid. If not specified, the default ellipsoid is used.
|
|
33287
|
+
* @param [options.minimumLevel = 0] - The minimum level-of-detail supported by the imagery provider. Take care when specifying
|
|
33288
|
+
this that the number of tiles at the minimum level is small, such as four or less. A larger number is likely
|
|
33289
|
+
to result in rendering problems.
|
|
33290
|
+
* @param [options.maximumLevel = 22] - The maximum level-of-detail supported by the imagery provider.
|
|
33291
|
+
* @param [options.rectangle = Rectangle.MAX_VALUE] - The rectangle, in radians, covered by the image.
|
|
33292
|
+
* @param [options.credit] - A credit for the data source, which is displayed on the canvas.
|
|
33293
|
+
* @returns A promise that resolves to the created Google2DImageryProvider.
|
|
33294
|
+
*/
|
|
33295
|
+
static fromUrl(options: {
|
|
33296
|
+
key?: string;
|
|
33297
|
+
mapType?: "satellite" | "terrain" | "roadmap";
|
|
33298
|
+
language?: string;
|
|
33299
|
+
region?: string;
|
|
33300
|
+
overlayLayerType?: "layerRoadmap" | "layerStreetview" | "layerTraffic";
|
|
33301
|
+
styles?: any;
|
|
33302
|
+
ellipsoid?: Ellipsoid;
|
|
33303
|
+
minimumLevel?: number;
|
|
33304
|
+
maximumLevel?: number;
|
|
33305
|
+
rectangle?: Rectangle;
|
|
33306
|
+
credit?: Credit | string;
|
|
33307
|
+
}): Promise<Google2DImageryProvider>;
|
|
33308
|
+
/**
|
|
33309
|
+
* Gets the credits to be displayed when a given tile is displayed.
|
|
33310
|
+
* @param x - The tile X coordinate.
|
|
33311
|
+
* @param y - The tile Y coordinate.
|
|
33312
|
+
* @param level - The tile level;
|
|
33313
|
+
* @returns The credits to be displayed when the tile is displayed.
|
|
33314
|
+
*/
|
|
33315
|
+
getTileCredits(x: number, y: number, level: number): Credit[] | undefined;
|
|
33316
|
+
/**
|
|
33317
|
+
* Requests the image for a given tile.
|
|
33318
|
+
* @param x - The tile X coordinate.
|
|
33319
|
+
* @param y - The tile Y coordinate.
|
|
33320
|
+
* @param level - The tile level.
|
|
33321
|
+
* @param [request] - The request object. Intended for internal use only.
|
|
33322
|
+
* @returns A promise for the image that will resolve when the image is available, or
|
|
33323
|
+
undefined if there are too many active requests to the server, and the request should be retried later.
|
|
33324
|
+
*/
|
|
33325
|
+
requestImage(x: number, y: number, level: number, request?: Request): Promise<ImageryTypes> | undefined;
|
|
33326
|
+
/**
|
|
33327
|
+
* Picking features is not currently supported by this imagery provider, so this function simply returns
|
|
33328
|
+
undefined.
|
|
33329
|
+
* @param x - The tile X coordinate.
|
|
33330
|
+
* @param y - The tile Y coordinate.
|
|
33331
|
+
* @param level - The tile level.
|
|
33332
|
+
* @param longitude - The longitude at which to pick features.
|
|
33333
|
+
* @param latitude - The latitude at which to pick features.
|
|
33334
|
+
* @returns Undefined since picking is not supported.
|
|
33335
|
+
*/
|
|
33336
|
+
pickFeatures(x: number, y: number, level: number, longitude: number, latitude: number): undefined;
|
|
33337
|
+
}
|
|
33338
|
+
|
|
33061
33339
|
export namespace GoogleEarthEnterpriseImageryProvider {
|
|
33062
33340
|
/**
|
|
33063
33341
|
* Initialization options for the GoogleEarthEnterpriseImageryProvider constructor
|
|
@@ -39671,6 +39949,44 @@ export type PickedMetadataInfo = {
|
|
|
39671
39949
|
classProperty: MetadataClassProperty;
|
|
39672
39950
|
};
|
|
39673
39951
|
|
|
39952
|
+
/**
|
|
39953
|
+
* @param pickedResults - the results from the pickCallback
|
|
39954
|
+
* @param limit - If supplied, stop drilling after collecting this many picks.
|
|
39955
|
+
* @returns whether picking should end
|
|
39956
|
+
*/
|
|
39957
|
+
export function addDrillPickedResults(pickedResults: object[], limit: number, results: object[], pickedPrimitives: object[], pickedAttributes: object[], pickedFeatures: object[]): boolean;
|
|
39958
|
+
|
|
39959
|
+
/**
|
|
39960
|
+
* Drill pick by repeatedly calling a given `pickCallback`, each time stripping away the previously picked objects.
|
|
39961
|
+
* @param pickCallback - Pick callback to execute each iteration
|
|
39962
|
+
* @param [limit = Number.MAX_VALUE] - If supplied, stop drilling after collecting this many picks
|
|
39963
|
+
* @returns List of picked results
|
|
39964
|
+
*/
|
|
39965
|
+
export function drillPick(pickCallback: (...params: any[]) => any, limit?: number): object[];
|
|
39966
|
+
|
|
39967
|
+
/**
|
|
39968
|
+
* Remove all invalid binary body references from the batch table
|
|
39969
|
+
JSON of the given parsed content.
|
|
39970
|
+
|
|
39971
|
+
This is a workaround for gracefully handling the invalid PNTS
|
|
39972
|
+
files that may have been created by the point cloud tiler.
|
|
39973
|
+
See https://github.com/CesiumGS/cesium/issues/12872
|
|
39974
|
+
|
|
39975
|
+
When the batch table JSON is undefined, nothing will be done.
|
|
39976
|
+
When the batch table binary is defined, nothing will be done
|
|
39977
|
+
(assuming that any binary body references are valid - this is
|
|
39978
|
+
not checked here).
|
|
39979
|
+
|
|
39980
|
+
Otherwise, this will remove all binary body references from the
|
|
39981
|
+
batch table JSON that are not resolved from draco via the
|
|
39982
|
+
`parsedContent.draco.batchTableProperties`.
|
|
39983
|
+
|
|
39984
|
+
If any (invalid) binary body reference is found (and removed),
|
|
39985
|
+
a one-time warning will be printed.
|
|
39986
|
+
* @param parsedContent - The parsed content
|
|
39987
|
+
*/
|
|
39988
|
+
export function removeInvalidBinaryBodyReferences(parsedContent: any): void;
|
|
39989
|
+
|
|
39674
39990
|
/**
|
|
39675
39991
|
* Options for performing point attenuation based on geometric error when rendering
|
|
39676
39992
|
point clouds using 3D Tiles.
|
|
@@ -41520,8 +41836,8 @@ const scene = new Cesium.Scene({
|
|
|
41520
41836
|
* @param options - Object with the following properties:
|
|
41521
41837
|
* @param options.canvas - The HTML canvas element to create the scene for.
|
|
41522
41838
|
* @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
|
|
41839
|
+
* @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.
|
|
41840
|
+
* @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
41841
|
* @param [options.ellipsoid = Ellipsoid.default] - The default ellipsoid. If not specified, the default ellipsoid is used.
|
|
41526
41842
|
* @param [options.mapProjection = new GeographicProjection(options.ellipsoid)] - The map projection to use in 2D and Columbus View modes.
|
|
41527
41843
|
* @param [options.orderIndependentTranslucency = true] - If true and the configuration supports it, use order independent translucency.
|
|
@@ -41788,6 +42104,12 @@ export class Scene {
|
|
|
41788
42104
|
* The light source for shading. Defaults to a directional light from the Sun.
|
|
41789
42105
|
*/
|
|
41790
42106
|
light: Light;
|
|
42107
|
+
/**
|
|
42108
|
+
* Whether or not to enable edge visibility rendering for 3D tiles.
|
|
42109
|
+
When enabled, creates a framebuffer with multiple render targets
|
|
42110
|
+
for advanced edge detection and visibility techniques.
|
|
42111
|
+
*/
|
|
42112
|
+
_enableEdgeVisibility: boolean;
|
|
41791
42113
|
/**
|
|
41792
42114
|
* Use this to set the default value for {@link Scene#logarithmicDepthBuffer} in newly constructed Scenes
|
|
41793
42115
|
This property relies on fragmentDepth being supported.
|