@cesium/engine 6.0.0 → 6.1.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.
- package/Build/Workers/{chunk-AXODHVUI.js → chunk-2GWOHAWL.js} +4 -4
- package/Build/Workers/{chunk-VEPSTOBV.js → chunk-3R5RPSYS.js} +8 -8
- package/Build/Workers/{chunk-FK5BM4WD.js → chunk-4CHSBZNO.js} +11 -11
- package/Build/Workers/{chunk-BKVKFLIC.js → chunk-4EXWKTY2.js} +7 -7
- package/Build/Workers/{chunk-DZUFRYQK.js → chunk-4JETNOH2.js} +11 -11
- package/Build/Workers/{chunk-W2LZZCAF.js → chunk-4MPXTOW6.js} +7 -7
- package/Build/Workers/{chunk-M57VBCI4.js → chunk-54GSYZWT.js} +5 -5
- package/Build/Workers/{chunk-ZBTL2GWA.js → chunk-5HUDPV54.js} +6 -6
- package/Build/Workers/{chunk-VBOAZG67.js → chunk-6JRDO2JP.js} +17 -17
- package/Build/Workers/{chunk-LCMSJE5D.js → chunk-6LG4PY2M.js} +12 -12
- package/Build/Workers/{chunk-2AEUVYIC.js → chunk-7ISAYW2A.js} +15 -15
- package/Build/Workers/{chunk-A7T4GOG3.js → chunk-A3TYRSRJ.js} +4 -4
- package/Build/Workers/{chunk-3FNFTDKS.js → chunk-AEADHPUM.js} +4 -4
- package/Build/Workers/{chunk-TWN33EAP.js → chunk-AI2FOC47.js} +10 -10
- package/Build/Workers/{chunk-EFUPZTUD.js → chunk-BLXANKPB.js} +6 -6
- package/Build/Workers/{chunk-3ENSLRZD.js → chunk-CHGQXPF3.js} +7 -7
- package/Build/Workers/{chunk-CLVX47CD.js → chunk-CKOGHQ6J.js} +5 -5
- package/Build/Workers/{chunk-2HEFBNI2.js → chunk-CZFGXAMG.js} +13 -13
- package/Build/Workers/{chunk-HW6ANEVG.js → chunk-DD2PDL6D.js} +5 -5
- package/Build/Workers/{chunk-2IZ2LJ3N.js → chunk-DHO4HQHW.js} +1 -1
- package/Build/Workers/{chunk-MQ32KIOU.js → chunk-DNCKFFNR.js} +3 -3
- package/Build/Workers/{chunk-J5YKECLG.js → chunk-E5HIGWSZ.js} +5 -5
- package/Build/Workers/{chunk-YOZZHZVR.js → chunk-EEL3YC6V.js} +4 -4
- package/Build/Workers/{chunk-I6R5G76Q.js → chunk-EH2PEDWL.js} +2 -2
- package/Build/Workers/{chunk-CBV4JE6S.js → chunk-F66GYWDZ.js} +5 -5
- package/Build/Workers/{chunk-XZKRFAT7.js → chunk-FMN2NHBU.js} +1 -1
- package/Build/Workers/{chunk-MOSBHBQO.js → chunk-FNHGOHCI.js} +7 -7
- package/Build/Workers/{chunk-DI3VM6NF.js → chunk-HX5XY3NH.js} +6 -6
- package/Build/Workers/{chunk-Z6SS6KIF.js → chunk-I5XKU3UZ.js} +11 -11
- package/Build/Workers/{chunk-BZHAJSUN.js → chunk-ICD3BWBC.js} +2 -2
- package/Build/Workers/{chunk-54QBXZYE.js → chunk-IDAL54EF.js} +14 -10
- package/Build/Workers/{chunk-EJWAO37W.js → chunk-IQCBK4CE.js} +7 -7
- package/Build/Workers/{chunk-SAYI6XNA.js → chunk-JY6WB2NK.js} +13 -13
- package/Build/Workers/{chunk-AMGYJNEB.js → chunk-KFCTEEBD.js} +10 -10
- package/Build/Workers/{chunk-FBRBVOAJ.js → chunk-LID3UUML.js} +6 -6
- package/Build/Workers/{chunk-DUMQKN4C.js → chunk-MMNPUV23.js} +2 -2
- package/Build/Workers/{chunk-XEOY7FXL.js → chunk-N3OQDJDV.js} +13 -13
- package/Build/Workers/{chunk-CGHLEZ43.js → chunk-N73NY3KY.js} +1 -1
- package/Build/Workers/{chunk-HYNBEK4C.js → chunk-N7FIYNQV.js} +4 -4
- package/Build/Workers/{chunk-BWTCHYX6.js → chunk-P2BTKBVY.js} +10 -10
- package/Build/Workers/{chunk-FDNL4I6K.js → chunk-PNAD2XAN.js} +6 -6
- package/Build/Workers/{chunk-PZKVP2WI.js → chunk-QX5ASOZZ.js} +14 -14
- package/Build/Workers/{chunk-KXTDRKW5.js → chunk-R5NOUYKW.js} +7 -7
- package/Build/Workers/{chunk-437Q4WBM.js → chunk-TDVU7NH7.js} +6 -6
- package/Build/Workers/{chunk-ZEHXFKIR.js → chunk-TIEL2RYB.js} +15 -15
- package/Build/Workers/{chunk-ASJKRCO4.js → chunk-U5O26DDO.js} +2 -2
- package/Build/Workers/{chunk-7W3AMBD6.js → chunk-UJ76JVUZ.js} +5 -5
- package/Build/Workers/{chunk-KGVHVTX7.js → chunk-ULABUYF6.js} +18 -18
- package/Build/Workers/{chunk-7FAOTOUR.js → chunk-VIAGIVGP.js} +8 -8
- package/Build/Workers/{chunk-6EZ4NFIC.js → chunk-WYMW5NZB.js} +2 -2
- package/Build/Workers/{chunk-TV4Q4TKV.js → chunk-XKGSTUQO.js} +9 -9
- package/Build/Workers/{chunk-GQ66IPL6.js → chunk-XNRYWRVT.js} +1 -1
- package/Build/Workers/{chunk-ZADWOYGF.js → chunk-YK5RU5AO.js} +2 -2
- package/Build/Workers/{chunk-EZPA2AXQ.js → chunk-ZERWARDV.js} +1 -1
- package/Build/Workers/combineGeometry.js +23 -23
- package/Build/Workers/createBoxGeometry.js +17 -17
- package/Build/Workers/createBoxOutlineGeometry.js +15 -15
- package/Build/Workers/createCircleGeometry.js +25 -25
- package/Build/Workers/createCircleOutlineGeometry.js +18 -18
- package/Build/Workers/createCoplanarPolygonGeometry.js +32 -32
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +30 -30
- package/Build/Workers/createCorridorGeometry.js +29 -29
- package/Build/Workers/createCorridorOutlineGeometry.js +28 -28
- package/Build/Workers/createCylinderGeometry.js +19 -19
- package/Build/Workers/createCylinderOutlineGeometry.js +17 -17
- package/Build/Workers/createEllipseGeometry.js +25 -25
- package/Build/Workers/createEllipseOutlineGeometry.js +18 -18
- package/Build/Workers/createEllipsoidGeometry.js +18 -18
- package/Build/Workers/createEllipsoidOutlineGeometry.js +17 -17
- package/Build/Workers/createFrustumGeometry.js +17 -17
- package/Build/Workers/createFrustumOutlineGeometry.js +17 -17
- package/Build/Workers/createGeometry.js +23 -23
- package/Build/Workers/createGroundPolylineGeometry.js +21 -21
- package/Build/Workers/createPlaneGeometry.js +15 -15
- package/Build/Workers/createPlaneOutlineGeometry.js +14 -14
- package/Build/Workers/createPolygonGeometry.js +40 -38
- package/Build/Workers/createPolygonOutlineGeometry.js +29 -29
- package/Build/Workers/createPolylineGeometry.js +24 -24
- package/Build/Workers/createPolylineVolumeGeometry.js +31 -31
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +27 -27
- package/Build/Workers/createRectangleGeometry.js +26 -26
- package/Build/Workers/createRectangleOutlineGeometry.js +19 -19
- package/Build/Workers/createSimplePolylineGeometry.js +22 -22
- package/Build/Workers/createSphereGeometry.js +18 -18
- package/Build/Workers/createSphereOutlineGeometry.js +17 -17
- package/Build/Workers/createTaskProcessorWorker.js +3 -3
- package/Build/Workers/createVectorTileClampedPolylines.js +14 -14
- package/Build/Workers/createVectorTileGeometries.js +23 -23
- package/Build/Workers/createVectorTilePoints.js +12 -12
- package/Build/Workers/createVectorTilePolygons.js +21 -21
- package/Build/Workers/createVectorTilePolylines.js +14 -14
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +21 -21
- package/Build/Workers/createVerticesFromHeightmap.js +21 -21
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +18 -18
- package/Build/Workers/createWallGeometry.js +23 -23
- package/Build/Workers/createWallOutlineGeometry.js +22 -22
- package/Build/Workers/decodeDraco.js +11 -11
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
- package/Build/Workers/decodeI3S.js +9 -9
- package/Build/Workers/transcodeKTX2.js +7 -7
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +21 -21
- package/README.md +1 -1
- package/Source/Core/EllipsoidRhumbLine.js +10 -4
- package/Source/Core/Ion.js +1 -1
- package/Source/Core/PolygonGeometry.js +7 -6
- package/Source/DataSources/EntityCluster.js +1 -1
- package/Source/Renderer/UniformState.js +8 -18
- package/Source/Scene/ArcGisMapService.js +1 -1
- package/Source/Scene/BingMapsImageryProvider.js +27 -6
- package/Source/Scene/LabelCollection.js +2 -1
- package/Source/Scene/createGooglePhotorealistic3DTileset.js +0 -1
- package/index.d.ts +6 -0
- package/index.js +291 -291
- package/package.json +1 -1
|
@@ -648,7 +648,7 @@ function createGetEntity(
|
|
|
648
648
|
|
|
649
649
|
const unusedIndices = this[unusedIndicesProperty];
|
|
650
650
|
if (unusedIndices.length > 0) {
|
|
651
|
-
index = unusedIndices.
|
|
651
|
+
index = unusedIndices.shift();
|
|
652
652
|
entityItem = collection.get(index);
|
|
653
653
|
} else {
|
|
654
654
|
entityItem = collection.add();
|
|
@@ -1513,7 +1513,6 @@ function cleanNormal(uniformState) {
|
|
|
1513
1513
|
|
|
1514
1514
|
const m = uniformState._normal;
|
|
1515
1515
|
Matrix4.getMatrix3(uniformState.inverseModelView, m);
|
|
1516
|
-
Matrix3.getRotation(m, m);
|
|
1517
1516
|
Matrix3.transpose(m, m);
|
|
1518
1517
|
}
|
|
1519
1518
|
}
|
|
@@ -1524,7 +1523,6 @@ function cleanNormal3D(uniformState) {
|
|
|
1524
1523
|
|
|
1525
1524
|
const m = uniformState._normal3D;
|
|
1526
1525
|
Matrix4.getMatrix3(uniformState.inverseModelView3D, m);
|
|
1527
|
-
Matrix3.getRotation(m, m);
|
|
1528
1526
|
Matrix3.transpose(m, m);
|
|
1529
1527
|
}
|
|
1530
1528
|
}
|
|
@@ -1532,28 +1530,20 @@ function cleanNormal3D(uniformState) {
|
|
|
1532
1530
|
function cleanInverseNormal(uniformState) {
|
|
1533
1531
|
if (uniformState._inverseNormalDirty) {
|
|
1534
1532
|
uniformState._inverseNormalDirty = false;
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
);
|
|
1539
|
-
Matrix3.getRotation(
|
|
1540
|
-
uniformState._inverseNormal,
|
|
1541
|
-
uniformState._inverseNormal
|
|
1542
|
-
);
|
|
1533
|
+
|
|
1534
|
+
const m = uniformState._inverseNormal;
|
|
1535
|
+
Matrix4.getMatrix3(uniformState.modelView, m);
|
|
1536
|
+
Matrix3.transpose(m, m);
|
|
1543
1537
|
}
|
|
1544
1538
|
}
|
|
1545
1539
|
|
|
1546
1540
|
function cleanInverseNormal3D(uniformState) {
|
|
1547
1541
|
if (uniformState._inverseNormal3DDirty) {
|
|
1548
1542
|
uniformState._inverseNormal3DDirty = false;
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
);
|
|
1553
|
-
Matrix3.getRotation(
|
|
1554
|
-
uniformState._inverseNormal3D,
|
|
1555
|
-
uniformState._inverseNormal3D
|
|
1556
|
-
);
|
|
1543
|
+
|
|
1544
|
+
const m = uniformState._inverseNormal3D;
|
|
1545
|
+
Matrix4.getMatrix3(uniformState.modelView3D, m);
|
|
1546
|
+
Matrix3.transpose(m, m);
|
|
1557
1547
|
}
|
|
1558
1548
|
}
|
|
1559
1549
|
|
|
@@ -4,7 +4,7 @@ import Resource from "../Core/Resource.js";
|
|
|
4
4
|
|
|
5
5
|
let defaultTokenCredit;
|
|
6
6
|
const defaultAccessToken =
|
|
7
|
-
"
|
|
7
|
+
"AAPK72121c3f05244af285ad75999db084bfDGkWA0QECX6QWOdaQmarXC21i1ogkvj8XCctaZExrW8Hw1AT58yG7twH3VFzZl13";
|
|
8
8
|
/**
|
|
9
9
|
* Default options for accessing the ArcGIS image tile service.
|
|
10
10
|
*
|
|
@@ -24,6 +24,7 @@ import ImageryProvider from "./ImageryProvider.js";
|
|
|
24
24
|
* @property {string} [tileProtocol] The protocol to use when loading tiles, e.g. 'http' or 'https'.
|
|
25
25
|
* By default, tiles are loaded using the same protocol as the page.
|
|
26
26
|
* @property {BingMapsStyle} [mapStyle=BingMapsStyle.AERIAL] The type of Bing Maps imagery to load.
|
|
27
|
+
* @property {string} [mapLayer] Additional display layer options as defined on {@link https://learn.microsoft.com/en-us/bingmaps/rest-services/imagery/get-imagery-metadata#template-parameters}
|
|
27
28
|
* @property {string} [culture=''] The culture to use when requesting Bing Maps imagery. Not
|
|
28
29
|
* all cultures are supported. See {@link http://msdn.microsoft.com/en-us/library/hh441729.aspx}
|
|
29
30
|
* for information on the supported cultures.
|
|
@@ -209,6 +210,7 @@ function BingMapsImageryProvider(options) {
|
|
|
209
210
|
this._defaultMagnificationFilter = undefined;
|
|
210
211
|
|
|
211
212
|
this._mapStyle = defaultValue(options.mapStyle, BingMapsStyle.AERIAL);
|
|
213
|
+
this._mapLayer = options.mapLayer;
|
|
212
214
|
this._culture = defaultValue(options.culture, "");
|
|
213
215
|
this._key = options.key;
|
|
214
216
|
|
|
@@ -287,6 +289,18 @@ Object.defineProperties(BingMapsImageryProvider.prototype, {
|
|
|
287
289
|
},
|
|
288
290
|
},
|
|
289
291
|
|
|
292
|
+
/**
|
|
293
|
+
* Gets the additional map layer options as defined in {@link https://learn.microsoft.com/en-us/bingmaps/rest-services/imagery/get-imagery-metadata#template-parameters}/
|
|
294
|
+
* @memberof BingMapsImageryProvider.prototype
|
|
295
|
+
* @type {string}
|
|
296
|
+
* @readonly
|
|
297
|
+
*/
|
|
298
|
+
mapLayer: {
|
|
299
|
+
get: function () {
|
|
300
|
+
return this._mapLayer;
|
|
301
|
+
},
|
|
302
|
+
},
|
|
303
|
+
|
|
290
304
|
/**
|
|
291
305
|
* The culture to use when requesting Bing Maps imagery. Not
|
|
292
306
|
* all cultures are supported. See {@link http://msdn.microsoft.com/en-us/library/hh441729.aspx}
|
|
@@ -426,7 +440,7 @@ Object.defineProperties(BingMapsImageryProvider.prototype, {
|
|
|
426
440
|
*/
|
|
427
441
|
hasAlphaChannel: {
|
|
428
442
|
get: function () {
|
|
429
|
-
return
|
|
443
|
+
return defined(this.mapLayer);
|
|
430
444
|
},
|
|
431
445
|
},
|
|
432
446
|
});
|
|
@@ -475,13 +489,20 @@ BingMapsImageryProvider.fromUrl = async function (url, options) {
|
|
|
475
489
|
const mapStyle = defaultValue(options.mapStyle, BingMapsStyle.AERIAL);
|
|
476
490
|
const resource = Resource.createIfNeeded(url);
|
|
477
491
|
resource.appendForwardSlash();
|
|
492
|
+
|
|
493
|
+
const queryParameters = {
|
|
494
|
+
incl: "ImageryProviders",
|
|
495
|
+
key: options.key,
|
|
496
|
+
uriScheme: tileProtocol,
|
|
497
|
+
};
|
|
498
|
+
|
|
499
|
+
if (defined(options.mapLayer)) {
|
|
500
|
+
queryParameters.mapLayer = options.mapLayer;
|
|
501
|
+
}
|
|
502
|
+
|
|
478
503
|
const metadataResource = resource.getDerivedResource({
|
|
479
504
|
url: `REST/v1/Imagery/Metadata/${mapStyle}`,
|
|
480
|
-
queryParameters:
|
|
481
|
-
incl: "ImageryProviders",
|
|
482
|
-
key: options.key,
|
|
483
|
-
uriScheme: tileProtocol,
|
|
484
|
-
},
|
|
505
|
+
queryParameters: queryParameters,
|
|
485
506
|
});
|
|
486
507
|
|
|
487
508
|
const provider = new BingMapsImageryProvider(options);
|
|
@@ -143,7 +143,7 @@ function rebindAllGlyphs(labelCollection, label) {
|
|
|
143
143
|
glyphs.length = textLength;
|
|
144
144
|
|
|
145
145
|
const showBackground =
|
|
146
|
-
label._showBackground && text.split("\n").join("").length > 0;
|
|
146
|
+
label.show && label._showBackground && text.split("\n").join("").length > 0;
|
|
147
147
|
let backgroundBillboard = label._backgroundBillboard;
|
|
148
148
|
const backgroundBillboardCollection =
|
|
149
149
|
labelCollection._backgroundBillboardCollection;
|
|
@@ -181,6 +181,7 @@ function rebindAllGlyphs(labelCollection, label) {
|
|
|
181
181
|
label._distanceDisplayCondition;
|
|
182
182
|
backgroundBillboard.disableDepthTestDistance =
|
|
183
183
|
label._disableDepthTestDistance;
|
|
184
|
+
backgroundBillboard.clusterShow = label.clusterShow;
|
|
184
185
|
}
|
|
185
186
|
|
|
186
187
|
const glyphTextureCache = labelCollection._glyphTextureCache;
|
|
@@ -41,7 +41,6 @@ import Resource from "../Core/Resource.js";
|
|
|
41
41
|
*/
|
|
42
42
|
async function createGooglePhotorealistic3DTileset(key, options) {
|
|
43
43
|
options = defaultValue(options, {});
|
|
44
|
-
options.showCreditsOnScreen = true;
|
|
45
44
|
options.cacheBytes = defaultValue(options.cacheBytes, 1536 * 1024 * 1024);
|
|
46
45
|
options.maximumCacheOverflowBytes = defaultValue(
|
|
47
46
|
options.maximumCacheOverflowBytes,
|
package/index.d.ts
CHANGED
|
@@ -26114,6 +26114,7 @@ export namespace BingMapsImageryProvider {
|
|
|
26114
26114
|
* @property [tileProtocol] - The protocol to use when loading tiles, e.g. 'http' or 'https'.
|
|
26115
26115
|
* By default, tiles are loaded using the same protocol as the page.
|
|
26116
26116
|
* @property [mapStyle = BingMapsStyle.AERIAL] - The type of Bing Maps imagery to load.
|
|
26117
|
+
* @property [mapLayer] - Additional display layer options as defined on {@link https://learn.microsoft.com/en-us/bingmaps/rest-services/imagery/get-imagery-metadata#template-parameters}
|
|
26117
26118
|
* @property [culture = ''] - The culture to use when requesting Bing Maps imagery. Not
|
|
26118
26119
|
* all cultures are supported. See {@link http://msdn.microsoft.com/en-us/library/hh441729.aspx}
|
|
26119
26120
|
* for information on the supported cultures.
|
|
@@ -26127,6 +26128,7 @@ export namespace BingMapsImageryProvider {
|
|
|
26127
26128
|
key?: string;
|
|
26128
26129
|
tileProtocol?: string;
|
|
26129
26130
|
mapStyle?: BingMapsStyle;
|
|
26131
|
+
mapLayer?: string;
|
|
26130
26132
|
culture?: string;
|
|
26131
26133
|
ellipsoid?: Ellipsoid;
|
|
26132
26134
|
tileDiscardPolicy?: TileDiscardPolicy;
|
|
@@ -26165,6 +26167,10 @@ export class BingMapsImageryProvider {
|
|
|
26165
26167
|
* Gets the type of Bing Maps imagery to load.
|
|
26166
26168
|
*/
|
|
26167
26169
|
readonly mapStyle: BingMapsStyle;
|
|
26170
|
+
/**
|
|
26171
|
+
* Gets the additional map layer options as defined in {@link https://learn.microsoft.com/en-us/bingmaps/rest-services/imagery/get-imagery-metadata#template-parameters}/
|
|
26172
|
+
*/
|
|
26173
|
+
readonly mapLayer: string;
|
|
26168
26174
|
/**
|
|
26169
26175
|
* The culture to use when requesting Bing Maps imagery. Not
|
|
26170
26176
|
* all cultures are supported. See {@link http://msdn.microsoft.com/en-us/library/hh441729.aspx}
|