@cesium/engine 2.4.0 → 3.0.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/{Color-e5bfda3f.js → Color-8e135f71.js} +4 -4
- package/Build/Workers/cesiumWorkerBootstrapper.js +1 -1
- package/Build/Workers/createPolylineGeometry.js +1 -1
- package/Build/Workers/createSimplePolylineGeometry.js +1 -1
- package/Build/Workers/createVectorTileGeometries.js +1 -1
- package/Build/Workers/createVectorTilePolygons.js +1 -1
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +0 -22
- package/Build/Workers/package.js +1 -1
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Source/Core/ArcGISTiledElevationTerrainProvider.js +0 -75
- package/Source/Core/CesiumTerrainProvider.js +25 -75
- package/Source/Core/Color.js +4 -4
- package/Source/Core/CustomHeightmapTerrainProvider.js +0 -38
- package/Source/Core/EllipsoidTerrainProvider.js +0 -37
- package/Source/Core/GoogleEarthEnterpriseMetadata.js +0 -53
- package/Source/Core/GoogleEarthEnterpriseTerrainProvider.js +1 -101
- package/Source/Core/GoogleMaps.js +1 -1
- package/Source/Core/Ion.js +1 -1
- package/Source/Core/TerrainProvider.js +0 -22
- package/Source/Core/VRTheWorldTerrainProvider.js +0 -59
- package/Source/Core/sampleTerrain.js +0 -3
- package/Source/Core/sampleTerrainMostDetailed.js +0 -3
- package/Source/DataSources/Cesium3DTilesetVisualizer.js +6 -5
- package/Source/DataSources/DataSourceDisplay.js +3 -2
- package/Source/DataSources/Entity.js +2 -3
- package/Source/DataSources/KmlTour.js +1 -12
- package/Source/DataSources/ModelVisualizer.js +0 -7
- package/Source/Renderer/Context.js +10 -2
- package/Source/Renderer/demodernizeShader.js +3 -0
- package/Source/Scene/ArcGisMapServerImageryProvider.js +7 -335
- package/Source/Scene/ArcGisMapService.js +1 -1
- package/Source/Scene/Billboard.js +7 -7
- package/Source/Scene/BingMapsImageryProvider.js +0 -326
- package/Source/Scene/Camera.js +1 -1
- package/Source/Scene/Cesium3DTile.js +4 -5
- package/Source/Scene/Cesium3DTileBatchTable.js +0 -3
- package/Source/Scene/Cesium3DTileContent.js +0 -16
- package/Source/Scene/Cesium3DTilesVoxelProvider.js +0 -123
- package/Source/Scene/Cesium3DTileset.js +183 -184
- package/Source/Scene/Cesium3DTilesetBaseTraversal.js +1 -1
- package/Source/Scene/Cesium3DTilesetCache.js +1 -3
- package/Source/Scene/Cesium3DTilesetSkipTraversal.js +5 -2
- package/Source/Scene/Cesium3DTilesetTraversal.js +2 -2
- package/Source/Scene/ClassificationPrimitive.js +5 -43
- package/Source/Scene/Composite3DTileContent.js +0 -27
- package/Source/Scene/CreditDisplay.js +0 -54
- package/Source/Scene/DerivedCommand.js +15 -10
- package/Source/Scene/Empty3DTileContent.js +0 -21
- package/Source/Scene/Geometry3DTileContent.js +0 -29
- package/Source/Scene/Globe.js +0 -4
- package/Source/Scene/GlobeSurfaceTile.js +13 -2
- package/Source/Scene/GlobeSurfaceTileProvider.js +10 -37
- package/Source/Scene/GltfPipeline/removeUnusedElements.js +27 -0
- package/Source/Scene/GltfPipeline/updateVersion.js +21 -4
- package/Source/Scene/GoogleEarthEnterpriseImageryProvider.js +1 -339
- package/Source/Scene/GoogleEarthEnterpriseMapsProvider.js +0 -326
- package/Source/Scene/GridImageryProvider.js +0 -274
- package/Source/Scene/GroundPolylinePrimitive.js +5 -38
- package/Source/Scene/GroundPrimitive.js +5 -43
- package/Source/Scene/I3SDataProvider.js +4 -99
- package/Source/Scene/I3SLayer.js +15 -22
- package/Source/Scene/Imagery.js +1 -6
- package/Source/Scene/ImageryLayer.js +1 -30
- package/Source/Scene/ImageryProvider.js +0 -138
- package/Source/Scene/Implicit3DTileContent.js +0 -23
- package/Source/Scene/IonImageryProvider.js +1 -369
- package/Source/Scene/MapboxImageryProvider.js +0 -276
- package/Source/Scene/MapboxStyleImageryProvider.js +0 -274
- package/Source/Scene/Model/CustomShader.js +1 -1
- package/Source/Scene/Model/Model.js +6 -249
- package/Source/Scene/Model/Model3DTileContent.js +0 -50
- package/Source/Scene/Model/ModelAnimationCollection.js +1 -1
- package/Source/Scene/Model/PointCloudStylingPipelineStage.js +1 -1
- package/Source/Scene/Multiple3DTileContent.js +0 -27
- package/Source/Scene/Primitive.js +10 -38
- package/Source/Scene/QuadtreePrimitive.js +3 -5
- package/Source/Scene/QuadtreeTileProvider.js +0 -10
- package/Source/Scene/Scene.js +3 -3
- package/Source/Scene/ScreenSpaceCameraController.js +7 -6
- package/Source/Scene/SingleTileImageryProvider.js +6 -302
- package/Source/Scene/TileCoordinatesImageryProvider.js +0 -273
- package/Source/Scene/TileMapServiceImageryProvider.js +3 -48
- package/Source/Scene/Tileset3DTileContent.js +0 -22
- package/Source/Scene/TimeDynamicPointCloud.js +0 -28
- package/Source/Scene/UrlTemplateImageryProvider.js +0 -375
- package/Source/Scene/Vector3DTileContent.js +0 -29
- package/Source/Scene/VoxelPrimitive.js +9 -49
- package/Source/Scene/VoxelProvider.js +0 -24
- package/Source/Scene/WebMapServiceImageryProvider.js +0 -274
- package/Source/Scene/WebMapTileServiceImageryProvider.js +0 -274
- package/Source/Scene/computeFlyToLocationForRectangle.js +0 -2
- package/Source/Scene/createGooglePhotorealistic3DTileset.js +5 -0
- package/Source/Shaders/BillboardCollectionFS.glsl +0 -4
- package/Source/Shaders/BillboardCollectionFS.js +1 -5
- package/Source/Shaders/Builtin/Functions/writeLogDepth.glsl +0 -3
- package/Source/Shaders/Builtin/Functions/writeLogDepth.js +0 -3
- package/Source/Shaders/Materials/ElevationContourMaterial.glsl +0 -4
- package/Source/Shaders/Materials/ElevationContourMaterial.js +1 -5
- package/Source/Shaders/Materials/GridMaterial.glsl +0 -4
- package/Source/Shaders/Materials/GridMaterial.js +1 -5
- package/Source/Shaders/Materials/PolylineArrowMaterial.glsl +0 -4
- package/Source/Shaders/Materials/PolylineArrowMaterial.js +1 -5
- package/Source/Shaders/Model/ModelFS.glsl +0 -6
- package/Source/Shaders/Model/ModelFS.js +1 -7
- package/Source/Widget/CesiumWidget.js +2 -19
- package/index.d.ts +69 -1190
- package/index.js +95 -98
- package/package.json +3 -3
- package/Source/Core/createWorldTerrain.js +0 -60
- package/Source/Scene/createOsmBuildings.js +0 -81
- package/Source/Scene/createWorldImagery.js +0 -47
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import Color from "../Core/Color.js";
|
|
2
2
|
import defaultValue from "../Core/defaultValue.js";
|
|
3
3
|
import defined from "../Core/defined.js";
|
|
4
|
-
import deprecationWarning from "../Core/deprecationWarning.js";
|
|
5
4
|
import Event from "../Core/Event.js";
|
|
6
5
|
import GeographicTilingScheme from "../Core/GeographicTilingScheme.js";
|
|
7
6
|
|
|
@@ -39,8 +38,6 @@ function TileCoordinatesImageryProvider(options) {
|
|
|
39
38
|
this._errorEvent = new Event();
|
|
40
39
|
this._tileWidth = defaultValue(options.tileWidth, 256);
|
|
41
40
|
this._tileHeight = defaultValue(options.tileHeight, 256);
|
|
42
|
-
this._ready = true;
|
|
43
|
-
this._readyPromise = Promise.resolve(true);
|
|
44
41
|
|
|
45
42
|
this._defaultAlpha = undefined;
|
|
46
43
|
this._defaultNightAlpha = undefined;
|
|
@@ -167,40 +164,6 @@ Object.defineProperties(TileCoordinatesImageryProvider.prototype, {
|
|
|
167
164
|
},
|
|
168
165
|
},
|
|
169
166
|
|
|
170
|
-
/**
|
|
171
|
-
* Gets a value indicating whether or not the provider is ready for use.
|
|
172
|
-
* @memberof TileCoordinatesImageryProvider.prototype
|
|
173
|
-
* @type {boolean}
|
|
174
|
-
* @readonly
|
|
175
|
-
* @deprecated
|
|
176
|
-
*/
|
|
177
|
-
ready: {
|
|
178
|
-
get: function () {
|
|
179
|
-
deprecationWarning(
|
|
180
|
-
"TileCoordinatesImageryProvider.ready",
|
|
181
|
-
"TileCoordinatesImageryProvider.ready was deprecated in CesiumJS 1.104. It will be in CesiumJS 1.107."
|
|
182
|
-
);
|
|
183
|
-
return true;
|
|
184
|
-
},
|
|
185
|
-
},
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* Gets a promise that resolves to true when the provider is ready for use.
|
|
189
|
-
* @memberof TileCoordinatesImageryProvider.prototype
|
|
190
|
-
* @type {Promise<boolean>}
|
|
191
|
-
* @readonly
|
|
192
|
-
* @deprecated
|
|
193
|
-
*/
|
|
194
|
-
readyPromise: {
|
|
195
|
-
get: function () {
|
|
196
|
-
deprecationWarning(
|
|
197
|
-
"TileCoordinatesImageryProvider.readyPromise",
|
|
198
|
-
"TileCoordinatesImageryProvider.readyPromise was deprecated in CesiumJS 1.104. It will be in CesiumJS 1.107."
|
|
199
|
-
);
|
|
200
|
-
return this._readyPromise;
|
|
201
|
-
},
|
|
202
|
-
},
|
|
203
|
-
|
|
204
167
|
/**
|
|
205
168
|
* Gets the credit to display when this imagery provider is active. Typically this is used to credit
|
|
206
169
|
* the source of the imagery.
|
|
@@ -229,242 +192,6 @@ Object.defineProperties(TileCoordinatesImageryProvider.prototype, {
|
|
|
229
192
|
return true;
|
|
230
193
|
},
|
|
231
194
|
},
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* The default alpha blending value of this provider, with 0.0 representing fully transparent and
|
|
235
|
-
* 1.0 representing fully opaque.
|
|
236
|
-
* @memberof TileCoordinatesImageryProvider.prototype
|
|
237
|
-
* @type {Number|undefined}
|
|
238
|
-
* @deprecated
|
|
239
|
-
*/
|
|
240
|
-
defaultAlpha: {
|
|
241
|
-
get: function () {
|
|
242
|
-
deprecationWarning(
|
|
243
|
-
"TileCoordinatesImageryProvider.defaultAlpha",
|
|
244
|
-
"TileCoordinatesImageryProvider.defaultAlpha was deprecated in CesiumJS 1.104. It will be in CesiumJS 1.107. Use ImageryLayer.alpha instead."
|
|
245
|
-
);
|
|
246
|
-
return this._defaultAlpha;
|
|
247
|
-
},
|
|
248
|
-
set: function (value) {
|
|
249
|
-
deprecationWarning(
|
|
250
|
-
"TileCoordinatesImageryProvider.defaultAlpha",
|
|
251
|
-
"TileCoordinatesImageryProvider.defaultAlpha was deprecated in CesiumJS 1.104. It will be in CesiumJS 1.107. Use ImageryLayer.alpha instead."
|
|
252
|
-
);
|
|
253
|
-
this._defaultAlpha = value;
|
|
254
|
-
},
|
|
255
|
-
},
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* The default alpha blending value on the night side of the globe of this provider, with 0.0 representing fully transparent and
|
|
259
|
-
* 1.0 representing fully opaque.
|
|
260
|
-
* @memberof TileCoordinatesImageryProvider.prototype
|
|
261
|
-
* @type {Number|undefined}
|
|
262
|
-
* @deprecated
|
|
263
|
-
*/
|
|
264
|
-
defaultNightAlpha: {
|
|
265
|
-
get: function () {
|
|
266
|
-
deprecationWarning(
|
|
267
|
-
"TileCoordinatesImageryProvider.defaultNightAlpha",
|
|
268
|
-
"TileCoordinatesImageryProvider.defaultNightAlpha was deprecated in CesiumJS 1.104. It will be in CesiumJS 1.107. Use ImageryLayer.nightAlpha instead."
|
|
269
|
-
);
|
|
270
|
-
return this._defaultNightAlpha;
|
|
271
|
-
},
|
|
272
|
-
set: function (value) {
|
|
273
|
-
deprecationWarning(
|
|
274
|
-
"TileCoordinatesImageryProvider.defaultNightAlpha",
|
|
275
|
-
"TileCoordinatesImageryProvider.defaultNightAlpha was deprecated in CesiumJS 1.104. It will be in CesiumJS 1.107. Use ImageryLayer.nightAlpha instead."
|
|
276
|
-
);
|
|
277
|
-
this._defaultNightAlpha = value;
|
|
278
|
-
},
|
|
279
|
-
},
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* The default alpha blending value on the day side of the globe of this provider, with 0.0 representing fully transparent and
|
|
283
|
-
* 1.0 representing fully opaque.
|
|
284
|
-
* @memberof TileCoordinatesImageryProvider.prototype
|
|
285
|
-
* @type {Number|undefined}
|
|
286
|
-
* @deprecated
|
|
287
|
-
*/
|
|
288
|
-
defaultDayAlpha: {
|
|
289
|
-
get: function () {
|
|
290
|
-
deprecationWarning(
|
|
291
|
-
"TileCoordinatesImageryProvider.defaultDayAlpha",
|
|
292
|
-
"TileCoordinatesImageryProvider.defaultDayAlpha was deprecated in CesiumJS 1.104. It will be in CesiumJS 1.107. Use ImageryLayer.dayAlpha instead."
|
|
293
|
-
);
|
|
294
|
-
return this._defaultDayAlpha;
|
|
295
|
-
},
|
|
296
|
-
set: function (value) {
|
|
297
|
-
deprecationWarning(
|
|
298
|
-
"TileCoordinatesImageryProvider.defaultDayAlpha",
|
|
299
|
-
"TileCoordinatesImageryProvider.defaultDayAlpha was deprecated in CesiumJS 1.104. It will be in CesiumJS 1.107. Use ImageryLayer.dayAlpha instead."
|
|
300
|
-
);
|
|
301
|
-
this._defaultDayAlpha = value;
|
|
302
|
-
},
|
|
303
|
-
},
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* The default brightness of this provider. 1.0 uses the unmodified imagery color. Less than 1.0
|
|
307
|
-
* makes the imagery darker while greater than 1.0 makes it brighter.
|
|
308
|
-
* @memberof TileCoordinatesImageryProvider.prototype
|
|
309
|
-
* @type {Number|undefined}
|
|
310
|
-
* @deprecated
|
|
311
|
-
*/
|
|
312
|
-
defaultBrightness: {
|
|
313
|
-
get: function () {
|
|
314
|
-
deprecationWarning(
|
|
315
|
-
"TileCoordinatesImageryProvider.defaultBrightness",
|
|
316
|
-
"TileCoordinatesImageryProvider.defaultBrightness was deprecated in CesiumJS 1.104. It will be in CesiumJS 1.107. Use ImageryLayer.brightness instead."
|
|
317
|
-
);
|
|
318
|
-
return this._defaultBrightness;
|
|
319
|
-
},
|
|
320
|
-
set: function (value) {
|
|
321
|
-
deprecationWarning(
|
|
322
|
-
"TileCoordinatesImageryProvider.defaultBrightness",
|
|
323
|
-
"TileCoordinatesImageryProvider.defaultBrightness was deprecated in CesiumJS 1.104. It will be in CesiumJS 1.107. Use ImageryLayer.brightness instead."
|
|
324
|
-
);
|
|
325
|
-
this._defaultBrightness = value;
|
|
326
|
-
},
|
|
327
|
-
},
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* The default contrast of this provider. 1.0 uses the unmodified imagery color. Less than 1.0 reduces
|
|
331
|
-
* the contrast while greater than 1.0 increases it.
|
|
332
|
-
* @memberof TileCoordinatesImageryProvider.prototype
|
|
333
|
-
* @type {Number|undefined}
|
|
334
|
-
* @deprecated
|
|
335
|
-
*/
|
|
336
|
-
defaultContrast: {
|
|
337
|
-
get: function () {
|
|
338
|
-
deprecationWarning(
|
|
339
|
-
"TileCoordinatesImageryProvider.defaultContrast",
|
|
340
|
-
"TileCoordinatesImageryProvider.defaultContrast was deprecated in CesiumJS 1.104. It will be in CesiumJS 1.107. Use ImageryLayer.contrast instead."
|
|
341
|
-
);
|
|
342
|
-
return this._defaultContrast;
|
|
343
|
-
},
|
|
344
|
-
set: function (value) {
|
|
345
|
-
deprecationWarning(
|
|
346
|
-
"TileCoordinatesImageryProvider.defaultContrast",
|
|
347
|
-
"TileCoordinatesImageryProvider.defaultContrast was deprecated in CesiumJS 1.104. It will be in CesiumJS 1.107. Use ImageryLayer.contrast instead."
|
|
348
|
-
);
|
|
349
|
-
this._defaultContrast = value;
|
|
350
|
-
},
|
|
351
|
-
},
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
* The default hue of this provider in radians. 0.0 uses the unmodified imagery color.
|
|
355
|
-
* @memberof TileCoordinatesImageryProvider.prototype
|
|
356
|
-
* @type {Number|undefined}
|
|
357
|
-
* @deprecated
|
|
358
|
-
*/
|
|
359
|
-
defaultHue: {
|
|
360
|
-
get: function () {
|
|
361
|
-
deprecationWarning(
|
|
362
|
-
"TileCoordinatesImageryProvider.defaultHue",
|
|
363
|
-
"TileCoordinatesImageryProvider.defaultHue was deprecated in CesiumJS 1.104. It will be in CesiumJS 1.107. Use ImageryLayer.hue instead."
|
|
364
|
-
);
|
|
365
|
-
return this._defaultHue;
|
|
366
|
-
},
|
|
367
|
-
set: function (value) {
|
|
368
|
-
deprecationWarning(
|
|
369
|
-
"TileCoordinatesImageryProvider.defaultHue",
|
|
370
|
-
"TileCoordinatesImageryProvider.defaultHue was deprecated in CesiumJS 1.104. It will be in CesiumJS 1.107. Use ImageryLayer.hue instead."
|
|
371
|
-
);
|
|
372
|
-
this._defaultHue = value;
|
|
373
|
-
},
|
|
374
|
-
},
|
|
375
|
-
|
|
376
|
-
/**
|
|
377
|
-
* The default saturation of this provider. 1.0 uses the unmodified imagery color. Less than 1.0 reduces the
|
|
378
|
-
* saturation while greater than 1.0 increases it.
|
|
379
|
-
* @memberof TileCoordinatesImageryProvider.prototype
|
|
380
|
-
* @type {Number|undefined}
|
|
381
|
-
* @deprecated
|
|
382
|
-
*/
|
|
383
|
-
defaultSaturation: {
|
|
384
|
-
get: function () {
|
|
385
|
-
deprecationWarning(
|
|
386
|
-
"TileCoordinatesImageryProvider.defaultSaturation",
|
|
387
|
-
"TileCoordinatesImageryProvider.defaultSaturation was deprecated in CesiumJS 1.104. It will be in CesiumJS 1.107. Use ImageryLayer.saturation instead."
|
|
388
|
-
);
|
|
389
|
-
return this._defaultSaturation;
|
|
390
|
-
},
|
|
391
|
-
set: function (value) {
|
|
392
|
-
deprecationWarning(
|
|
393
|
-
"TileCoordinatesImageryProvider.defaultSaturation",
|
|
394
|
-
"TileCoordinatesImageryProvider.defaultSaturation was deprecated in CesiumJS 1.104. It will be in CesiumJS 1.107. Use ImageryLayer.saturation instead."
|
|
395
|
-
);
|
|
396
|
-
this._defaultSaturation = value;
|
|
397
|
-
},
|
|
398
|
-
},
|
|
399
|
-
|
|
400
|
-
/**
|
|
401
|
-
* The default gamma correction to apply to this provider. 1.0 uses the unmodified imagery color.
|
|
402
|
-
* @memberof TileCoordinatesImageryProvider.prototype
|
|
403
|
-
* @type {Number|undefined}
|
|
404
|
-
* @deprecated
|
|
405
|
-
*/
|
|
406
|
-
defaultGamma: {
|
|
407
|
-
get: function () {
|
|
408
|
-
deprecationWarning(
|
|
409
|
-
"TileCoordinatesImageryProvider.defaultGamma",
|
|
410
|
-
"TileCoordinatesImageryProvider.defaultGamma was deprecated in CesiumJS 1.104. It will be in CesiumJS 1.107. Use ImageryLayer.gamma instead."
|
|
411
|
-
);
|
|
412
|
-
return this._defaultGamma;
|
|
413
|
-
},
|
|
414
|
-
set: function (value) {
|
|
415
|
-
deprecationWarning(
|
|
416
|
-
"TileCoordinatesImageryProvider.defaultGamma",
|
|
417
|
-
"TileCoordinatesImageryProvider.defaultGamma was deprecated in CesiumJS 1.104. It will be in CesiumJS 1.107. Use ImageryLayer.gamma instead."
|
|
418
|
-
);
|
|
419
|
-
this._defaultGamma = value;
|
|
420
|
-
},
|
|
421
|
-
},
|
|
422
|
-
|
|
423
|
-
/**
|
|
424
|
-
* The default texture minification filter to apply to this provider.
|
|
425
|
-
* @memberof TileCoordinatesImageryProvider.prototype
|
|
426
|
-
* @type {TextureMinificationFilter}
|
|
427
|
-
* @deprecated
|
|
428
|
-
*/
|
|
429
|
-
defaultMinificationFilter: {
|
|
430
|
-
get: function () {
|
|
431
|
-
deprecationWarning(
|
|
432
|
-
"TileCoordinatesImageryProvider.defaultMinificationFilter",
|
|
433
|
-
"TileCoordinatesImageryProvider.defaultMinificationFilter was deprecated in CesiumJS 1.104. It will be in CesiumJS 1.107. Use ImageryLayer.minificationFilter instead."
|
|
434
|
-
);
|
|
435
|
-
return this._defaultMinificationFilter;
|
|
436
|
-
},
|
|
437
|
-
set: function (value) {
|
|
438
|
-
deprecationWarning(
|
|
439
|
-
"TileCoordinatesImageryProvider.defaultMinificationFilter",
|
|
440
|
-
"TileCoordinatesImageryProvider.defaultMinificationFilter was deprecated in CesiumJS 1.104. It will be in CesiumJS 1.107. Use ImageryLayer.minificationFilter instead."
|
|
441
|
-
);
|
|
442
|
-
this._defaultMinificationFilter = value;
|
|
443
|
-
},
|
|
444
|
-
},
|
|
445
|
-
|
|
446
|
-
/**
|
|
447
|
-
* The default texture magnification filter to apply to this provider.
|
|
448
|
-
* @memberof TileCoordinatesImageryProvider.prototype
|
|
449
|
-
* @type {TextureMagnificationFilter}
|
|
450
|
-
* @deprecated
|
|
451
|
-
*/
|
|
452
|
-
defaultMagnificationFilter: {
|
|
453
|
-
get: function () {
|
|
454
|
-
deprecationWarning(
|
|
455
|
-
"TileCoordinatesImageryProvider.defaultMagnificationFilter",
|
|
456
|
-
"TileCoordinatesImageryProvider.defaultMagnificationFilter was deprecated in CesiumJS 1.104. It will be in CesiumJS 1.107. Use ImageryLayer.magnificationFilter instead."
|
|
457
|
-
);
|
|
458
|
-
return this._defaultMagnificationFilter;
|
|
459
|
-
},
|
|
460
|
-
set: function (value) {
|
|
461
|
-
deprecationWarning(
|
|
462
|
-
"TileCoordinatesImageryProvider.defaultMagnificationFilter",
|
|
463
|
-
"TileCoordinatesImageryProvider.defaultMagnificationFilter was deprecated in CesiumJS 1.104. It will be in CesiumJS 1.107. Use ImageryLayer.magnificationFilter instead."
|
|
464
|
-
);
|
|
465
|
-
this._defaultMagnificationFilter = value;
|
|
466
|
-
},
|
|
467
|
-
},
|
|
468
195
|
});
|
|
469
196
|
|
|
470
197
|
/**
|
|
@@ -3,7 +3,6 @@ import Cartographic from "../Core/Cartographic.js";
|
|
|
3
3
|
import Check from "../Core/Check.js";
|
|
4
4
|
import defaultValue from "../Core/defaultValue.js";
|
|
5
5
|
import defined from "../Core/defined.js";
|
|
6
|
-
import deprecationWarning from "../Core/deprecationWarning.js";
|
|
7
6
|
import GeographicProjection from "../Core/GeographicProjection.js";
|
|
8
7
|
import GeographicTilingScheme from "../Core/GeographicTilingScheme.js";
|
|
9
8
|
import Rectangle from "../Core/Rectangle.js";
|
|
@@ -19,7 +18,6 @@ import UrlTemplateImageryProvider from "./UrlTemplateImageryProvider.js";
|
|
|
19
18
|
*
|
|
20
19
|
* Initialization options for the TileMapServiceImageryProvider constructor
|
|
21
20
|
*
|
|
22
|
-
* @property {Resource|string|Promise<Resource>|Promise<string>} [url] Path to image tiles on server. Deprecated
|
|
23
21
|
* @property {string} [fileExtension='png'] The file extension for images on the server.
|
|
24
22
|
* @property {Credit|string} [credit=''] A credit for the data source, which is displayed on the canvas.
|
|
25
23
|
* @property {number} [minimumLevel=0] The minimum level-of-detail supported by the imagery provider. Take care when specifying
|
|
@@ -52,7 +50,7 @@ import UrlTemplateImageryProvider from "./UrlTemplateImageryProvider.js";
|
|
|
52
50
|
* @constructor
|
|
53
51
|
* @extends UrlTemplateImageryProvider
|
|
54
52
|
*
|
|
55
|
-
* @param {TileMapServiceImageryProvider.ConstructorOptions} options Object describing initialization options
|
|
53
|
+
* @param {TileMapServiceImageryProvider.ConstructorOptions} [options] Object describing initialization options
|
|
56
54
|
*
|
|
57
55
|
* @see ArcGisMapServerImageryProvider
|
|
58
56
|
* @see BingMapsImageryProvider
|
|
@@ -76,46 +74,7 @@ import UrlTemplateImageryProvider from "./UrlTemplateImageryProvider.js";
|
|
|
76
74
|
* });
|
|
77
75
|
*/
|
|
78
76
|
function TileMapServiceImageryProvider(options) {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
if (defined(options.url)) {
|
|
82
|
-
deprecationWarning(
|
|
83
|
-
"TileMapServiceImageryProvider options.url",
|
|
84
|
-
"options.url was deprecated in CesiumJS 1.104. It will be in CesiumJS 1.107. Use TileMapServiceImageryProvider.fromUrl instead."
|
|
85
|
-
);
|
|
86
|
-
|
|
87
|
-
this._metadataError = undefined;
|
|
88
|
-
this._ready = false;
|
|
89
|
-
|
|
90
|
-
let resource;
|
|
91
|
-
const that = this;
|
|
92
|
-
const promise = Promise.resolve(options.url)
|
|
93
|
-
.then(function (url) {
|
|
94
|
-
resource = Resource.createIfNeeded(url);
|
|
95
|
-
resource.appendForwardSlash();
|
|
96
|
-
|
|
97
|
-
that._tmsResource = resource;
|
|
98
|
-
that._xmlResource = resource.getDerivedResource({
|
|
99
|
-
url: "tilemapresource.xml",
|
|
100
|
-
});
|
|
101
|
-
|
|
102
|
-
return TileMapServiceImageryProvider._requestMetadata(
|
|
103
|
-
options,
|
|
104
|
-
that._tmsResource,
|
|
105
|
-
that._xmlResource,
|
|
106
|
-
that
|
|
107
|
-
);
|
|
108
|
-
})
|
|
109
|
-
.catch((e) => {
|
|
110
|
-
return Promise.reject(e);
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
UrlTemplateImageryProvider.call(this, promise);
|
|
114
|
-
this._promise = promise;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
// After readyPromise deprecation, this should become just
|
|
118
|
-
// UrlTemplateImageryProvider.call(this, options);
|
|
77
|
+
UrlTemplateImageryProvider.call(this, options);
|
|
119
78
|
}
|
|
120
79
|
|
|
121
80
|
TileMapServiceImageryProvider._requestMetadata = async function (
|
|
@@ -187,11 +146,7 @@ TileMapServiceImageryProvider.fromUrl = async function (url, options) {
|
|
|
187
146
|
xmlResource
|
|
188
147
|
);
|
|
189
148
|
|
|
190
|
-
|
|
191
|
-
// return new TileMapServiceImageryProvider(metadata);
|
|
192
|
-
const provider = new TileMapServiceImageryProvider();
|
|
193
|
-
UrlTemplateImageryProvider.call(provider, metadata);
|
|
194
|
-
return provider;
|
|
149
|
+
return new TileMapServiceImageryProvider(metadata);
|
|
195
150
|
};
|
|
196
151
|
|
|
197
152
|
if (defined(Object.create)) {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import destroyObject from "../Core/destroyObject.js";
|
|
2
|
-
import deprecationWarning from "../Core/deprecationWarning.js";
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* Represents content for a tile in a
|
|
@@ -25,7 +24,6 @@ function Tileset3DTileContent(tileset, tile, resource) {
|
|
|
25
24
|
this._group = undefined;
|
|
26
25
|
|
|
27
26
|
this._ready = false;
|
|
28
|
-
this._readyPromise = Promise.resolve(this);
|
|
29
27
|
}
|
|
30
28
|
|
|
31
29
|
Object.defineProperties(Tileset3DTileContent.prototype, {
|
|
@@ -86,26 +84,6 @@ Object.defineProperties(Tileset3DTileContent.prototype, {
|
|
|
86
84
|
},
|
|
87
85
|
},
|
|
88
86
|
|
|
89
|
-
/**
|
|
90
|
-
* Gets the promise that will be resolved when the tile's content is ready to render.
|
|
91
|
-
*
|
|
92
|
-
* @memberof Tileset3DTileContent.prototype
|
|
93
|
-
*
|
|
94
|
-
* @type {Promise<Tileset3DTileContent>}
|
|
95
|
-
* @readonly
|
|
96
|
-
* @deprecated
|
|
97
|
-
* @private
|
|
98
|
-
*/
|
|
99
|
-
readyPromise: {
|
|
100
|
-
get: function () {
|
|
101
|
-
deprecationWarning(
|
|
102
|
-
"Tileset3DTileContent.readyPromise",
|
|
103
|
-
"Tileset3DTileContent.readyPromise was deprecated in CesiumJS 1.104. It will be removed in 1.107. Wait for Tileset3DTileContent.ready to return true instead."
|
|
104
|
-
);
|
|
105
|
-
return this._readyPromise;
|
|
106
|
-
},
|
|
107
|
-
},
|
|
108
|
-
|
|
109
87
|
tileset: {
|
|
110
88
|
get: function () {
|
|
111
89
|
return this._tileset;
|
|
@@ -3,7 +3,6 @@ import combine from "../Core/combine.js";
|
|
|
3
3
|
import defaultValue from "../Core/defaultValue.js";
|
|
4
4
|
import defined from "../Core/defined.js";
|
|
5
5
|
import destroyObject from "../Core/destroyObject.js";
|
|
6
|
-
import deprecationWarning from "../Core/deprecationWarning.js";
|
|
7
6
|
import Event from "../Core/Event.js";
|
|
8
7
|
import getTimestamp from "../Core/getTimestamp.js";
|
|
9
8
|
import JulianDate from "../Core/JulianDate.js";
|
|
@@ -182,12 +181,6 @@ function TimeDynamicPointCloud(options) {
|
|
|
182
181
|
this._nextInterval = undefined;
|
|
183
182
|
this._lastRenderedFrame = undefined;
|
|
184
183
|
this._clockMultiplier = 0.0;
|
|
185
|
-
this._resolveReadyPromise = undefined;
|
|
186
|
-
const that = this;
|
|
187
|
-
// This is here for backwards compatibility and can be removed when readyPromise is removed.
|
|
188
|
-
this._readyPromise = new Promise(function (resolve) {
|
|
189
|
-
that._resolveReadyPromise = resolve;
|
|
190
|
-
});
|
|
191
184
|
|
|
192
185
|
// For calculating average load time of the last N frames
|
|
193
186
|
this._runningSum = 0.0;
|
|
@@ -246,25 +239,6 @@ Object.defineProperties(TimeDynamicPointCloud.prototype, {
|
|
|
246
239
|
return undefined;
|
|
247
240
|
},
|
|
248
241
|
},
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* Gets the promise that will be resolved when the point cloud renders a frame for the first time.
|
|
252
|
-
*
|
|
253
|
-
* @memberof TimeDynamicPointCloud.prototype
|
|
254
|
-
*
|
|
255
|
-
* @type {Promise<TimeDynamicPointCloud>}
|
|
256
|
-
* @readonly
|
|
257
|
-
* @deprecated
|
|
258
|
-
*/
|
|
259
|
-
readyPromise: {
|
|
260
|
-
get: function () {
|
|
261
|
-
deprecationWarning(
|
|
262
|
-
"TimeDynamicPointCloud.readyPromise",
|
|
263
|
-
"TimeDynamicPointCloud.readyPromise was deprecated in CesiumJS 1.104. It will be removed in 1.107. Use TimeDynamicPointCloud.frameFailed instead."
|
|
264
|
-
);
|
|
265
|
-
return this._readyPromise;
|
|
266
|
-
},
|
|
267
|
-
},
|
|
268
242
|
});
|
|
269
243
|
|
|
270
244
|
function getFragmentShaderLoaded(fs) {
|
|
@@ -750,8 +724,6 @@ TimeDynamicPointCloud.prototype.update = function (frameState) {
|
|
|
750
724
|
const that = this;
|
|
751
725
|
if (defined(frame) && !defined(this._lastRenderedFrame)) {
|
|
752
726
|
frameState.afterRender.push(function () {
|
|
753
|
-
// This is here for backwards compatibility and can be removed when readyPromise is removed.
|
|
754
|
-
that._resolveReadyPromise(that);
|
|
755
727
|
return true;
|
|
756
728
|
});
|
|
757
729
|
}
|