527 KiB
Change Log
1.136 - 2025-12-01
@cesium/engine
Fixes 🔧
- Fixed depth testing bug with billboards and labels clipping through models #13012
- Billboards using
imageSubRegionnow render as expected. #12585 - Improved scaling of SVGs in billboards #13020
- Fixed unexpected outline artifacts around billboards #13038
Additions 🎉
- Added
scene.pickAsyncfor non GPU blocking picking using WebGL2 #12983 - Improves performance of terrain picks via new terrain picking quadtrees #8481
1.135 - 2025-11-03
@cesium/engine
Breaking Changes 📣
- Removed support for the
KHR_spz_gaussian_splats_compressionextension in favor of the latest 3D Gaussian splatting extensions for glTF,KHR_gaussian_splattingandKHR_gaussian_splatting_compression_spz_2. Please re-tile existing Gaussian splatting 3D Tiles #12837 scene.drillPicknow uses a breadth-first search strategy instead of depth-first. This may change which entities are picked when using large values ofwidthandheightwhen providing alimit, prioritizing entities closer to the camera. #12916
Additions 🎉
- Added experimental support for loading 3D Tiles as terrain, via
Cesium3DTilesTerrainProvider. See the PR for limitations on the types of 3D Tiles that can be used. #12296 - Added support for EXT_mesh_primitive_edge_visibility glTF extension. #12765
Fixes 🔧
- Improved performance of
scene.drillPick. #12916 - Improved performance when removing primitives. #3018
- Improved performance of terrain Quadtree handling of custom data #12907
- Fixed vertical exaggeration of ellipsoid-shaped voxels. #12811
- Fixed parsing content bounding volumes contained in 3D Tiles 1.1 subtree files. #12972
- Fixes an event bug following recent changes, where adding a new listener during an event callback caused an infinite loop. #12955
- Fix issues with label background when updating properties while
label.showisfalse. #12138 - Fixed picking of
GroundPrimitivewith multiplePolygonGeometryinstances selecting the wrong instance. #12978 - Fixed a bug where the removal of draped imagery layers did not update the rendered state #12923
- Fixed precision issues with Gaussian splat tilesets where the root tile does not have a world transform. #12925
- Fixed infinite recursion that would happen if user append post-render callbacks within existing callbacks #12983
1.134.1 - 2025-10-10
@cesium/engine
Fixes 🔧
- Fixed an event bug following recent changes, where adding a new listener during an event callback caused an infinite loop. #12955
1.134 - 2025-10-01
- Sandcastle has been updated at
https://sandcastle.cesium.com! The legacy Sandcastle app will remain available through November 3, 2025.
@cesium/engine
Breaking Changes 📣
- Voxel rendering now requires a WebGL2 context, which is enabled by default since 1.101. Make sure the
requestWebGl1flag incontextOptionsis NOT set to true. - The
defaultValuefunction has been removed. Instead, use the nullish coalescing (??) operator. See the Coding Guide for usage information and examples. defaultValue.EMPTY_OBJECThas been removed. Instead, useFrozen.EMPTY_OBJECT. See the Coding Guide for usage information and examples.
Additions 🎉
- Added Google2DImageryProvider to load imagery from Google Maps #12913
- Added an async factory method for the Material class that allows callers to wait on resource loading. #10566
Fixes 🔧
- Fixed vertical misalignment of glyphs in labels with small fonts #8474
- Converted voxel raymarching to eye coordinates to fix precision issues in large datasets. #12061
- Fixed flickering artifact in Gaussian splat models caused by incorrect sorting results. #12662
- Fixed issue where multiple instances of a Gaussian splat tileset would transform tile positions incorrectly and render out of position. #12795
- Fixed rendering for geometry entities when
requestRenderModeis enabled. #12841 - Improved performance and reduced memory usage of
Eventclass. #12896 - Improved performance of clamped labels. #12905
- Materials loaded from type now respect submaterials present in the referenced material type. #10566
- Prevent runtime errors for certain forms of invalid PNTS files #12872
- Revert
createImageBitmapoptions update to continue support for older browsers #12846
1.133.1 - 2025-09-08
This is an npm-only release to fix a dependency issue published in 1.133.0
1.133 - 2025-09-02
- Give the new version of Sandcastle a try today!
@cesium/engine
Breaking Changes 📣
- Removed the argument fallback in
ITwinData.*functions. Instead, use the new options argument signature. #12778
Additions 🎉
- Added support for the EXT_mesh_primitive_restart glTF extension. #12764
- Added spherical harmonics support for Gaussian splats, supported with the SPZ compression format. #12790
- Added
Ellipsoid.MARSfor use with Mars terrain and imagery. #12828 - Allow passing
Cesium3DTilesetconstructor options to the tileset that is created withITwinData.createTilesetForRealityDataId. #12709
Fixes 🔧
- Fixed issue where a Gaussian splat tileset would be rendered even if out of current camera view. #12840
- Removes the minimum tile threshold of four for WMTS. #4372
- Fixed a crash when loading PNTS (point cloud) data that contained a batch table without a binary part. #11166
- Fixed an error picking an area hidden by a
ClippingPolygon. #12725
Deprecated ⏳
- Deprecated support for the
KHR_spz_gaussian_splats_compressionextension in favor of the latest 3D Gaussian splatting extensions for glTF,KHR_gaussian_splattingandKHR_gaussian_splatting_compression_spz_2. The deprecated extension will be removed in version 1.135. To ensure support in CesiumJS 1.135 and beyond, Please re-tile existing Gaussian splatting 3D Tiles before November 1, 2025. #12837
1.132 - 2025-08-01
@cesium/engine
Fixes 🔧
- Fixes incorrect polygon culling in 2D scene mode. #1552
- Fixes material flashing when changing properties. #1640, #12716
- Fixed an issue where draped imagery on tilesets was not updated based on the visibility of the imagery layer. #12742
- Fixes an exception when removing a Gaussian splat tileset from the scene primitives when it has more than one tile. #12726
- Fixes rendering of Gaussian splats when they are scaled by the glTF transform, tileset transform, or model matrix. #12721, #12718
- Fixes label background translucency issue. #12673
- Updated the type of many properties and functions of
Sceneto clarify that they may beundefined. For the full list check PR: #12736 - Fixes Gaussian splats incorrectly rendering when
Cesium3DTileset.showisfalse. #12748 - Fixed the PointCloudShading.normalShading parameter, to disable normal shading when set to false, even if the point cloud contains normals. #11196
- Updated GPU vertex transformations to reduce precision errors. #4250
- Fixes Gaussian splats orientation with respect to glTF up-axis by updating
spz-loaderto version0.3.0. #12737, #12749
Additions 🎉
- Expand the CustomShader Sample to support real-time modification of CustomShader. #12702
- Add wrapR property to Sampler and Texture3D, to support the newly added third dimension wrap.#12701
- Added the ability to load a specific changeset for iTwin Mesh Exports using
ITwinData.createTilesetFromIModelId#12778
Deprecated ⏳
- Updated all of the
ITwinData.*functions to accept anoptionsparameter instead of individual arguments to avoid confusion with multiple optional arguments. There is a fallback to the old signature that will be removed in 1.133 #12778
1.131 - 2025-07-01
@cesium/engine
Fixes 🔧
- Updates use of deprecated options on createImageBitmap. #12664
- Fixed raymarching step size for cylindrical voxels. #12681
- Fixes handling of tileset
modelMatrixchanges for translations and rotations inGaussianSplatPrimitive. #12706
Additions 🎉
- Added
HeightReferencetoCesium3DTileset.ConstructorOptionsto allow clamping point features in 3D Tile vector data to terrain or 3D Tiles #11710 - Added the ability to pass
OffscreenCanvas&ImageBitmapdirectly toMaterialuniforms. #12558
1.130.1 - 2025-06-16
@cesium/engine
Additions 🎉
- Added experimental support for loading 3D Tiles with Gaussian splats encoded with SPZ compression using the draft glTF extension
KHR_spz_gaussian_splats_compression. #12582 - Added support for integral texture formats: R32I, RG32I, RGB32I, RGBA32I, R32UI, RG32UI, RGB32UI, RGBA32UI #12582
1.130 - 2025-06-02
@cesium/engine
Breaking Changes 📣
- The
FragmentInputstruct for voxel shaders has been updated to be more consistent with theCustomShaderdocumentation. Remaining differences inCustomShaderusage betweenVoxelPrimitiveandCesium3DTilesetorModelare now documented in the Custom Shader Guide. #12636. Key changes include:- The non-standard position attributes
fsInput.voxel.positionUv,fsInput.voxel.positionShapeUv, andfsInput.voxel.positionLocalhave been removed, and replaced by a single eye coordinate positionfsInput.attributes.positionEC. - The normal in model coordinates
fsInput.voxel.surfaceNormalhas been replaced by a normal in eye coordinatesfsInput.attributes.normalEC. Example:
- The non-standard position attributes
// Replace this:
// vec3 voxelNormal = normalize(czm_normal * fsInput.voxel.surfaceNormal);
// with this:
vec3 voxelNormal = fsInput.attributes.normalEC;
Additions 🎉
- Add basic support for draping imagery on 3D Tiles. #12567
- Add support for 3D Textures and add Volume Cloud sandcastle example. #12661
Fixes 🔧
- Fixed voxel rendering with orthographic cameras. #12629
1.129 - 2025-05-01
@cesium/engine
Breaking Changes 📣
VoxelProvider.minimumBoundsand.maximumBoundsare now specified as physical values, rather than shape space values. #12592
Additions 🎉
- Added
Material with Custom GLSLSandbox Demo. #12549
Fixes 🔧
QuadtreePrimitive.updateHeightsnow converts position to Cartographic before invoking the callback, ensuring compatibility with change introduced by commit 53889cb and preventing unnecessary computation. #12555- Fixed
Polyline*MaterialPropertywidth artifacts (reverted #12434). #12506 Check.typeOf.objectnow assertsRecord<string|number|symbol, any>instead ofobjectto allow property checks after assertion. #12572
1.128 - 2025-04-01
@cesium/engine
Breaking Changes 📣
Camera.getPickRaywas erroneously returning a result in camera coordinates. It is now returned in world coordinates as stated in the documentation. The result can be transformed usingCamera.inverseViewMatrixto achieve the previous behavior.VoxelMetadataOrderhas been made private, and themetadataOrderproperty has been removed from theVoxelProviderinterface.
Additions 🎉
- Added support for loading iTwin data using share keys as an alternative to user-based OAuth. When using a share key, set
ITwinPlatform.defaultShareKey. #12530 - Added
Frozen.EMPTY_OBJECTandFrozen.EMPTY_ARRAYfor use as default parameter values that avoid unnecessary memory allocations. #12507
Fixes 🔧
- Fixed entity tracking for delayed datasource bounding spheres. #12465
Camera.getPickRaynow correctly returns a ray with origin in world coordinates in orthographic mode. #12500- Fixed camera zooming in 3D orthographic mode when pixelRatio is not 1. #12487
- Fixed shape bounds and transforms for cylinder-shaped voxels. #12522
- Fixed metadata ordering for ellipsoid voxel tilesets. #12544
- Fixed an issue where clamped entities' height updates could stall when using high-resolution terrain due to a growing queue of tiles in
updateHeightsinQuadtreePrimitive. #12476 - Fixed
VaryingType.MAT3definition. #12524
Deprecated ⏳
- The
defaultValuefunction has been deprecated, and will be removed in 1.134. Instead, use the logical OR (||) the nullish coalescing (??) operator. See the Coding Guide for usage information and examples. defaultValue.EMPTY_OBJECThas been deprecated, and will be removed in 1.134. Instead, useFrozen.EMPTY_OBJECT. See the Coding Guide for usage information and examples.
1.127 - 2025-03-03
@cesium/engine
Breaking Changes 📣
- Updated
Cesium3DTilesVoxelProviderto load glTF tiles using the newEXT_primitive_voxelsextension to more closely align with the rest of the 3D Tiles ecosystem. Tilesets using the previous custom JSON format are no longer supported. #12432 - Updated the
requestDatamethod of theVoxelProviderinterface to return aPromiseto aVoxelContent. Custom providers should now use theVoxelContent.fromMetadataArraymethod to construct the returned data object. For example:
CustomVoxelProvider.prototype.requestData = function (options) {
const metadataColumn = new Float32Array(options.dataLength);
// ... Fill metadataColumn with metadata values ...
const content = VoxelContent.fromMetadataArray([metadataColumn]);
return Promise.resolve(content);
};
- Changed
VoxelCylinderShapeto assume coordinates in the order (radius, angle, height). See CesiumGS/3d-tiles#780
Additions 🎉
- Implemented
texturesByteLength,visited, andnumberOfTilesWithContentReadyinVoxelPrimitive.statistics. To use statistics, setoptions.calculateStatisticstotruein the constructor. NoteVoxelPrimitiveis experimental.
Fixes 🔧
- Exposed
CustomShader.prototype.destroyas a public method. #12444 - Fixed error when there are duplicated points in polygon/polyline geometries with
ArcType.RHUMB#12460 - Fixed ground atmosphere shaders in 3D orthographic mode #12484
- Fixed zoom in 3D orthographic mode #12483
- Fixed issue with billboards not clamping properly when nested inside a PrimitiveCollection #12482
- Fixed error with black flashes on label and billboard updates. #12231
TextureAtlashas been refactored and internal APIs have been updated. If relying on the private texture atlas API, see #12495 for details.
1.126 - 2025-02-03
@cesium/engine
Breaking Changes 📣
createGooglePhotorealistic3DTileset(key)has been removed. UsecreateGooglePhotorealistic3DTileset({key})instead.- Changed behavior of
DataSourceDisplay.readyto always staytrueonce it is initially set totrue. #12429
Additions 🎉
- Add
ITwinData.loadGeospatialFeatures(iTwinId, collectionId)function to load data from the Geospatial Features API #12449
Fixes 🔧
- Fixed error when resetting
Cesium3DTileset.modelMatrixto its initial value. #12409 - Fixed the parameter types of the
ClippingPolygon.equalsfunction, and fixed cases where parameters toequalsfunctions had erroneously not been marked as 'optional'. #12394 - Fixed Draco decoding for vertex colors that are normalized
UNSIGNED_BYTEorUNSIGNED_SHORT. #12417 - Fixed urls with https in the documentation
basemap.nationalmap.gov#12375 - Fixed error in polyline when sinAngle is < 1. the value of expandWidth was too much. #12434
- Allow external tilesets in multiple contents. #12440
- Fixed type of
ImageryLayer.fromProviderAsync, to correctly show that the paramoptionsis optional. #12400 - Fixed type error when setting
Viewer.selectedEntity#12303
1.125 - 2025-01-02
@cesium/engine
Additions 🎉
- Expanded integration with the iTwin Platform to load GeoJSON and KML data from the Reality Management API. Use
ITwinData.createDataSourceForRealityDataIdto load data as either GeoJSON or KML`. #12344 - Added
environmentMapOptionstoModelGraphics. For performance reasons by default, the environment map will not update if the entity position change. If environment map updates based on entity position are desired, provide an appropriateenvironmentMapOptions.maximumPositionEpsilonvalue. #12358 - Added events to
VoxelPrimitiveto matchCesium3DTileset, includingallTilesLoaded,initialTilesLoaded,loadProgress,tileFailed,tileLoad,tileVisible,tileUnload.
Fixes 🔧
- Reduced memory usage and performance bottlenecks when using environment maps with models. #12356
- Fixed
JulianDateto always generate valid ISO strings for fractional milliseconds. #12345 - Fixed intermittent z-fighting issue. #12337
1.124 - 2024-12-02
@cesium/engine
Additions 🎉
- Added an integration with the iTwin Platform to load iModels as 3D Tiles. Use
ITwinPlatform.defaultAccessTokento set the access token. UseITwinData.createTilesetFromIModelId(iModelId)to load the iModel as aCesium3DTileset. #12289 - Added an integration with the iTwin Platform to load Reality Data terrain meshes. Use
ITwinPlatform.defaultAccessTokento set the access token. Then useITwinData.createTilesetForRealityDataId(iTwinId, dataId)to load terrain meshes as aCesium3DTileset#12334 - Added
getSampletoSampledPropertyto get the time of samples. #12253 - Added
Entity.trackingReferenceFrameproperty to allow tracking entities in various reference frames. #12194, #12314TrackingReferenceFrame.AUTODETECT(default): uses either VVLH or ENU depending on entity's dynamic. UseTrackingReferenceFrame.ENUif your camera orientation flips abruptly from time to time.TrackingReferenceFrame.ENU: uses the entity's local East-North-Up reference frame.TrackingReferenceFrame.INERTIAL: uses the entity's inertial reference frame.TrackingReferenceFrame.VELOCITY: uses entity'sVelocityOrientationPropertyas orientation.
- Added
GoogleGeocoderServicefor standalone usage of Google geocoder. #12299
Breaking Changes 📣
PostProcessStageCollection.ambientOcclusionhas been updated with a new algorithm to provide better results at all scales, with tunable performance cost. To approximate the appearance and performance of the old algorithm, set the following values forscene.postProcessStages.ambientOcclusion.uniforms:{ lengthCap: 0.02, directionCount: 6, stepCount: 8 }. For best results at long distances, consider settingViewer.camera.frustum.nearto1.0or more, to improve precision in the depth buffer. #12316Rectangle.validatehas been removed.
Fixes 🔧
- Fixed bug where shared external textures from glTF files were not accounted for in resource statistics. #12331
- Fixed lag or crashes when loading many models in the same frame. #12320
- Fix point cloud filtering performance on certain hardware #12317
- Fix label rendering bug in WebGL1 contexts. #12301
- Updated WMS example URL in UrlTemplateImageryProvider documentation to use an active service. #12323
Deprecated ⏳
createGooglePhotorealistic3DTileset(key)has been deprecated. UsecreateGooglePhotorealistic3DTileset({key})instead. It will be removed in 1.126.
@cesium/widgets
Additions 🎉
- Added the ability to choose between Bing and Google geocoders. Updated
Viewerconstructor to also acceptIonGeocoderProvider#12299
Fixes 🔧
- Added a
DeveloperErrorwhenglobeis set tofalseand abaseLayeris provided inVieweroptions. This prevents errors caused by attempting to use abaseLayerwithout a globe. #12274
1.123.1 - 2024-11-07
@cesium/engine
Additions 🎉
- Added fallback diffuse lighting,
DynamicEnvironmentMapManager.DEFAULT_SPHERICAL_HARMONIC_COEFFICIENTS, that is used whenDynamicEnvironmentMapManageris disabled or unsupported. #12292 - Added
DynamicEnvironmentMapManager.isDynamicUpdateSupportedto check if dynamic environment map updates are supported. #12292
1.123 - 2024-11-01
@cesium/engine
Breaking Changes 📣
-
Updated default 3D Tiles and Model lighting when using PBR in order to create a more realistic appearance. To approximate previous default lighting, use the following settings:
const environmentMapManager = model.environmentMapManager; // or tileset.environmentMapManager; environmentMapManager.saturation = 0.35; environmentMapManager.brightness = 1.4; environmentMapManager.gamma = 0.8; environmentMapManager.atmosphereScatteringIntensity = 5.0; environmentMapManager.groundColor = Cesium.Color.fromCssColorString("#001850"); -
ImageBasedLighting.luminanceAtZenithhas been removed. UseDynamicEnvironmentMapManager.atmosphereScatteringIntensityinstead. #12129 -
Changed the default
Fog.densityfrom0.0002to0.0006. Setviewer.scene.fog.density = 0.002to return to the previous behavior. #12248
Additions 🎉
- Updated default 3D Tiles and Model lighting when using PBR in order to create a more realistic appearance. Added
DynamicEnvironmentMapManagerto control lighting parameters. These can be accessed viaCesium3DTileset.environmentMapManagerandModel.environmentMapManager. #12129 - Added
ScreenSpaceCameraController.maximumTiltAngleto limit how much the camera can tilt. #12169 - Exposed
Fog.visualDensityScalarto allow modifying the visual density of fog without affecting the culling aspects. Alongside this, the density calculation was adjusted to make it more smooth across heights. #12248 - Update Japan Buildings sandcastle to use Japan Regional Terrain #12259
- Moved
Viewerfunctionality toCesiumWidgetto increase usability, see the full list added to theCesiumWidgetbelow. No functionality was removed from theViewerbut convenience helpers like theentitiescollection were added to theCesiumWidget. TheCesiumWidgetshould be closer to a drop in replacement for theViewerwhen not utilizing the extra Viewer widgets. #11967.- New constructor options:
options.shouldAnimate,options.automaticallyTrackDataSourceClocks,options.dataSources - New properties:
dataSourceDisplay,entities,dataSources,allowDataSourcesToSuspendAnimation,trackedEntity,trackedEntityChanged,clockTrackedDataSource - New functions:
zoomTo(),flyTo()
- New constructor options:
- Update Bing Maps attribution link #12265
Fixes 🔧
- Fix flickering issue caused by bounding sphere retrieval being blocked by the bounding sphere of another entity. #12230
- Fixed
ImageBasedLighting.imageBasedLightingFactornot affecting lighting. #12129 - Fix error with normalization of corner points for lines and corridors with collinear points. #12255
- Properly handle
offsetandscaleproperties when picking metadata from property textures. #12237
1.122 - 2024-10-01
@cesium/engine
Additions 🎉
- Added
CallbackPositionPropertyto allow lazy entity position evaluation. #12170 - Added
enableVerticalExaggerationoption to models. Set this value tofalseto prevent model exaggeration whenScene.verticalExaggerationis set to a value other than1.0. #12141 - Added
Scene.prototype.pickMetadataandScene.prototype.pickMetadataSchema, enabling experimental support for picking property textures or property attributes #12075 - Added experimental support for the
NGA_gpm_localglTF extension, for GPM 1.2 #12204
Fixes 🔧
- Fix
Textureerrors when using aHTMLVideoElement. #12219 - Fixed noise in ambient occlusion post process. #12201
- Use first
geometryBufferif no best match found in I3SNode. #12132 - Update type definitions throughout
Core/to allow undefined for optional parameters. #12193 - Reverts Firefox OIT temporary fix. #4815
Deprecated ⏳
Rectangle.validatehas been deprecated. It will be removed in 1.124.
1.121.1 - 2024-09-04
This is an npm-only release to extra source maps included in 1.121
1.121 - 2024-09-03
@cesium/engine
Additions 🎉
- Enable MSAA by default with 4 samples. To turn MSAA off set
scene.msaaSamples = 1#12158 - Expose the
tonemapperproperty ofPostProcessStageCollectionto allow changing the tonemap used when HDR is turned on. This defaults to the PBR Neutral Tonemap from Khronos #12160- The enum
Tonemappercontains the list of valid tonemap options to use with thetonemappersetting
- The enum
- Expose the
exposureproperty ofPostProcessStageCollectionto allow changing the exposure used for the current HDR tonemap #12160 - Added
WaterMaskglobe material, which visualizes areas of water or land based on the terrain's water mask. #12149 - Made the
timeparameter optional forProperty, usingJulianDate.now()as default. #12099 - Exposes
ScreenSpaceCameraController.zoomFactorto allow adjusting the zoom factor (speed). #9145
Fixes 🔧
- Update
CameraEventAggregatorto only trigger events for the currently held modifier while dragging. Events are canceled for all modifiers when the mouse is lifted. #11903 - Fixed cube-mapping artifacts in image-based lighting. #12100
- Fixed specular reflection artifact in PBR direct lighting. #12116
- Added multiscattering terms to diffuse BRDF in image-based lighting. #12118
- Fixed
CallbackPropertytype not being present on entity position. #12120 - Additional TypeScript types export in
package.jsonto assist some project configurations using Cesium. #12122 - Fixed documentation about default values for Label origins #12139
Breaking Changes 📣
- Switched the default (non-HDR) tonemapping for models, atmosphere, and globe from ACES to PBR Neutral Tonemap from Khronos. The widens the gamut of possible colors, and provides more consistent color appearances across renderers. #12160
- Switched the default tonemapper when HDR is turned on from ACES to PBR Neutral Tonemap from Khronos. To preserve the previous behavior set
viewer.scene.postProcessStages.tonemapper = Cesium.Tonemapper.ACES;#12160 SceneTransforms.wgs84ToWindowCoordinateshas been removed. UseSceneTransforms.worldToWindowCoordinatesinstead.SceneTransforms.wgs84ToDrawingBufferCoordinateshas been removed. UseSceneTransforms.worldToDrawingBufferCoordinatesinstead.- Removed
jitteroption fromVoxelPrimitive.js,VoxelRenderResources.js, and related test code inVoxelPrimitiveSpec.js. #11913 - Custom specular environment maps in
ImageBasedLightingnow require either a WebGL2 context or a WebGL1 context that supports theEXT_shader_texture_lodextension.
1.120 - 2024-08-01
@cesium/engine
Additions 🎉
- Added
Transforms.computeIcrfToMoonFixedMatrixandTransforms.computeMoonFixedToIcrfMatrixto compute the transformations between the Moon's fixed frame and ICRF at a given time. - Added
Transforms.computeIcrfToCentralBodyFixedMatrixto specific the default ICRF to fixed frame transformation to use internally, including for lighting calculations. - Added SplitDirection property for display PointPrimitive and Billboard relative to the
Scene.splitPosition. #11982
Fixes 🔧
- Fixed environment map LOD selection in image-based lighting. #12070
- Corrected calculation of diffuse component in image-based lighting. #12082
- Updated specular BRDF for image-based lighting. #12083
- Fixed environment map transform for image-based lighting. #12091
- Updated geometric self-shadowing function to improve direct lighting on models using physically-based rendering. #12063
- Prevent Bing Imagery API format issues from throwing errors #12094
1.119 - 2024-07-01
@cesium/engine
Additions 🎉
- Added
Ellipsoid.defaultto allow a central place to specify a default ellipsoid value to be used throughout the API where an ellipsoid is not otherwise specified. #4245 - Various defaults have been updated to adjust when
Ellipsoid.defaultis changed to a value other than the WGS84 ellipsoid. - Added
Scene.ellipsoid,CesiumWidget.ellipsoid, andViewer.ellipsoidto set the default ellipsoid used for rendering. - Added
SkyBox.createEarthSkyBoxwhich creates a skybox instance with the default starmap for the Earth. - Added support for the
scaleproperty of a normal texture in a glTF material. #12018
Fixes 🔧
- Fixed diffuse color calculation for PBR materials. Many models will now appear slightly brighter. #12043
- Fixed the calculation of base color in materials using the KHR_materials_specular extension #12041.
- Fixed issue where Entities would not use a custom ellipsoid. #3543
- Adjusted spacing for on screen Credits and updated recommendations for positioning custom ones. #11912
- Fixed issue where Property 'availability' is missing in type 'CustomHeightmapTerrainProvider' but required in type 'TerrainProvider' when using with typescript
Breaking Changes 📣
CircleGeometry.unpacknow defaults toEllipsoid.defaultrather thanEllipsoid.UNIT_SPHERE.
Deprecated ⏳
SceneTransforms.wgs84ToDrawingBufferCoordinateshas been deprecated. It will be removed in 1.121. UseSceneTransforms.worldToDrawingBufferCoordinatesinstead.SceneTransforms.wgs84ToWindowCoordinateshas been deprecated. It will be removed in 1.121. UseSceneTransforms.worldToWindowCoordinatesinstead.
@cesium/widgets
Breaking Changes 📣
BaseLayerPickerno longer overrides the default imagery or terrain unlessoptions.selectedImageryProviderViewModeloroptions.selectedTerrainProviderViewModelis provided respectively.
1.118.2 - 2024-06-03
This is an npm-only release to fix a dependency issue published in 1.118.1
1.118.1 - 2024-06-03
This is an npm-only release to fix a dependency issue published in 1.118
1.118 - 2024-06-03
@cesium/engine
Additions 🎉
- Added support for glTF models with the KHR_materials_specular extension. #11970
- Added support for glTF models with the KHR_materials_anisotropy extension. #11988
- Added support for glTF models with the KHR_materials_clearcoat extension. #12006
Fixes 🔧
- Fixed a bug where
scene.pickPositionreturned incorrect results against the globe whendepthTestAgainstTerrainisfalse. #4368 - Fixed a bug where
TaskProcessorworker loading would check the worker module ID rather than the absolute URL when determining if it is cross-origin. #11833 - Fixed a bug where cross-origin workers would error when loaded with the CommonJS
importScriptsshim instead of an ESMimport. #11833 - Fixed an error in the specular reflection calculations for image-based lighting from supplied environment maps. #12008
- Fixed a normalization error in image-based lighting. #11994
- Fixes a bug where
sampleTerraindid not respect therejectOnTileFailflag for failed requests other than the first. #11998 - Corrected the Typescript types for
Billboard.idandLabel.idto beany#11973
1.117 - 2024-05-01
@cesium/engine
Additions 🎉
- Added
ClippingPolygonandClippingPolygonCollectionfor applying multiple clipping regions, with support for concave regions and inverse clipping regions, to 3D Tiles and Terrain. #11750 - Added
Cesium3DTileset.clippingPolygons,Globe.clippingPolygons, andModel.clippingPolygonsproperties for defining clipping regions from world positions. #11750
Fixes 🔧
- Fixed a bug where a data source was not automatically rendered after is was added in request render mode. #11934
- Fixes Typescript definition for
Event.raiseEvent. #10498 - Fixed a bug that Label position height may not be correctly updated when its HeightReference is relative. #11929
@cesium/widgets
Fixes 🔧
- Fixed leaked CSS styling from
I3SBuildingSceneLayerExplorerwidget. #11959
1.116 - 2024-04-01
@cesium/engine
Breaking Changes 📣
Cesium3DTileset.disableCollisionhas been removed. UseCesium3DTileset.enableCollisioninstead.Globe.terrainExaggerationandGlobe.terrainExaggerationRelativeHeighthave been removed. UseScene.verticalExaggerationandScene.verticalExaggerationRelativeHeightinstead.
Additions 🎉
- Surface normals are now computed for clipping and shape bounds in VoxelEllipsoidShape and VoxelCylinderShape. #11847
- Implemented sharper rendering and lighting on voxels with CYLINDER and ELLIPSOID shape. #11875
- Implemented vertical exaggeration for voxels with BOX shape. #11887
- Added the
Checkobject of validators to the public api and types. #11901
Fixes 🔧
- Fixed issue with
BingMapsImageryProviderwhere given culture option is ineffective #11695 - Fixed a bug with performance in scenes with multiple tilesets #11878
- Fixes issue with PolygonGeometry uvs are improperly computed #11767
- Fixed voxel rendering bugs for non-spherical ellipsoid shapes #11848
- Fixed a bug where dynamic geometries caused the Scene to continuously render when running in requestRenderMode #6631
1.115 - 2024-03-01
@cesium/engine
Breaking Changes 📣
- By default, instances of
Cesium3DTilesetwill no longer default to enable collisions for camera collision or for clamping entities. #11829- This behavior can be enabled by setting
Cesium3DTileset.enableCollisionto true.
- This behavior can be enabled by setting
Additions 🎉
- Added support for I3S Building Scene Layer. #11678
- Added
Scene.pickVoxelto pick individual cells from aVoxelPrimitive, andVoxelCellto report information about the picked cell. #11828 - Added
Scene.defaultLogDepthBufferto allow changing the default behavior of thelogDepthBufferfor newly createdSceneinstances. #11859 - Added
SensorVolumePortionToDisplayto assistCzmlDataSourcein parsing CZML. #11859
Fixes 🔧
- Fixed a bug where the camera can stay underground when 3D Tiles are loading in. #11824
- Fixed a bug with where a mix of empty and non-empty tiles were not refining. #9356
- Fixed a bug with camera collision with tilesets containing tiles with interleaved buffers #11812
- Fixed a bug affecting voxel shader compilation in WebGL1 contexts. #11798
- Fixed a bug where legacy B3DM files that contained glTF 1.0 data that used a
CONSTANTtechnique in theKHR_material_commonextension and only defined ambient- or emissive textures (but no diffuse textures) showed up without any texture #11825 - Fixed an error when the
screenSpaceEventHandlerwas destroyed beforeViewer#10576 - Fixed how
Camera.changedhandles changes inroll. #11844
Deprecated ⏳
Cesium3DTileset.disableCollisionhas been deprecated and will be removed in 1.116. UseCesium3DTileset.enableCollisioninstead.
@cesium/widgets
Additions 🎉
- Added
I3SBuildingSceneLayerExplorerwidget for working with I3S Building Scene Layer data. #11678
1.114 - 2024-02-01
@cesium/engine
Breaking Changes 📣
- By default, the screen space camera controller will no longer go inside or under instances of
Cesium3DTileset. #11581- This behavior can be disabled by setting
Cesium3DTileset.disableCollisionto true. - This feature is enabled by default only for WebGL 2 and above, but can be enabled for WebGL 1 by setting the
enablePickoption to true when creating theCesium3DTileset.
- This behavior can be disabled by setting
- Clamping to ground,
HeightReference.CLAMP_TO_GROUND, andHeightReference.RELATIVE_TO_GROUNDnow take into account 3D Tilesets. These options will clamp to either 3D Tilesets or Terrain, whichever has a greater height. #11604- To restore previous behavior where an entity is clamped only to terrain or relative only to terrain, set
heightReferencetoHeightReference.CLAMP_TO_TERRAINorHeightReference.RELATIVE_TO_TERRAINrespectively.
- To restore previous behavior where an entity is clamped only to terrain or relative only to terrain, set
- Removed the need for node internal packages
http,https,urlandzlibin theResourceclass. This means they do not need to be marked external by build tools anymore. #11773- This slightly changed the contents of the
RequestErrorEventerror that is thrown in node environments when a request fails. Theresponseproperty is now aResponseobject instead of anhttp.IncomingMessage
- This slightly changed the contents of the
- The
Cesium3DTileset.dynamicScreenSpaceErroroptimization is now enabled by default, as this improves performance for street-level horizon views. Furthermore, the default settings of this feature were tuned for improved performance.Cesium3DTileset.dynamicScreenSpaceErrorDensitywas changed from 0.00278 to 0.0002.Cesium3DTileset.dynamicScreenSpaceErrorFactorwas changed from 4 to 24. #11718 PolygonGeometry.computeRectanglehas been removed. UsePolygonGeometry.computeRectangleFromPositionsinstead.
Additions 🎉
- Added
HeightReference.CLAMP_TO_TERRAIN,HeightReference.RELATIVE_TO_TERRAIN,HeightReference.CLAMP_TO_3D_TILE, andHeightReference.RELATIVE_TO_3D_TILEto position relative to terrain or 3D tilesets exclusively.#11604 - Added
Cesium3DTileset.getHeightto sample height values of the loaded tiles. If using WebGL 1, theenablePickoption must be set to true to use this function. #11581 - Added
Cesium3DTileset.disableCollisionto allow the camera from to go inside or below a 3D tileset, for instance, to be used with 3D Tiles interiors. #11581 - Fog rendering now applies to glTF models and 3D Tiles. This can be configured using
scene.fogandscene.atmosphere. #11744 - Added
scene.atmosphereto store common atmosphere lighting parameters. #11744 and #11681 - Added
createWorldBathymetryAsynchelper function to make it easier to load Bathymetry terrain. #11790
Fixes 🔧
- Fixed an issue where
DataSourceobjects incorrectly shared a singlePolylineCollectionin thePolylineGeometryUpdater. UpdatedPolylineGeometryUpdaterto create a distinctPolylineCollectioninstance perDataSource. This resolves the crashes reported under #7758 and #9154. - Fixed a geometry displacement on iOS devices that was caused by NaN value in
czm_translateRelativeToEyefunction. #7100 - Fixed improper scaling of ellipsoid inner radii in 3D mode. #11656 and #10245
- Updated
approximateTerrainHeights.jsonto account for CWB heights to help with ground primitives when using Cesium World Bathymetry #11805 - Fix globe materials when lighting is false. Slope/Aspect material no longer rely on turning on lighting or shadows. #11563
- Fixed a bug where
GregorianDateconstructor would not validate the input parameters for valid date. #10057 - Fixed a bug where the
Cesium3DTilesetconstructor was ignoring the optionsdynamicScreenSpaceError,dynamicScreenSpaceErrorDensity,dynamicScreenSpaceErrorFactoranddynamicScreenSpaceErrorHeightFalloff. #11677 - Fixed a bug where transforms that had been defined with the
KHR_texture_transformextension had not been applied to Property Textures inEXT_structural_metadata. #11708 - Fixed a bug where transforms that had been defined with the
KHR_texture_transformextension had not been applied to Feature ID Textures inEXT_mesh_features. #11731 - Fixed
Entitydocumentation fororientationproperty. #11762 - The
EntityCollection#addmethod was documented to throw aDeveloperErrorfor duplicate IDs, but did throw aRuntimeErrorin this case. This is now changed to throw aDeveloperError. #11776 - Parts of the documentation have been updated to resolve potential issues with the generated TypedScript definitions. #11776
- Fixed type definition for
Camera.constrainedAxis. #11475
@cesium/widgets
Fixes 🔧
- Fixed a bug where the 3D Tiles Inspector's
dynamicScreenSpaceErrorDensityslider did not update the tileset #6143
1.113 - 2024-01-02
@cesium/engine
Additions 🎉
- Vertical exaggeration can now be applied to a
Cesium3DTileset. Exaggeration ofTerrainandCesium3DTilesetcan be controlled simultaneously via the newScenepropertiesScene.verticalExaggerationandScene.verticalExaggerationRelativeHeight. #11655
Fixes 🔧
- Changes the default
RequestScheduler.maximumRequestsPerServerfrom 6 to 18. This should improve performance on HTTP/2 servers and above. #11627 - Corrected JSDoc and Typescript definitions that marked optional arguments as required in
ImageryProviderconstructor. #11625 - The
Quaternion.computeAxisfunction created an axis that was(0,0,0)for the unit quaternion, and an axis that was(NaN,NaN,NaN)for the quaternion(0,0,0,-1)(which describes a rotation about 360 degrees). Now, it returns the x-axis(1,0,0)in both of these cases. #11665
Deprecated ⏳
Globe.terrainExaggerationandGlobe.terrainExaggerationRelativeHeighthave been deprecated in CesiumJS 1.113. They will be removed in 1.116. UseScene.verticalExaggerationandScene.verticalExaggerationRelativeHeightinstead. #11655
1.112 - 2023-12-01
@cesium/engine
Fixes 🔧
- Fixed terrain lockups in
requestTileGeometryby ensuring promise handling aligns with CesiumJS's expectations. #11630 - Corrected JSDoc and Typescript definitions that marked optional arguments as required in
Cesium3dTileset.fromIonAssetId#11623, andIonImageryProvider.fromAssetId#11624
1.111 - 2023-11-01
@cesium/engine
Additions 🎉
BingMapsImageryProvider.fromUrlnow takes an optionalmapLayerparameter which is a string that maps directly to the mapLayer template parameters specified in the Bing Maps documentation.
Fixes 🔧
- By default,
createGooglePhotorealistic3DTilesetno longer shows credits on screen but links to them instead, as this is compliant with the minimum required attribution. To restore this behavior, pass the optionshowCreditsOnScreen: true. #11589 - Fixed an issue with polygon hole rendering. #11583
- Fixed error with rhumb lines that have a 0 degree heading. #11573
- Fixed
czm_normal,czm_normal3D,czm_inverseNormal, andczm_inverseNormal3Dfor cases where the model matrix has non-uniform scale. #11553 - Fixed issue with clustered labels when
dataSource.showwas toggled. #11560 - Fixed inconsistent clustering when
dataSource.showwas toggled. #11560
1.110.1 - 2023-10-25
@cesium/engine
Breaking Changes 📣
-
CesiumJS no longer ships with a demo Google Maps API key.
GoogleMaps.defaultApiKeyis no longer defined by default. -
createGooglePhotorealistic3DTilesetby default now provides tiles via Cesium ion if theGoogleMaps.defaultApiKeyis not set. -
If you wish to continue to use your own Google Maps API key, you can go back to the previous behavior:
Cesium.GoogleMaps.defaultApiKey = "your-api-key"; const tileset = await Cesium.createGooglePhotorealistic3DTileset(); viewer.scene.primitives.add(tileset));
1.110 - 2023-10-02
@cesium/engine
Breaking Changes 📣
Cesium3DTileset.maximumMemoryUsagehas been removed. UseCesium3DTileset.cacheBytesandCesium3DTileset.maximumCacheOverflowBytesinstead.
Additions 🎉
- Worker files are now embedded in
Build/Cesium/Cesium.jsandBuild/CesiumUnminified/Cesium.js. #11519 - Added
PolygonGeometry.computeRectangleFromPositionsfor computing aRectanglethat encloses a polygon, including cases over the international date line and the poles. - Added
Stereographicfor computing 2D operations in stereographic, or polar, coordinates. - Adds events to
PrimitiveCollectionfor primitive added/removed. #11531 - Adds an optional
rejectOnTileFailparameter tosampleTerrainandsampleTerrainMostDetailedto allow handling of tile request failures. #11530
Fixes 🔧
- Fixed rendering of polygons spanning extents of 90 degrees or more. #4871
- Fixed ground primitive polygon visual artifacts at pole. #8033
- Fixed bug in
Cesium3DTilePassaffecting thePRELOADpass. #11525 - Fixed bug where sky atmosphere could not be shown when
globe.showis initialized to false. #11266 - Fixed issue loading workers in cross-origin
Build/Cesium/Cesium.jsandBuild/CesiumUnminified/Cesium.jsrequests. #11505 - Fixed
showOnScreenbehavior forModelandCesium3DTilesetcredits. #11538 - Remove reading of
import.metameta-property because webpack does not support it. #11511 - Fixed label background rendering in request render mode. #11529
Deprecated ⏳
PolygonGeometry.computeRectanglehas been deprecated. It will be removed in 1.112. UsePolygonGeometry.computeRectangleFromPositionsinstead.
1.109 - 2023-09-01
@cesium/engine
Breaking Changes 📣
- Firefox 114 is now the minimum Firefox version required to run CesiumJS. #11400
TaskProcessornow loads worker files as ESM instead of AMD. #11400
Additions 🎉
- Added the
retinaTilesoption to theOpenStreetMapImageryProviderconstructor options to allow requesting tiles at the 2x resolution for retina displays. #11485 - The TypeScript definition of
definednow uses type predicates to allow TypeScript to use the result during compilation.
Fixes 🔧
- Restore previous behavior for cut out terrain loading. #11482
- The return type of
SingleTileImageryProvider.fromUrlhas been fixed to bePromise.<SingleTileImageryProvider>(wasvoid). #11432 - Fixed request render mode when models are loading without
incrementallyLoadTextures. #11486
@cesium/widgets
Additions 🎉
- Added two additional default imagery providers from Stadia maps to the BaseLayerPicker widget: Alidade Smooth and Alidade Smooth Dark. #11485
Fixes 🔧
- Use updated URLs and attribution for Stamen Map styles in the default BaseLayerPicker widget. #11451
- Fixed types for
ProviderViewModel.CreationFunction. #11452 - Fixed I3dmLoader manually compute positions when RTC_CENTER is ZERO #11466
1.108 - 2023-08-01
Major Announcements 📢
- Starting with version 1.109, CesiumJS will require Firefox version 114 or higher for rendering. This is to facilitate web worker loading and remove outdated dependencies. Other browsers and node will be unaffected.
@cesium/engine
Fixes 🔧
- Fixed issue where terrain with multiple layers was loading higher LOD tiles inconsistently. #11312
- Fixed
OpenStreetMapImageryProviderusage in comments, change default url and addtile.openstreetmap.orgtoRequestScheduler.requestsByServer. #11407 - Fixed calculation of GroundPolyline bounding spheres in regions with negative terrain heights. #11184
- Fixed
CzmlDataSourcein cases of customEllipsoid.WGS84definitions. #11190 - Fixed mipmaps for textures using the
KHR_texture_transformextension. #11411
@cesium/widgets
Fixes 🔧
- Fixed conflicting geocoder suggestions for latitude and longitude pairs by removing
CartographicGeocoderServicefrom the default geocoder services inGeocoderViewModel. #11433.
1.107.2 - 2023-07-13
This is an npm-only release to fix a dependency issue published in 1.107.1
1.107.1 - 2023-07-13
@cesium/engine
Fixes 🔧
- Fixed a bug where
Modelwould not respond to different alpha values in aCesium3DTileStyle. #11399 - Fixed dimensions of
tangentECin custom shaders. #11394
@cesium/widgets
Fixes 🔧
- Fixed promise return value when using
viewer.flyToto navigate to an ImageryLayer. #11392 - Fixed
depthTestAgainstTerrainvalue being overridden when using the base layer picker widget. #11393
1.107 - 2023-07-03
Major Announcements 📢
- The
readyPromisepattern has been removed across the API. This has been done to facilitate better asynchronous flow and error handling. For example:
try {
const tileset = await Cesium.Cesium3DTileset.fromUrl(url);
viewer.scene.primitives.add(tileset);
} catch (error) {
console.log(`Failed to load tileset: ${error}`);
}
try {
const viewer = new Cesium.Viewer("cesiumContainer", {
terrainProvider: await Cesium.createWorldTerrainAsync();
});
} catch (error) {
console.log(`Failed to created terrain: ${error}`);
}
@cesium/engine
Breaking Changes 📣
CesiumWidgetconstructor optionoptions.imageryProviderhas been removed. Useoptions.baseLayerinstead.ImageryProvider.readyandImageryProvider.readyPromisehave been removed.ImageryProvider.defaultAlpha,ImageryProvider.defaultNightAlpha,ImageryProvider.defaultDayAlpha,ImageryProvider.defaultBrightness,ImageryProvider.defaultContrast,ImageryProvider.defaultHue,ImageryProvider.defaultSaturation,ImageryProvider.defaultGamma,ImageryProvider.defaultMinificationFilter,ImageryProvider.defaultMagnificationFilterhave been removed. UseImageryLayer.alpha,ImageryLayer.nightAlpha,ImageryLayer.dayAlpha,ImageryLayer.brightness,ImageryLayer.contrast,ImageryLayer.hue,ImageryLayer.saturation,ImageryLayer.gamma,ImageryLayer.minificationFilter,ImageryLayer.magnificationFilterinstead.ImageryLayer.getViewableRectanglewas removed. UseImageryLayer.getImageryRectangleinstead.ArcGisMapServerImageryProviderconstructor parameterurl,ArcGisMapServerImageryProvider.ready, andArcGisMapServerImageryProvider.readyPromisehave been removed. UseArcGisMapServerImageryProvider.fromUrlinstead.BingMapsImageryProviderconstructor parameterurl,BingMapsImageryProvider.ready, andBingMapsImageryProvider.readyPromisehave been removed. UseBingMapsImageryProvider.fromUrlinstead.GoogleEarthEnterpriseImageryProviderconstructor parametersoptions.urlandoptions.metadata,GoogleEarthEnterpriseImageryProvider.ready, andGoogleEarthEnterpriseImageryProvider.readyPromisehave been removed. UseGoogleEarthEnterpriseImageryProvider.fromMetadatainstead.GoogleEarthEnterpriseMapsProviderconstructor parametersoptions.urlandoptions.channel,GoogleEarthEnterpriseMapsProvider.ready, andGoogleEarthEnterpriseMapsProvider.readyPromisehave been removed. UseGoogleEarthEnterpriseMapsProvider.fromUrlinstead.GridImageryProvider.readyandGridImageryProvider.readyPromisehave been removed.IonImageryProviderconstructor parameterassetId,BIonImageryProvider.ready, andIonImageryProvider.readyPromisehave been removed. UseIonImageryProvider.fromAssetIdinstead.MapboxImageryProvider.readyandMapboxImageryProvider.readyPromisehave been removed.MapboxStyleImageryProvider.readyandMapboxStyleImageryProvider.readyPromisehave been removed.OpenStreetMapImageryProvider.readyandOpenStreetMapImageryProvider.readyPromisehave been removed.SingleTileImageryProviderconstructor parametersoptions.tileHeightandoptions.tileWidthbecame required in CesiumJS 1.104. Omitting these properties will result in an error in 1.107. Provideoptions.tileHeightandoptions.tileWidth, or useSingleTileImageryProvider.fromUrlinstead.SingleTileImageryProvider.readyandSingleTileImageryProvider.readyPromisehave been removed. UseSingleTileImageryProvider.fromUrlinstead.TileCoordinatesImageryProvider.readyandTileCoordinatesImageryProvider.readyPromisehave been removed.TileMapServiceImageryProviderconstructor parameteroptions.url,TileMapServiceImageryProvider.ready, andTileMapServiceImageryProvider.readyPromisehave been removed. UseTileMapServiceImageryProvider.fromUrlinstead.UrlTemplateImageryProvider.reinitialize,UrlTemplateImageryProvider.ready, andUrlTemplateImageryProvider.readyPromisehave been removed.WebMapServiceImageryProvider.ready, andWebMapServiceImageryProvider.readyPromisehave been removed.WebMapTileServiceImageryProvider.ready, andWebMapTileServiceImageryProvider.readyPromisehave been removed.TerrainProvider.readyandTerrainProvider.readyPromisehave been removed.createWorldImagerywas removed. UsecreateWorldImageryAsyncinstead.ArcGISTiledElevationTerrainProviderconstructor parameteroptions.url,ArcGISTiledElevationTerrainProvider.ready, andArcGISTiledElevationTerrainProvider.readyPromisehave been removed. UseArcGISTiledElevationTerrainProvider.fromUrlinstead.CesiumTerrainProviderconstructor parameteroptions.url,CesiumTerrainProvider.ready, andCesiumTerrainProvider.readyPromisehave been removed. UseCesiumTerrainProvider.fromIonAssetIdorCesiumTerrainProvider.fromUrlinstead.CustomHeightmapTerrainProvider.ready, andCustomHeightmapTerrainProvider.readyPromisewere deprecated in CesiumJS 1.104.EllipsoidTerrainProvider.ready, andEllipsoidTerrainProvider.readyPromisewere deprecated in CesiumJS 1.104.GoogleEarthEnterpriseMetadataconstructor parameteroptions.urlandGoogleEarthEnterpriseMetadata.readyPromisehave been removed. UseGoogleEarthEnterpriseMetadata.fromUrlinstead.GoogleEarthEnterpriseTerrainProviderconstructor parametersoptions.urlandoptions.metadata,GoogleEarthEnterpriseTerrainProvider.ready, andGoogleEarthEnterpriseTerrainProvider.readyPromisehave been removed. UseGoogleEarthEnterpriseTerrainProvider.fromMetadatainstead.VRTheWorldTerrainProviderconstructor parameteroptions.url,VRTheWorldTerrainProvider.ready, andVRTheWorldTerrainProvider.readyPromisehave been removed. UseVRTheWorldTerrainProvider.fromUrlinstead.createWorldTerrainwas removed. UsecreateWorldTerrainAsyncinstead.Cesium3DTilesetconstructor parameteroptions.url,Cesium3DTileset.ready, andCesium3DTileset.readyPromisehave been removed. UseCesium3DTileset.fromUrlinstead.createOsmBuildingswas removed. UsecreateOsmBuildingsAsyncinstead.Model.fromGltf,Model.readyPromise, andModel.texturesLoadedPromisehave been removed. UseModel.fromGltfAsync,Model.readyEvent,Model.errorEvent, andModel.texturesReadyEventinstead. For example:try { const model = await Cesium.Model.fromGltfAsync({ url: "../../SampleData/models/CesiumMan/Cesium_Man.glb", }); viewer.scene.primitives.add(model); model.readyEvent.addEventListener(() => { // model is ready for rendering }); } catch (error) { console.log(`Failed to load model. ${error}`); }I3SDataProviderconstruction parameteroptions.url,I3SDataProvider.ready, andI3SDataProvider.readyPromisehave been removed. UseI3SDataProvider.fromUrlinstead.TimeDynamicPointCloud.readyPromisewas removed. UseTimeDynamicPointCloud.frameFailedto track any errors.VoxelProvider.readyandVoxelProvider.readyPromisehave been removed.VoxelPrimitive.readyPromisehave been removed.Cesium3DTilesVoxelProviderconstruction parameteroptions.url,Cesium3DTilesVoxelProvider.ready, andCesium3DTilesVoxelProvider.readyPromisehave been removed. UseCesium3DTilesVoxelProvider.fromUrlinstead.Primitive.readyPromise,ClassificationPrimitive.readyPromise,GroundPrimitive.readyPromise, andGroundPolylinePrimitive.readyPromisehave been removed. Wait forPrimitive.ready,ClassificationPrimitive.ready,GroundPrimitive.ready, orGroundPolylinePrimitive.readyto return true instead.CreditDisplay.addCredit,CreditDisplay.addDefaultCredit, andCreditDisplay.removeDefaultCredithave been removed. UseCreditDisplay.addCreditToNextFrame,CreditDisplay.addStaticCredit, andCreditDisplay.removeStaticCreditrespectively instead.
Additions 🎉
- Added
Cesium3DTileset.cacheBytesandCesium3DTileset.maximumCacheOverflowBytesto better control memory usage. To replicate previous behavior, convertmaximumMemoryUsagefrom MB to bytes, assign the value tocacheBytes, and setmaximumCacheOverflowBytes = Number.MAX_VALUE
Fixes 🔧
- Fixed crash in
CzmlDataSourcewhen a 3D Tileset entity is hidden. #11357 - Fixed
PostProcessStagecrash affecting point clouds rendered with attenuation. #11339 - Fixed a race condition when loading cut-out terrain. #11382
- Fixed debug label rendering in
Cesium3dTilesInspector. #11355 - Fixed credits for imagery layer shows up even when layer is hidden. #11340
- Fixed Insufficient buffer size thrown by rendering 3dtiles. #11358
Deprecated ⏳
Cesium3DTileset.maximumMemoryUsagehas been deprecated in CesiumJS 1.107. It will be removed in 1.110. UseCesium3DTileset.cacheBytesandCesium3DTileset.maximumCacheOverflowBytesinstead. #11310
@cesium/widgets
Breaking Changes 📣
Viewerconstructor optionoptions.imageryProviderhas been deprecated in CesiumJS 1.104. It will be removed in 1.107. Useoptions.baseLayerinstead.
1.106.1 - 2023-06-02
This is an npm-only release to fix a dependency issue published in 1.106
1.106 - 2023-06-01
@cesium/engine
Fixes 🔧
- Fixed label background rendering. #11293
- Fixed color creation from CSS color string with modern "space-separated" syntax. #11271
- Fixed tracked entity camera controls. #11286
- Fixed a race condition when loading cut-out terrain. #11296
- Fixed async behavior for custom terrain and imagery providers. #11274
1.105.2 - 2023-05-15
- This is an npm-only release to fix a dependency issue published in 1.105.1.
1.105.1 - 2023-05-10
@cesium/engine
Additions 🎉
- Added
createGooglePhotorealistic3DTilesetto create a 3D tileset streaming Google Photorealistic 3D Tiles. - Added
GoogleMapsfor managing credentials when loading data from the Google Map Tiles API.
Fixes 🔧
- Improved camera controls when globe is off. #7171
1.105 - 2023-05-01
@cesium/engine
Additions 🎉
- Added
ArcGisMapServerImagery.fromBasemapType, andArcGisBaseMapType, andArcGisMapServicefor ease of use with the latest ArcGIS Imagery API.#11098 - Added
CesiumWidget.creditDisplayto access the onscreen and lightbox credits. #11241 - Added
CreditDisplay.addStaticCreditandCreditDisplay.removeStaticCreditsuch thatCredit.showOnScreenvalue is taken into account. #6215 - Added
options.gltfCallbacktoModel.loadGltfAsyncto allow apps to access the loaded glTF JSON. #11240 - Added
GeocoderService.creditand andattributionsproperty toGeocoderService.Resultto allow for geocoder services to attribute results. #11256
Fixes 🔧
- Fixed Repeated URI parsing slows 3D Tiles performance #11197. Together with #11211, this can reduce tile parsing time by as much as 25% on large tilesets
- Fixed atmosphere rendering performance issue. 10510
- Fixed crashing when zooming to an entity without globe present. #10957
- Fixed model rendering when emissiveTexture is defined and emissiveFactor is not. #11215
- Fixed issue with calling
switchToOrthographicFunctionandcamera.flyToin immediate succession. #11210 - Fixed an issue when zooming in an orthographic frustum. #11206
- Fixed a crash when Cesium3DTileStyle's scaleByDistance, translucencyByDistance or distanceDisplayCondition set to StyleExpression
which returns
undefined. #11228 - Fixed handling of
out_FragColorlayout declarations when translating shaders to WebGL1. #11230 - Fixed a problem with Ambient Occlusion that affected some MacOS hardware. #10106
- Fixed UniformType.MAT3 value for custom shaders. #11235.
Deprecated ⏳
CreditDisplay.addCredit,CreditDisplay.addDefaultCredit, andCreditDisplay.removeDefaultCredithave been deprecated in CesiumJS 1.105. They will be removed in 1.107. UseCreditDisplay.addCreditToNextFrame,CreditDisplay.addStaticCredit, andCreditDisplay.removeStaticCreditrespectively instead. #11241
@cesium/widgets
Additions 🎉
- Added
Viewer.creditDisplayto access the onscreen and lightbox credits. #11241 - The
Geocoderwidget will now display attributions onscreen or in the lightbox for geocoder results if present, otherwise a default credit from a geocoder service if one is provided. #11256
Fixes 🔧
- Fixed missing
ContextOptionsin generated TypeScript definitions. 10963
1.104 - 2023-04-03
Major Announcements 📢
- Starting with CesiumJS 1.104 The
readyPromisepattern has been deprecated across the API. It will be removed in CesiumJS 1.107. This has been done to facilitate better asynchronous flow and error handling. For example:
try {
const tileset = await Cesium.Cesium3DTileset.fromUrl(url);
viewer.scene.primitives.add(tileset);
} catch (error) {
console.log(`Failed to load tileset: ${error}`);
}
@cesium/engine
Additions 🎉
- Added
ArcGisMapServerImageryProvider.fromUrl,ArcGISTiledElevationTerrainProvider.fromUrl,BingMapsImageryProvider.fromUrl,CesiumTerrainProvider.fromUrl,CesiumTerrainProvider.fromIonAssetId,GoogleEarthEnterpriseMetadata.fromUrl,GoogleEarthEnterpriseImageryProvider.fromMetadata,GoogleEarthEnterpriseMapsProvider.fromUrl,GoogleEarthEnterpriseTerrainProvider.fromMetadata,ImageryLayer.fromProviderAsync,IonImageryProvider.fromAssetId,SingleTileImageryProvider.fromUrl,Terrain,TileMapServiceImageryProvider.fromUrl,VRTheWorldTerrainProvider.fromUrl,createWorldTerrainAsync,Cesium3DTileset.fromUrl,Cesium3DTileset.fromIonAssetId,createOsmBuildingsAsync,Model.fromGltfAsync,Model.readyEvent,Model.errorEvent,Model.texturesReadyEvent,I3SDataProvider.fromUrl, andCesium3DTilesVoxelProvider.fromUrlfor better async flow and error handling. #11059 - Send
X-Cesium-*headers to requests to cesium ion. #11200
Fixes 🔧
- Fixed issue where passing
childrenin the Entity constructor options will override children. #11101 - Fixed error type to be
RequestErrorEventinResource.retryCallback. #11177 - Fixed issue when render
OrthographicFrustumgeometry byDebugCameraPrimitive. #11159 - Fixed ion URL in
RequestSchedulerthrottling overrides. #11193 - Fixed
SingleTileImageryProviderfetching image whenshowisfalseby allowing lazy-loading forSingleTileImageryProvideriftileWidthandtileHeightare provided to the constructor. #9529 - Fixed various race conditions from async operations. #10909
Deprecated ⏳
CesiumWidgetconstructor optionoptions.imageryProviderhas been deprecated in CesiumJS 1.104. It will be removed in 1.107. Useoptions.baseLayerinstead.ImageryProvider.readyandImageryProvider.readyPromisewere deprecated in CesiumJS 1.104. They will be removed in 1.107.ImageryProvider.defaultAlpha,ImageryProvider.defaultNightAlpha,ImageryProvider.defaultDayAlpha,ImageryProvider.defaultBrightness,ImageryProvider.defaultContrast,ImageryProvider.defaultHue,ImageryProvider.defaultSaturation,ImageryProvider.defaultGamma,ImageryProvider.defaultMinificationFilter,ImageryProvider.defaultMagnificationFilterwere deprecated in CesiumJS 1.104. They will be removed in 1.107. UseImageryLayer.alpha,ImageryLayer.nightAlpha,ImageryLayer.dayAlpha,ImageryLayer.brightness,ImageryLayer.contrast,ImageryLayer.hue,ImageryLayer.saturation,ImageryLayer.gamma,ImageryLayer.minificationFilter,ImageryLayer.magnificationFilterinstead.ImageryLayer.getViewableRectanglewas deprecated in CesiumJS 1.104. It will be removed in 1.107. UseImageryLayer.getImageryRectangleinstead.ArcGisMapServerImageryProviderconstructor parameterurl,ArcGisMapServerImageryProvider.ready, andArcGisMapServerImageryProvider.readyPromisewere deprecated in CesiumJS 1.104. They will be removed in 1.107. UseArcGisMapServerImageryProvider.fromUrlinstead.BingMapsImageryProviderconstructor parameterurl,BingMapsImageryProvider.ready, andBingMapsImageryProvider.readyPromisewere deprecated in CesiumJS 1.104. They will be removed in 1.107. UseBingMapsImageryProvider.fromUrlinstead.GoogleEarthEnterpriseImageryProviderconstructor parametersoptions.urlandoptions.metadata,GoogleEarthEnterpriseImageryProvider.ready, andGoogleEarthEnterpriseImageryProvider.readyPromisewere deprecated in CesiumJS 1.104. They will be removed in 1.107. UseGoogleEarthEnterpriseImageryProvider.fromMetadatainstead.GoogleEarthEnterpriseMapsProviderconstructor parametersoptions.urlandoptions.channel,GoogleEarthEnterpriseMapsProvider.ready, andGoogleEarthEnterpriseMapsProvider.readyPromisewere deprecated in CesiumJS 1.104. They will be removed in 1.107. UseGoogleEarthEnterpriseMapsProvider.fromUrlinstead.GridImageryProvider.readyandGridImageryProvider.readyPromisewere deprecated in CesiumJS 1.104. They will be removed in 1.107.IonImageryProviderconstructor parameterassetId,BIonImageryProvider.ready, andIonImageryProvider.readyPromisewere deprecated in CesiumJS 1.104. They will be removed in 1.107. UseIonImageryProvider.fromAssetIdinstead.MapboxImageryProvider.readyandMapboxImageryProvider.readyPromisewere deprecated in CesiumJS 1.104. They will be removed in 1.107.MapboxStyleImageryProvider.readyandMapboxStyleImageryProvider.readyPromisewere deprecated in CesiumJS 1.104. They will be removed in 1.107.OpenStreetMapImageryProvider.readyandOpenStreetMapImageryProvider.readyPromisewere deprecated in CesiumJS 1.104. They will be removed in 1.107.SingleTileImageryProviderconstructor parametersoptions.tileHeightandoptions.tileWidthbecame required in CesiumJS 1.104. Omitting these properties will result in an error in 1.107. Provideoptions.tileHeightandoptions.tileWidth, or useSingleTileImageryProvider.fromUrlinstead.SingleTileImageryProvider.readyandSingleTileImageryProvider.readyPromisewere deprecated in CesiumJS 1.104. They will be removed in 1.107. UseSingleTileImageryProvider.fromUrlinstead.TileCoordinatesImageryProvider.readyandTileCoordinatesImageryProvider.readyPromisewere deprecated in CesiumJS 1.104. They will be removed in 1.107.TileMapServiceImageryProviderconstructor parameteroptions.url,TileMapServiceImageryProvider.ready, andTileMapServiceImageryProvider.readyPromisewere deprecated in CesiumJS 1.104. They will be removed in 1.107. UseTileMapServiceImageryProvider.fromUrlinstead.UrlTemplateImageryProvider.reinitialize,UrlTemplateImageryProvider.ready, andUrlTemplateImageryProvider.readyPromisewere deprecated in CesiumJS 1.104. They will be removed in 1.107.WebMapServiceImageryProvider.ready, andWebMapServiceImageryProvider.readyPromisewere deprecated in CesiumJS 1.104. They will be removed in 1.107.WebMapTileServiceImageryProvider.ready, andWebMapTileServiceImageryProvider.readyPromisewere deprecated in CesiumJS 1.104. They will be removed in 1.107.TerrainProvider.readyandTerrainProvider.readyPromisewere deprecated in CesiumJS 1.104. They will be removed in 1.107.createWorldImagerywas deprecated in CesiumJS 1.104. It will be removed in 1.107. UsecreateWorldImageryAsyncinstead.ArcGISTiledElevationTerrainProviderconstructor parameteroptions.url,ArcGISTiledElevationTerrainProvider.ready, andArcGISTiledElevationTerrainProvider.readyPromisewere deprecated in CesiumJS 1.104. They will be removed in 1.107. UseArcGISTiledElevationTerrainProvider.fromUrlinstead.CesiumTerrainProviderconstructor parameteroptions.url,CesiumTerrainProvider.ready, andCesiumTerrainProvider.readyPromisewere deprecated in CesiumJS 1.104. They will be removed in 1.107. UseCesiumTerrainProvider.fromIonAssetIdorCesiumTerrainProvider.fromUrlinstead.CustomHeightmapTerrainProvider.ready, andCustomHeightmapTerrainProvider.readyPromisewere deprecated in CesiumJS 1.104.EllipsoidTerrainProvider.ready, andEllipsoidTerrainProvider.readyPromisewere deprecated in CesiumJS 1.104.GoogleEarthEnterpriseMetadataconstructor parameteroptions.urlandGoogleEarthEnterpriseMetadata.readyPromisewere deprecated in CesiumJS 1.104. They will be removed in 1.107. UseGoogleEarthEnterpriseMetadata.fromUrlinstead.GoogleEarthEnterpriseTerrainProviderconstructor parametersoptions.urlandoptions.metadata,GoogleEarthEnterpriseTerrainProvider.ready, andGoogleEarthEnterpriseTerrainProvider.readyPromisewere deprecated in CesiumJS 1.104. They will be removed in 1.107. UseGoogleEarthEnterpriseTerrainProvider.fromMetadatainstead.VRTheWorldTerrainProviderconstructor parameteroptions.url,VRTheWorldTerrainProvider.ready, andVRTheWorldTerrainProvider.readyPromisewere deprecated in CesiumJS 1.104. They will be removed in 1.107. UseVRTheWorldTerrainProvider.fromUrlinstead.createWorldTerrainwas deprecated in CesiumJS 1.104. It will be removed in 1.107. UsecreateWorldTerrainAsyncinstead.Cesium3DTilesetconstructor parameteroptions.url,Cesium3DTileset.ready, andCesium3DTileset.readyPromisewere deprecated in CesiumJS 1.104. They will be removed in 1.107. UseCesium3DTileset.fromUrlinstead.createOsmBuildingswas deprecated in CesiumJS 1.104. It will be removed in 1.107. UsecreateOsmBuildingsAsyncinstead.Model.fromGltf,Model.readyPromise, andModel.texturesLoadedPromisewere deprecated in CesiumJS 1.104. They will be removed in 1.107. UseModel.fromGltfAsync,Model.readyEvent,Model.errorEvent, andModel.texturesReadyEventinstead. For example:try { const model = await Cesium.Model.fromGltfAsync({ url: "../../SampleData/models/CesiumMan/Cesium_Man.glb", }); viewer.scene.primitives.add(model); model.readyEvent.addEventListener(() => { // model is ready for rendering }); } catch (error) { console.log(`Failed to load model. ${error}`); }I3SDataProviderconstruction parameteroptions.url,I3SDataProvider.ready, andI3SDataProvider.readyPromisewere deprecated in CesiumJS 1.104. They will be removed in 1.107. UseI3SDataProvider.fromUrlinstead.TimeDynamicPointCloud.readyPromisewas deprecated in CesiumJS 1.104. It will be removed in 1.107. UseTimeDynamicPointCloud.frameFailedto track any errors.VoxelProvider.readyandVoxelProvider.readyPromisewere deprecated in CesiumJS 1.104. They will be removed in 1.107.Cesium3DTilesVoxelProviderconstruction parameteroptions.url,Cesium3DTilesVoxelProvider.ready, andCesium3DTilesVoxelProvider.readyPromisewere deprecated in CesiumJS 1.104. They will be removed in 1.107. UseCesium3DTilesVoxelProvider.fromUrlinstead.Primitive.readyPromise,ClassificationPrimitive.readyPromise,GroundPrimitive.readyPromise, andGroundPolylinePrimitive.readyPromisewere deprecated in CesiumJS 1.104. They will be removed in 1.107. Wait forPrimitive.ready,ClassificationPrimitive.ready,GroundPrimitive.ready, orGroundPolylinePrimitive.readyto return true instead.
@cesium/widgets
Fixes 🔧
- Fixed Cesium.Viewer instantiated inside my lit component: CreditDisplay is missing its styles #10907
- Fixed allowing
falseforimageryProviderinViewer.ConstructorOptions. #11179
Deprecated ⏳
Viewerconstructor optionoptions.imageryProviderhas been deprecated in CesiumJS 1.104. It will be removed in 1.107. Useoptions.baseLayerinstead.
1.103 - 2023-03-01
@cesium/engine
Additions 🎉
Fixes 🔧
- Fixed browser warning for
willReadFrequentlyoption. #11025 - Replaced constructor types with primitive types in JSDoc and generated TypeScript definitions. #11080
- Adjusted render order of voxels and opaque entities. #11120
- Fixed artifacts on edges of voxels with BOX shape. #11050
- Fixed initial textures visibility for particle systems. #11099
- Fixed Primitive.getGeometryInstanceAttributes cache acquisition speed. #11066
- Fixed requestWebgl1 hint error in context. #11082
@cesium/widgets
Fixes 🔧
- Replaced constructor types with primitive types in JSDoc and generated TypeScript definitions. #11080
1.102 - 2023-02-01
Major Announcements 📢
- CesiumJS now defaults to using a WebGL2 context for rendering. WebGL2 is widely supported on all platforms and this results in better feature support across devices, especially mobile.
- WebGL1 is supported. If WebGL2 is not available, CesiumJS will automatically fall back to WebGL1.
- In order to work in a WebGL2 context, any custom materials, custom primitives or custom shaders will need to be upgraded to use GLSL 300.
- Otherwise to request a WebGL 1 context, set
requestWebgl1totruewhen providingContextOptionsas shown below:const viewer = new Viewer("cesiumContainer", { contextOptions: { requestWebgl1: true, }, });
@cesium/engine
Additions 🎉
- Added
FeatureDetection.supportsWebgl2to detect if a WebGL2 rendering context in the current browser.
Fixes 🔧
- Fixed label background rendering. #11040
- Fixed a bug decoding glTF Draco attributes with quantization bits above 16. #7471
- Fixed an edge case in
viewer.flyTowhen flying to a imagery layer with certain terrain providers. #10937 - Fixed a crash in terrain sampling if any points have an undefined position due to being outside the rectangle. #10931
- Fixed a bug where scale was not being applied to the top-level tileset geometric error. #11047
- Updating Bing Maps top page hyperlink to Bing Maps ToU hyperlink #11049
1.101 - 2023-01-02
Major Announcements 📢
- Starting with version 1.102, CesiumJS will default to using a WebGL2 context for rendering. WebGL2 is widely supported on all platforms and this change will result in better feature support across devices, especially mobile.
- WebGL1 will still be supported. If WebGL2 is not available, CesiumJS will automatically fall back to WebGL1.
- In order to work in a WebGL2 context, any custom materials, custom primitive or custom shaders will need to be upgraded to use GLSL 300.
- Otherwise to request a WebGL 1 context, set
requestWebgl1totruewhen providingContextOptionsas shown below:const viewer = new Viewer("cesiumContainer", { contextOptions: { requestWebgl1: true, }, });
@cesium/engine
Additions 🎉
- Added
vertexShadowDarknessparameter toGlobeto control the amount of darkness of the vertex shadow when terrain lighting is enabled. #10914 - Added experimental support for 3D Tiles voxels with the
3DTILES_content_voxelsextension. The current implementation is intended for development use, as the voxel format has not yet been finalized and is subject to breaking changes without deprecation.
Fixes 🔧
- Fixed a bug where the scale of a
PointPrimitivewas incorrect whenscaleByDistancewas set to aNearFarScalar. #10912 - Fixed glTF models with a mix of Draco and non-Draco attributes. #10936
- Fixed a bug where billboards with
alignedAxisproperties were not properly aligned in 2D and Columbus View. #10965 - Fixed a bug where *.ktx2 image loading from a URI failed. #10869
- Fixed a bug where a
Modelwould sometimes disappear when loaded in Columbus View. #10945 - Fixed a bug where the entity collection of a
GpxDataSourcedid not have theownerproperty set. #10921 - Fixed the JSDoc and TypeScript definitions of arguments in
Matrix2.multiplyByScalar,Matrix3.multiplyByScalar, and several functions in theS2Cellclass. #10899 - Fixed a bug where
resultparameters were omitted from the TypeScript definitions. #10864
Deprecated ⏳
ContextOptions.requestWebgl2was deprecated in CesiumJS 1.101 and will be removed in 1.102. Instead, CesiumJS will default to using a WebGL2 context for rendering. UseContextOptions.requestWebgl1to request a WebGL1 or WebGL2 context.
@cesium/widgets
Additions 🎉
- Added
viewerVoxelInspectorMixinandVoxelInspectorto support experimental 3D Tiles voxels.
1.100 - 2022-12-01
Major Announcements 📢
- CesiumJS is now published alongside two smaller packages
@cesium/engineand@cesium/widgets#10824:- The source code has been partitioned into two folders:
packages/engineandpackages/widgets. - These workspaces packages will follow semantic versioning.
- These workspaces packages will be published as ES modules with TypeScript definitions.
- In the combined CesiumJS release, the
Sourcefolder only contains the following:Cesium.jsCesium.d.tsAssetsThirdPartyWidgets(CSS files only)
- The ability to import modules and TypeScript definitions from individual files has been removed. Any imports should originate from the
cesiummodule (import { Cartesian3 } from "cesium";) or the combinedCesium.jsfile (import { Cartesian3 } from "Source/Cesium.js";);
- The source code has been partitioned into two folders:
Breaking Changes 📣
- The viewer parameter in
KmlTour.prototype.playwas removed. Instead of aViewer, pass aCesiumWidgetinstead. #10845
1.99 - 2022-11-01
Major Announcements 📢
- Starting with version 1.100, CesiumJS will be published alongside two smaller packages
@cesium/engineand@cesium/widgets#10824:- The source code will been partitioned into two folders:
packages/engineandpackages/widgets. - These workspaces packages will follow semantic versioning.
- These workspaces packages will be published as ES modules with TypeScript definitions.
- The combined CesiumJS release will continue to be published, however, the
Sourcefolder will only contain the following:Cesium.jsCesium.d.tsAssetsThirdPartyWidgets(CSS files only)
- The ability to import modules and TypeScript definitions from individual files will been removed. Any imports should originate from the
cesiummodule (import { Cartesian3 } from "cesium";) or the combinedCesium.jsfile (import { Cartesian3 } from "Source/Cesium.js";);
- The source code will been partitioned into two folders:
Breaking Changes 📣
- The polyfills
requestAnimationFrameandcancelAnimationFramehave been removed. Use the native browser methods instead. #10579
Additions 🎉
- Added support for I3S 3D Object and IntegratedMesh Layers. #9634
Deprecated ⏳
- The viewer parameter in
KmlTour.prototype.playwas deprecated in Cesium 1.99. It will be removed in 1.100. Instead of aViewer, pass aCesiumWidgetinstead. #10845
Fixes 🔧
- Fixed a bug where the scale of a
Modelwas being incorrectly applied to its bounding sphere. #10855 - Fixed a bug where rendering a
Modelwith image-based lighting while specular environment maps were unsupported caused a crash. #10859 - Fixed a bug where request render mode was broken when a ground primitive is added. #10756
1.98.1 - 2022-10-03
- This is an npm only release to fix the improperly published 1.98.
1.98 - 2022-10-03
Breaking Changes 📣
- As of the previous release (1.97),
new Model()is an internal constructor and must not be used directly. UseModel.fromGltf()instead. #10778 - The
.getPropertyNamesmethods ofCesium3DTileFeature,Cesium3DTilePointFeature, andModelFeaturehave been removed. Use the.getPropertyIdsmethods instead.
Additions 🎉
- Added support for the
WEB3D_quantized_attributesextension found in some glTF 1.0 models. #10758
Fixes 🔧
- Fixed a bug where instanced models without normals would not render. #10765
- Fixed a regression where
i3dmwith scale and without rotation would render incorrectly. #10808 - Fixed a regression where instanced feature IDs were not processed correctly #10771
- Fixed a regression where
Cesium3DTileFeature.setProperty()was not creating properties for unknown property IDs. #10775 - Fixed a regression where
pntstiles with3DTILES_draco_point_compressionand <= 8 quantization bits were being rendered incorrectly. #10794 - Fixed a regression where glTF models with unused nodes would crash #10813
- Fixed a regression where tilesets would not load in multiple
Viewers. #10828 - Fixed a bug where camera would not follow the
Viewer.trackedEntityif it had a model with aHeightReferenceother thanNONE. #10805 - Fixed a bug where calling
removeAllon aClippingPlaneCollectionattached to aModelwould cause a crash. #10827 - Fixed a bug where replacing a
Model'sClippingPlaneCollectionwith one of the same length would cause a crash. #10831 - Fixed a bug where KMLs with a NetworkLink with viewRefreshMode=='onRegion' would cause Cesium to make numerous resource requests and possibly trigger an out of memory error. #10790
- Fixed a bug where calling
Vector3DTileContent.getFeaturebefore a render update could result in no feature being returned. #10819
1.97 - 2022-09-01
Major Announcements 📢
- CesiumJS has switched to a new architecture for loading glTF models and tilesets to enable:
- User-defined GLSL shaders via
CustomShader - Support for 3D Tiles Next metadata extensions:
EXT_structural_metadata,EXT_mesh_featuresandEXT_instance_features - Support for
EXT_mesh_gpu_instancing - Support for
EXT_meshopt_compression - Texture caching across different tiles
- Numerous bug fixes
- User-defined GLSL shaders via
- Usage notes for the new glTF architecture:
- Those using
ModelExperimental.fromGltf()should now useModel.fromGltf(). - The
enableModelExperimentalflag was removed, as tilesets and entities always use the new architecture. - The new implementation of
Modeluses the same public API as before, so no other changes are necessary.
- Those using
Breaking Changes 📣
- glTF 1.0 assets are no longer fully supported. glTF 1.0 techniques are converted to PBR materials where possible, but more complex techniques will no longer function correctly. If custom GLSL shaders are needed, use
CustomShaderinstead. #10648 - The glTF 2.0 extension
KHR_techniques_webglandKHR_materials_commonare also no longer fully supported. Materials are converted to PBR materials where possible. - Support for rendering instanced models on the CPU has been removed.
Model.gltf,Model.basePath,Model.pendingTextureLoads(properties), andModel.dequantizeInShader(constructor option) have been removed.ModelMeshandModelMaterialhave been removed.new Model()is an internal constructor and must not be used directly. UseModel.fromGltf()instead. #10778
Additions 🎉
Modelcan now classify other assets with a givenclassificationType. #10623Modelnow supports back face culling for point clouds. #10703- Export asset files such as CSS in
package.json, allowing bundlers to import without additional configuration. #9212 - The
sideEffectsfield inpackage.jsonis now specified, allowing more conservative bundlers like Webpack to enable tree shaking by default. #10714 - Model entities now support
CustomShader. #10747
Fixes 🔧
- Fixed bug with
Viewer.flyTowhere camera could go underground when target is anEntitywithModelGraphicswithHeightReference.CLAMP_TO_GROUNDorHeightReference.RELATIVE_TO_GROUND. #10631 - Fixed issues running CesiumJS under Node.js when using ES modules. #10684
- Fixed the incorrect lighting of instanced models. #10690
- Fixed developer error with
Camera.flyTowith anorientationand aRectanglevalue fordestination. #10704 - Fixed rendering bug with points in .vctr format, where points wouldn't show until picked or styled. #10707
- Fixed bounding volume calculations for glTF models with
KHR_mesh_quantizationand normalized positions. #10741
1.96 - 2022-08-01
Major Announcements 📢
- Built
Cesium.jsis no longer AMD format. This may or may not be a breaking change depending on how you use Cesium in your app. See our blog post for the full details. #10399- Built
Cesium.jshas gone from12.5MBto8.4MBunminified and from4.3MBto3.6MBminified.Cesium.js.maphas gone from22MBto17.2MB. - If you were ingesting individual ESM-style modules from the combined file
Build/Cesium/Cesium.jsorBuild/CesiumUnminified/Cesium.js, instead useBuild/Cesium/index.jsorBuild/CesiumUnminified/index.jsrespectively. - Using ESM from
Sourcewill require a bundler to resolve third party node dependencies. CESIUM_BASE_URLshould be set to eitherBuild/CesiumorBuild/CesiumUnminified.
- Built
Breaking Changes 📣
Model.boundingSpherenow returns the bounding sphere in ECEF coordinates instead of the local coordinate system. #10589Cesium3DTileStyle.readyPromiseandCesium3DTileStyle.readyhave been removed. If loading a style from a url, useCesium3DTileStyle.fromUrlinstead. #10348
Additions 🎉
- Models and tilesets that use the
CESIUM_primitive_outlineextension can now toggle outlines at runtime with theshowOutlineproperty. Furthermore, the color of the outlines can now be controlled by theoutlineColorproperty. #10506 - Added optional
blurActiveElementOnCanvasFocusoption to set the behavior of blurring the active element when interacting with the canvas. #10518 - Added
ModelExperimental.getNodeto allow users to modify the transforms of model nodes at runtime. #10540 - Added support for point cloud styling for tilesets loaded with
ModelExperimental. #10569 - Upgraded earcut from version 2.2.2 to version 2.2.4 which includes 10-15% better performance in triangulation. #10593
Fixes 🔧
- Fixed crash when loading glTF models with the
EXT_mesh_featuresandEXT_structural_metadataextensions withoutchannelsproperty. #10511 - Fixed a crash in the 3D Tiles Feature Styling sandcastle that occurred when using
ModelExperimental. #10514 - Fixed improper handling of double-sided materials in
ModelExperimental. #10507 - Fixed a bug where the alpha component of
model.colorwould not update in the 3D Models Coloring sandcastle when usingModelExperimental. #10519 - Fixed a bug where .cmpt files were not cached correctly in
ModelExperimental. #10524 - Fixed a crash in the 3D Tiles Formats sandcastle when loading draco-compressed point clouds with
ModelExperimental. #10521 - Fixed a bug where per-feature post-processing was not working with
ModelExperimental. #10528 - Fixed error in
loadAndExecuteScriptand favorite icon lost in sandcastle when CesiumJS was running in cross-origin isolated environment.#10515 - Fixed a bug where
Viewer.zoomTowould continuously throw errors if aCesium3DTilesetfailed to load.#10523 - Fixed a bug where styles would not apply to tilesets if they were applied while the tileset was hidden. #10582
- Fixed a bug where
.i3dmmodels with quantized positions were not being correctly loaded byModelExperimental. #10598 - Fixed a bug where dynamic geometry was not marked as
ready. #10517
Deprecated ⏳
- Support for rendering instanced models on the CPU has been deprecated and will be removed in CesiumJS 1.97. #10589
- The polyfills
requestAnimationFrameandcancelAnimationFramehave been deprecated and will be removed in 1.99. Use the native browser methods instead. #10579
1.95 - 2022-07-01
Breaking Changes 📣
- Tilesets rendered with
ModelExperimentalmust setprojectTo2Dto true in order to be accurately projected and rendered in 2D / CV mode. #10440
Additions 🎉
- Memory statistics for
ModelExperimentalnow appear in theCesium3DTilesInspector. This includes binary metadata memory, which is not counted byModel. #10397 - Memory statistics for
ResourceCache(used byModelExperimental) now appear in theCesium3DTilesInspector. #10413 - Added support for rendering individual models in 2D / CV using
ModelExperimental. #10419 - Added support for rendering instanced tilesets in 2D / CV using
ModelExperimental. #10433 - Added
modelUpAxisandmodelForwardAxisconstructor options toCesium3DTileset#10439 - Added
heightReferencetoModelExperimental. #10448 - Added
silhouetteSizeandsilhouetteColortoModelExperimental. #10457 - Added support for mipmapped textures in
ModelExperimental. #10231 - Added
distanceDisplayConditiontoModelExperimental. #10481 - Added support for
AGI_articulationstoModelExperimental. #10479 - Added
credittoModelExperimental. #10489 - Added
asynchronoustoModelExperimental.fromGltf. #10490 - Added
idtoModelExperimental. #10491 ExperimentalFeatures.enableModelExperimentalnow enablesModelExperimentalfor entities and CZML in addition to 3D Tiles. #10492
Fixes 🔧
- Fixed
FeatureDetectionfor Microsoft Edge. #10429 - Fixed broken links in documentation of
CesiumTerrainProvider. #7478 - Warn if
Cesium3DTilecontent.uri property is empty, and load empty tile. #7263 - Updated text highlighting for code examples in documentation. #10051
- Updated ModelExperimental shader defaults to match glTF spec. #9992
- Fixed shadow rendering artifacts that appeared in
ModelExperimental. #10501
Deprecated ⏳
- The
.getPropertyNamesmethods ofCesium3DTileFeature,Cesium3DTilePointFeature, andModelFeaturehave been deprecated and will be removed in 1.98. Use the.getPropertyIdsmethods instead.
1.94.3 - 2022-06-10
- Fixed a crash with vector tilesets with lines when clamping to terrain or 3D tiles. #10447
1.94.2 - 2022-06-03
- This is an npm only release to fix the improperly published 1.94.1.
1.94.1 - 2022-06-03
Additions 🎉
- Added support for rendering individual models in 2D / CV using
ModelExperimental. #10419
Fixes 🔧
- Fixed
Cesium3DTileColorBlendMode.REPLACEfor certain tilesets. #10424 - Fixed a crash when applying a style to a vector tileset with point features. #10427
1.94 - 2022-06-01
Breaking Changes 📣
- Removed individual image-based lighting parameters from
ModelandCesium3DTileset. #10388 - Models and tilesets rendered with
ModelExperimentalmust setenableDebugWireframeto true in order fordebugWireframeto work in WebGL1. #10344 - Removed
ImagerySplitPositionandScene.imagerySplitPosition. UseSplitDirectionandScene.splitPositioninstead.#10418 - Tilesets and models should now specify image-based lighting parameters in
ImageBasedLightinginstead of as individual options. #10226
Additions 🎉
- Added
Cesium3DTileStyle.fromUrlfor loading a style from a url. #10348 - Added
IndexDatatype.fromTypedArray. #10350 - Added
ModelAnimationCollection.animateWhilePausedandModelAnimation.animationTimeto allow explicit control over a model's animations. #9339 - Replaced
options.gltfwithoptions.urlinModelExperimental.fromGltf. #10371 - Added support for 2D / CV mode for non-instanced tilesets rendered with
ModelExperimental. #10384 - Added
PolygonGraphics.textureCoordinates,PolygonGeometry.textureCoordinates,CoplanarPolygonGeometry.textureCoordinates, which override the defaultstRotation-based texture coordinate calculation behavior with the provided texture coordinates, specified in the form of aPolygonHierarchyofCartesian2points. #10109
Fixes 🔧
- Fixed the rendering issues related to order-independent translucency on iOS devices. #10417
- Fixed the inaccurate computation of bounding spheres for models not centered at (0,0,0) in their local space. #10395
- Fixed the inaccurate computation of bounding spheres for
ModelExperimental. #10339 - Fixed error when destroying a 3D tileset before it has finished loading. [#10363](Fixes https://github.com/CesiumGS/cesium/issues/10363)
- Fixed race condition which can occur when updating
Cesium3DTileStylebefore itsreadyPromisehas resolved. #10345 - Fixed label background rendering. #10342
- Enabled support for loading web assembly modules in Edge. #6541
- Fixed crash for zero-area
regionbounding volumes in a 3D Tileset. #10351 - Fixed
Cesium3DTileset.debugShowUrlso that it works for implicit tiles too. #10372 - Fixed crash when loading a tileset without a metadata schema but has external tilesets with tile or content metadata. #10387
- Fixed winding order for negatively scaled models in
ModelExperimental. #10405 - Fixed error when calling
sampleTerrainover a large area that required lots of tile requests. #10425
Deprecated ⏳
Cesium3DTileStyleconstructor parameters ofstringorResourcetype have been deprecated and will be removed in CesiumJS 1.96. If loading a style from a url, useCesium3DTileStyle.fromUrlinstead. #10348Cesium3DTileStyle.readyPromiseandCesium3DTileStyle.readyhave been deprecated and will be removed in CesiumJS 1.96. If loading a style from a url, useCesium3DTileStyle.fromUrlinstead. #10348Model.gltf,Model.basePath,Model.pendingTextureLoads(properties), andModel.dequantizeInShader(constructor option) have been deprecated and will be removed in CesiumJS 1.97. #10415- Support for glTF 1.0 assets has been deprecated and will be removed in CesiumJS 1.97. Please convert any glTF 1.0 assets to glTF 2.0. #10414
- Support for the glTF extension
KHR_techniques_webglhas been deprecated and will be removed in CesiumJS 1.97. If custom GLSL shaders are needed, useCustomShaderinstead. #10414 Model.boundingSpherecurrently returns results in the model's local coordinate system, but in CesiumJS 1.96 it will be changed to return results in ECEF coordinates. #10415
1.93 - 2022-05-02
Breaking Changes 📣
- Temporarily disable
Scene.orderIndependentTranslucencyby default on iPad and iOS due to a WebGL regression, see #9827. The old default will be restored once the issue has been resolved.
Additions 🎉
- Improved rendering of ground and sky atmosphere. #10063
- Added support for morph targets in
ModelExperimental. #10271 - Added support for skins in
ModelExperimental. #10282 - Added support for animations in
ModelExperimental. #10314 - Added
debugWireframetoModelExperimental. #10332 - Added
GeoJsonSource.processto support adding features without removing existing entities, similar toCzmlDataSource.process. #9275 KmlDataSourcenow exposes thecameraandcanvasproperties, which are used to provide information about the state of theViewerwhen making network requests for aLink. Passing these values in the constructor is now optional.- Prevent text selection in the Timeline widget. #10325
Fixes 🔧
- Fixed
GoogleEarthEnterpriseImageryProvider.requestImagery,GridImageryProvider.requestImagery, andTileCoordinateImageryProvider.requestImageryreturn types to match interface. #10265 - Various property and return TypeScript definitions were corrected, and the
Eventclass was made generic in order to support strongly typed event callbacks. #10292 - Fixed debug label rendering in
Cesium3dTilesInspector. #10246 - Fixed a crash that occurred in
ModelExperimentalwhen loading a Draco-compressed model with tangents. #10294 - Fixed an incorrect model matrix computation for
i3dmtilesets that are loaded usingModelExperimental. #10302 - Fixed race condition during billboard clamping when the height reference changes. #10191
- Fixed ability to run
testand other support tasks from within the release zip file. #10311 - Fixed
Expressionmulti-variable substitution. #12455
1.92 - 2022-04-01
Breaking Changes 📣
- Removed
Cesium.when. AnyPromisein the Cesium API has changed to the nativePromiseAPI. Code bases using cesium will likely need updates after this change. See the upgrade guide for instructions on how to update your code base to be compliant with native promises. ArcGisMapServerImageryProvider.readyPromisewill not reject if there is a failure unless the request cannot be retried.SingleTileImageryProvider.readyPromisewill not reject if there is a failure unless the request cannot be retried.- Removed links to SpecRunner.html and related Jasmine files for running unit tests in browsers.
Additions 🎉
- Added experimental support for the 3D Tiles 1.1 draft. #10189
- Added support for
EXT_structural_metadataproperty attributes inCustomShader#10228 - Added partial support for
EXT_structural_metadataproperty textures inCustomShader#10247 - Added
minimumPixelSize,scale, andmaximumScaletoModelExperimental. #10092 Cesium3DTilesetnow has asplitDirectionproperty, allowing the tileset to only be drawn on the left or right side of the screen. This is useful for visual comparison of tilesets. #10193- Added
lightColortoModelExperimental#10207 - Added image-based lighting to
ModelExperimental. #10234 - Added clipping planes to
ModelExperimental. #10250 - Added
Cartesian2.clamp,Cartesian3.clamp, andCartesian4.clamp. #10197 - Added a 'renderable' property to 'Fog' to disable its visual rendering while preserving tiles culling at a distance. #10186
- Refactored metadata API so
tileset.metadataandcontent.group.metadataare more symmetric withcontent.metadataandtile.metadata. #10224
Fixes 🔧
- Fixed
Scenedocumentation formsaaSamplesproperty. #10205 - Fixed a bug where
pntstiles would crash whenCesium.ExperimentalFeatures.enableModelExperimentalwas true. #10183 - Fixed an issue with Firefox and dimensionless SVG images. #9191
- Fixed
ShadowMapdocumentation foroptions.pointLightRadiustype. #10195 - Fixed evaluation of
minimumLevelon metadataFailure for TileMapServiceImageryProvider. #10198 - Fixed a bug where models without normals would render as solid black. Now, such models will use unlit shading. #10237
Deprecated ⏳
ImagerySplitDirectionandScene.imagerySplitPositionhave been deprecated and will be removed in CesiumJS 1.94. UseSplitDirectionandScene.splitPositioninstead.- Tilesets and models should now specify image-based lighting parameters in
ImageBasedLightinginstead of as individual options. The individual parameters are deprecated and will be removed in CesiumJS 1.94. #10226
1.91 - 2022-03-01
Breaking Changes 📣
- In Cesium 1.92,
when.jswill be removed and replaced with native promises.Cesium.whenis deprecated and will be removed in 1.92. AnyPromisereturned from a function as of 1.92 will switch the nativePromiseAPI. Code bases using cesium will likely need updates after this change. See the upgrade guide for instructions on how to update your code base to be compliant with native promises. - Fixed an inconsistently handled exception in
camera.getPickRaythat arises when the scene is not rendered.camera.getPickRaycan now return undefined. #10139
Additions 🎉
- Added MSAA support for WebGL2. Enabled in the
Viewerconstructor with themsaaSamplesoption and can be controlled throughScene.msaaSamples. - glTF contents now use
ModelExperimentalby default. #10055 - Added the ability to toggle back-face culling in
ModelExperimental. #10070 - Added
depthPlaneEllipsoidOffsettoViewerandSceneconstructors to address rendering artifacts below the WGS84 ellipsoid. #9200 - Added support for
debugColorTilesinModelExperimental. #10071 - Added support for shadows in
ModelExperimental. #10077 - Added
packArrayandunpackArrayfor matrix types. #10118 - Added more affine transformation helper functions to
Matrix2,Matrix3, andMatrix4. #10124- Added
setScale,setUniformScale,setRotation,getRotation, andmultiplyByUniformScaletoMatrix2. - Added
setScale,setUniformScale,setRotation, andmultiplyByUniformScaletoMatrix3. - Added
setUniformScale,setRotation,getRotation, andfromRotationtoMatrix4.
- Added
- Added
AxisAlignedBoundingBox.fromCorners. #10130 - Added
BoundingSphere.fromTransformation. #10130 - Added
OrientedBoundingBox.fromTransformation,OrientedBoundingBox.computeCorners, andOrientedBoundingBox.computeTransformation. #10130 - Added
Rectangle.subsection. #10130 - Added option to show tileset credits on screen. #10144
- glTF copyrights now appear under the credits display. #10138
- Credits are now sorted based on their number of occurrences. #10141
Fixes 🔧
- Fixed a bug where updating
ModelExperimental's model matrix would not update its bounding sphere. #10078 - Fixed feature ID texture artifacts on Safari. #10111
- Fixed a bug where a translucent shader applied to a
ModelExperimentalwith opaque features was not being rendered. #10110
1.90 - 2022-02-01
Additions 🎉
- Feature IDs for styling and picking in
ModelExperimentalcan now be selected via(tileset|model).featureIdIndexand(tileset|model).instanceFeatureIdIndex. #10018 - Added support for all types of feature IDs in
CustomShader. #10018 - Moved documentation for
CustomShaderintoDocumentation/CustomShaderGuide/to make it more discoverable. #10054 - Added getters
Cesium3DTileFeature.featureIdandModelFeature.featureIdso the feature ID or batch ID can be accessed from a picked feature. #10022 - Added
I3dmLoaderto transcode .i3dm toModelExperimental. #9968 - Added
PntsLoaderto transcode .pnts toModelExperimental. #9978 - Added point cloud attenuation support to
ModelExperimental. #9998
Fixes 🔧
- Fixed an error when loading GeoJSON with null
strokeorfillproperties but valid opacity values. #9717 - Fixed
scene.pickTranslucentDepthfor translucent point clouds with eye dome lighting. #9991 - Added a setter for
tileset.pointCloudShadingthat throws if set toundefinedto clarify that this is disallowed. #9998 - Fixes handling .b3dm
_BATCHIDaccessors inModelExperimental#10008 and 10031 - Fixed path entity being drawn when data is unavailable #1704
- Fixed setting
tileset.imageBasedLightingFactorhas no effect on i3dm tile content. #10020 - Zooming out is no longer sluggish when close to
screenSpaceCameraController.minimumDistance. #9932 - Fixed Particle System Weather sandcastle demo to work with new ES6 rules. #10045
1.89 - 2022-01-03
Breaking Changes 📣
- Removed
Scene.debugShowGlobeDepth. #9965 - Removed
CesiumInspectorViewModel.globeDepthandCesiumInspectorViewModel.pickDepth. #9965 barycentricCoordinatesreturnsundefinedwhen the input triangle is degenerate. #9175
Additions 🎉
- Added a
pointSizefield to custom vertex shaders for more control over shading point clouds. #9960 - Added
lambertDiffuseMultiplierproperty to Globe object to enhance terrain lighting. #9878 - Added
getFeatureInfoUrloption toWebMapServiceImageryProviderwhich reads the getFeatureInfo request URL for WMS service if it differs with the getCapabilities URL. #9563 - Added
tileset.enableModelExperimentalso tilesets withModelandModelExperimentalcan be mixed in the same scene. #9982
Fixes 🔧
- Fixed handling of vec3 vertex colors in
ModelExperimental. #9955 - Fixed handling of Draco quantized vec3 vertex colors in
ModelExperimental. #9957 - Fixed handling of vec3 vertex colors in
CustomShaderPipelineStage. #9964 - Fixes how
Camera.changedhandles changes inheading. #9970 - Fixed handling of subtree root transforms in
Implicit3DTileContent. #9971 - Fixed issue in
ModelExperimentalwhere indices were not the correct data type after draco decode. #9974 - Fixed WMS 1.3.0
GetMapbboxparameter so that it follows the axis ordering as defined in the EPSG database. #9797 - Fixed
KmlDataSourceso that it can handle relative URLs for additional elements - video, audio, iframe etc. #9328
1.88 - 2021-12-01
Fixes 🔧
- Fixed a bug with .ktx2 textures having an incorrect minification filter. #9876
- Fixed incorrect diffuse texture alpha in glTFs with the
KHR_materials_pbrSpecularGlossinessextension. #9943
1.87.1 - 2021-11-09
Additions 🎉
- Added experimental implementations of 3D Tiles Next. The following extensions are supported:
- 3DTILES_content_gltf for using glTF models directly as tile contents
- 3DTILES_metadata for adding structured metadata to tilesets, tiles, or groups of tile content
- EXT_mesh_features for adding feature identification and feature metadata to glTF models
- 3DTILES_implicit_tiling for a compact representation of quadtrees and octrees
- 3DTILES_bounding_volume_S2 for S2 bounding volumes
- 3DTILES_multiple_contents for storing multiple contents within a single tile
- Added
ModelExperimental, a new experimental architecture for loading glTF models. It is disabled by default; setExperimentalFeatures.enableModelExperimental = trueto enable it. - Added
CustomShaderclass for stylingCesium3DTilesetorModelExperimentalwith custom GLSL shaders - Added Sandcastle examples for 3D Tiles Next: Photogrammetry Classification, CDB Yemen, and S2 Globe
1.87 - 2021-11-01
Additions 🎉
- Added
ScreenOverlaysupport toKmlDataSource. #9864 - Added back some support for Draco attribute quantization as a workaround until a full fix in the next Draco version. #9904
- Added
CumulusCloud.colorfor customizing cloud colors. #9877
Fixes 🔧
- Point cloud styles that reference a missing property now treat the missing property as
undefinedrather than throwing an error. #9882 - Fixed Draco attribute quantization in point clouds. #9908
- Fixed crashes caused by the cloud noise texture exceeding WebGL's maximum supported texture size. #9885
- Updated third-party zip.js library to 2.3.12 to fix compatibility with Webpack 4. #9897
1.86.1 - 2021-10-15
Fixes 🔧
- Fixed zip.js configurations causing CesiumJS to not work with Node 16. #9861
- Fixed a bug in
Rectangle.unionwith rectangles that span the entire globe. #9866
1.86 - 2021-10-01
Breaking Changes 📣
- Updated to Draco 1.4.1 and temporarily disabled attribute quantization. #9847
Fixes 🔧
- Fixed incorrect behavior in
CameraFlightPathwhen using Columbus View. #9192
1.85 - 2021-09-01
Breaking Changes 📣
- Removed
Scene.terrainExaggerationandoptions.terrainExaggerationforCesiumWidget,Viewer, andScene, which were deprecated in CesiumJS 1.83. UseGlobe.terrainExaggerationinstead.
Additions 🎉
- Added
CloudCollectionandCumulusCloudfor adding procedurally generated clouds to a scene. #9737 BingMapsGeocoderServicenow takes an optional Culture Code for localizing results. #9729
Fixes 🔧
- Fixed several crashes related to point cloud eye dome lighting. #9719
1.84 - 2021-08-02
Breaking Changes 📣
- Dropped support for Internet Explorer, which was deprecated in CesiumJS 1.83.
Additions 🎉
- Added a
polylinePositionsgetter toCesium3DTileFeaturethat gets the decoded positions of a polyline vector feature. #9684 - Added
ImageryLayerCollection.pickImageryLayers, which determines the imagery layers that are intersected by a pick ray. #9651
Fixes 🔧
- Fixed an issue where styling vector points based on their batch table properties would crash. #9692
- Fixed an issue in
TileBoundingRegion.distanceToCamerathat caused incorrect results when the camera was on the opposite site of the globe. #9678 - Fixed an error with removing a CZML datasource when the clock interval has a duration of zero. #9637
- Fixed the ability to set a material's image to
undefinedandMaterial.DefaultImageId. #9644 - Fixed render crash when creating a
polylineVolumewith very close points. #9669 - Fixed a bug in
PolylineGeometrythat incorrectly shifted colors when duplicate positions were removed. #9676 - Fixed the calculation of
OrientedBoundingBox.distancedSquaredTosuch that they handlehalfAxeswith magnitudes near zero. #9670 - Fixed a crash that would hang the browser if a
Labelwas created with a soft hyphen in its text. #9682 - Fixed the incorrect calculation of
distanceSquaredToinBoundingSphere. #9686
1.83 - 2021-07-01
Breaking Changes 📣
- Dropped support for KTX1 and Crunch textures; use the
ktx2ktx2converter tool to update existing KTX1 files.
Additions 🎉
- Added support for KTX2 and Basis Universal compressed textures. #9513
- Added support for glTF models with the
KHR_texture_basisuextension. - Added support for 8-bit, 16-bit float, and 32-bit float KTX2 specular environment maps.
- Added support for KTX2 images in
Material. - Added new
PixelFormatandWebGLConstantsenums from WebGL extensionsWEBGL_compressed_texture_etc,WEBGL_compressed_texture_astc, andEXT_texture_compression_bptc.
- Added support for glTF models with the
- Added dynamic terrain exaggeration with
Globe.terrainExaggerationandGlobe.terrainExaggerationRelativeHeight. #9603 - Added
CustomHeightmapTerrainProvider, a simpleTerrainProviderthat gets height values from a callback function. #9604 - Added the ability to hide outlines on OSM Buildings and other tilesets and glTF models using the
CESIUM_primitive_outlineextension. #8959 - Added checks for supported 3D Tiles extensions. #9552
- Added option to ignore extraneous colorspace information in glTF textures and
ImageBitmap. #9624 - Added
options.fadingEnabledparameter toShadowMapto control whether shadows fade out when the light source is close to the horizon. #9565 - Added documentation clarifying that the
outlineWidthproperty will be ignored on all major browsers on Windows platforms. #9600 - Added documentation for
KmlTour,KmlTourFlyTo, andKmlTourWait. Added documentation and akmlToursgetter toKmlDataSource. Removed references toKmlTourSoundCues. #8073
Fixes 🔧
- Fixed a regression where older tilesets without a top-level
geometricErrorwould fail to load. #9618 - Fixed an issue in
WebMapTileServiceImageryProviderwhere using URL subdomains caused query parameters to be dropped from requests. #9606 - Fixed an issue in
ScreenSpaceCameraController.tilt3DOnTerrainthat caused unexpected camera behavior when tilting terrain diagonally along the screen. #9562 - Fixed error handling in
GlobeSurfaceTileto print terrain tile request errors to console. #9570 - Fixed broken image URL in the KML Sandcastle. #9579
- Fixed an error where the
positionToEyeECandtangentToEyeMatrixproperties for custom materials were not set inGlobeFS. #9597 - Fixed misleading documentation in
Matrix4.inverseandMatrix4.inverseTransformationthat used "affine transformation" instead of "rotation and translation" specifically. #9608 - Fixed a regression where external images in glTF models were not being loaded with
preferImageBitmap, which caused them to decode on the main thread and cause frame rate stuttering. #9627 - Fixed misleading "else" case condition for
colorandshowinCesium3DTileStyle. A defaultcolorvalue is used if nocolorconditions are given. The default value forshow,true, is used if noshowconditions are given. #9633 - Fixed a crash that occurred after disabling and re-enabling a post-processing stage. This also prevents the screen from randomly flashing when enabling stages for the first time. #9649
Deprecated ⏳
Scene.terrainExaggerationandoptions.terrainExaggerationforCesiumWidget,Viewer, andScenehave been deprecated and will be removed in CesiumJS 1.85. They will be replaced withGlobe.terrainExaggeration.- Support for Internet Explorer has been deprecated and will end in CesiumJS 1.84.
1.82.1 - 2021-06-01
- This is an npm only release to fix the improperly published 1.82.0.
1.82 - 2021-06-01
Additions 🎉
- Added
FeatureDetection.supportsBigInt64Array,FeatureDetection.supportsBigUint64ArrayandFeatureDetection.supportsBigInt.
Fixes 🔧
- Fixed
processTerrainindecodeGoogleEarthEnterprisePacketto handle a newer terrain packet format that includes water surface meshes after terrain meshes. #9519
1.81 - 2021-05-01
Fixes 🔧
- Fixed an issue where
Camera.flyTowould not work properly with a non-WGS84 Ellipsoid. #9498 - Fixed an issue where setting the
ViewportQuadrectangle after creating the viewport had no effect.#9511 - Fixed an issue where TypeScript was not picking up type defintions for
ArcGISTiledElevationTerrainProvider. #9522
Deprecated ⏳
loadCRNandloadKTXhave been deprecated and will be removed in CesiumJS 1.83. They will be replaced with support for KTX2. #9478
1.80 - 2021-04-01
Additions 🎉
- Added support for drawing ground primitives on translucent 3D Tiles. #9399
1.79.1 - 2021-03-01
Fixes 🔧
- Fixed a regression in 1.79 that broke terrain exaggeration. #9397
- Fixed an issue where interpolating certain small rhumblines with surface distance 0.0 would not return the expected result. #9430
1.79 - 2021-03-01
Breaking Changes 📣
- Removed
Cesium3DTileset.url, which was deprecated in CesiumJS 1.78. UseCesium3DTileset.resource.urlto retrieve the url value.
- Removed
EasingFunction.QUADRACTIC_IN, which was deprecated in CesiumJS 1.77. UseEasingFunction.QUADRATIC_IN. - Removed
EasingFunction.QUADRACTIC_OUT, which was deprecated in CesiumJS 1.77. UseEasingFunction.QUADRATIC_OUT. - Removed
EasingFunction.QUADRACTIC_IN_OUT, which was deprecated in CesiumJS 1.77. UseEasingFunction.QUADRATIC_IN_OUT. - Changed
TaskProcessor.maximumActiveTasksconstructor option to be infinity by default. #9313
Fixes 🔧
- Fixed an issue that prevented use of the full CesiumJS zip release package in a Node.js application.
- Fixed an issue where certain inputs to EllipsoidGeodesic would result in a surfaceDistance of NaN. #9316
- Fixed
sampleTerrainandsampleTerrainMostDetailednot working forArcGISTiledElevationTerrainProvider. #9286 - Consistent with the spec, CZML
polylineVolumenow expects its shape positions to specified using thecartesian2property. Use of thecartesianis also supported for backward-compatibility. #9384 - Removed an unnecessary matrix copy each time a
Cesium3DTilesetis updated. #9366
1.78 - 2021-02-01
Additions 🎉
- Added
BillboardCollection.show,EntityCluster.show,LabelCollection.show,PointPrimitiveCollection.show, andPolylineCollection.showfor a convenient way to control show of the entire collection #9307 TaskProcessornow accepts an absolute URL in addition to a worker name as it's first parameter. This makes it possible to use custom web workers with Cesium's task processing system without copying them to Cesium's Workers directory. #9338- Added
Cartesian2.crosswhich computes the magnitude of the cross product of two vectors whose Z values are implicitly 0. #9305 - Added
Math.previousPowerOfTwo. #9310
Fixes 🔧
- Fixed an issue with
Math.modintroducing a small amount of floating point error even when the input did not need to be altered. #9354
Deprecated ⏳
Cesium3DTileset.urlhas been deprecated and will be removed in Cesium 1.79. Instead, useCesium3DTileset.resource.urlto retrieve the url value.
1.77 - 2021-01-04
Additions 🎉
- Added
ElevationBandmaterial, which maps colors and gradients to exact elevations. #9132
Fixes 🔧
- Fixed an issue where changing a model or tileset's
color,backFaceCulling, orsilhouetteSizewould trigger an error. #9271
Deprecated ⏳
EasingFunction.QUADRACTIC_INwas deprecated and will be removed in Cesium 1.79. It has been replaced withEasingFunction.QUADRATIC_IN. #9220EasingFunction.QUADRACTIC_OUTwas deprecated and will be removed in Cesium 1.79. It has been replaced withEasingFunction.QUADRATIC_OUT. #9220EasingFunction.QUADRACTIC_IN_OUTwas deprecated and will be removed in Cesium 1.79. It has been replaced withEasingFunction.QUADRATIC_IN_OUT. #9220
1.76 - 2020-12-01
Fixes 🔧
- Fixed an issue where tileset styles would be reapplied every frame when a tileset has a style and
tileset.preloadWhenHiddenis true andtileset.showis false. Also fixed a related issue where styles would be reapplied if the style being set is the same as the active style. #9223 - Fixed JSDoc and TypeScript type definitions for
EllipsoidTangentPlane.fromPointswhich didn't list a return type. #9227 - Updated DOMPurify from 1.0.8 to 2.2.2. #9240
1.75 - 2020-11-02
Fixes 🔧
- Fixed an issue in the PBR material where models with the
KHR_materials_unlitextension had the normal attribute disabled. #9173. - Fixed JSDoc and TypeScript type definitions for
writeTextToCanvaswhich listed incorrect return type. #9196 - Fixed JSDoc and TypeScript type definitions for
Viewer.globeconstructor option to allow disabling the globe on startup. #9063
1.74 - 2020-10-01
Additions 🎉
- Added
Matrix3.inverseTransposeandMatrix4.inverseTranspose. #9135
Fixes 🔧
- Fixed an issue where the camera zooming is stuck when looking up. #9126
- Fixed an issue where Plane doesn't rotate correctly around the main local axis. #8268
- Fixed clipping planes with non-uniform scale. #9135
- Fixed an issue where ground primitives would get clipped at certain camera angles. #9114
- Fixed a bug that could cause half of the globe to disappear when setting the `terrainProvider. #9161
- Fixed a crash when loading Cesium OSM buildings with shadows enabled. #9172
1.73 - 2020-09-01
Breaking Changes 📣
- Removed
MapboxApi, which was deprecated in CesiumJS 1.72. Pass your access token directly to theMapboxImageryProviderorMapboxStyleImageryProviderconstructors. - Removed
BingMapsApi, which was deprecated in CesiumJS 1.72. Pass your access key directly to theBingMapsImageryProviderorBingMapsGeocoderServiceconstructors.
Additions 🎉
- Added support for the CSS
line-heightspecifier in thefontproperty of aLabel. #8954 Viewernow has default pick handling forCesium3DTileFeaturedata and will display its properties in the default ViewerInfoBoxas well as setViewer.selectedEntityto a transient Entity instance representing the data. #9121.
Fixes 🔧
- Fixed several artifacts on mobile devices caused by using insufficient precision. #9064
- Fixed handling of
data:scheme for the Cesium ion logo URL. #9085 - Fixed an issue where the boundary rectangles in
TileAvailabilityare not sorted correctly, causing terrain to sometimes fail to achieve its maximum detail. #9098 - Fixed an issue where a request for an availability tile of the reference layer is delayed because the throttle option is on. #9099
- Fixed an issue where Node.js tooling could not resolve package.json. #9105
- Fixed classification artifacts on some mobile devices. #9108
- Fixed an issue where Resource silently fails to load if being used multiple times. #9093
1.72 - 2020-08-03
Breaking Changes 📣
- CesiumJS no longer ships with a default Mapbox access token and Mapbox imagery layers have been removed from the
BaseLayerPickerdefaults. If you are usingMapboxImageryProviderorMapboxStyleImageryProvider, useoptions.accessTokenwhen initializing the imagery provider.
Additions 🎉
- Added support for glTF multi-texturing via
TEXCOORD_1. #9075
Deprecated ⏳
MapboxApi.defaultAccessTokenwas deprecated and will be removed in CesiumJS 1.73. Pass your access token directly to the MapboxImageryProvider or MapboxStyleImageryProvider constructors.BingMapsApiwas deprecated and will be removed in CesiumJS 1.73. Pass your access key directly to the BingMapsImageryProvider or BingMapsGeocoderService constructors.
Fixes 🔧
- Fixed
Color.fromCssColorStringwhen color string contains spaces. #9015 - Fixed 3D Tileset replacement refinement when leaf is empty. #8996
- Fixed a bug in the assessment of terrain tile visibility #9033
- Fixed vertical polylines with
arcType: ArcType.RHUMB, including lines drawn via GeoJSON. #9028 - Fixed wall rendering when underground #9041
- Fixed issue where a side of the wall was missing if the first position and the last position were equal #9044
- Fixed
translucencyByDistancefor label outline color #9003 - Fixed return value for
SampledPositionProperty.removeSample#9017 - Fixed issue where wall doesn't have correct texture coordinates when there are duplicate positions input #9042
- Fixed an issue where clipping planes would not clip at the correct distances on some Android devices, most commonly reproducible on devices with
MaliGPUs that do not support float textures via WebGL #9023
1.71 - 2020-07-01
Breaking Changes 📣
- Updated
WallGeometryto respect the order of positions passed in, instead of making the positions respect a counter clockwise winding order. This will only affect the look of walls with an image material. If this changed the way your wall is drawing, reverse the order of the positions. #8955
Additions 🎉
- Added
backFaceCullingproperty toCesium3DTilesetandModelto support viewing the underside or interior of a tileset or model. #8981 - Added
Ellipsoid.surfaceAreafor computing the approximate surface area of a rectangle on the surface of an ellipsoid. #8986 - Added support for PolylineVolume in CZML. #8841
- Added
Color.toCssHexStringfor getting the CSS hex string equivalent for a color. #8987
Fixes 🔧
- Fixed issue where tileset was not playing glTF animations. #8962
- Fixed a divide-by-zero bug in
Ellipsoid.geodeticSurfaceNormalwhen given the origin as input.undefinedis returned instead. #8986 - Fixed error with
WallGeometrywhen there were adjacent positions with very close values. #8952 - Fixed artifact for skinned model when log depth is enabled. #6447
- Fixed a bug where certain rhumb arc polylines would lead to a crash. #8787
- Fixed handling of Label's backgroundColor and backgroundPadding option #8949
- Fixed several bugs when rendering CesiumJS in a WebGL 2 context. #797
- Fixed a bug where switching from perspective to orthographic caused triangles to overlap each other incorrectly. #8346
- Fixed a bug where switching to orthographic camera on the first frame caused the zoom level to be incorrect. #8853
- Fixed
scene.pickFromRayintersection inaccuracies. #8439 - Fixed a bug where a null or undefined name property passed to the
Entityconstructor would throw an exception.#8832 - Fixed JSDoc and TypeScript type definitions for
ScreenSpaceEventHandler.getInputActionwhich listed incorrect return type. #9002 - Improved the style of the error panel. #8739
- Fixed animation widget SVG icons not appearing in iOS 13.5.1. #8993
1.70.1 - 2020-06-10
Additions 🎉
- Add a
toStringmethod to theResourceclass in case an instance gets logged as a string. #8722 - Exposed
Transforms.rotationMatrixFromPositionVelocitymethod from Cesium's private API. #8927
Fixes 🔧
- Fixed JSDoc and TypeScript type definitions for all
ImageryProvidertypes, which were missingdefaultNightAlphaanddefaultDayAlphaproperties. #8908 - Fixed JSDoc and TypeScript for
MaterialProperty, which were missing the ability to take primitive types in their constructor. #8904 - Fixed JSDoc and TypeScript type definitions to allow the creation of
GeometryInstanceinstances usingXXXGeometryclasses. #8941. - Fixed JSDoc and TypeScript for
buildModuleUrl, which was accidentally excluded from the official CesiumJS API. #8923 - Fixed JSDoc and TypeScript type definitions for
EllipsoidGeodesicwhich incorrectly listedresultas required. #8904 - Fixed JSDoc and TypeScript type definitions for
EllipsoidTangentPlane.fromPoints, which takes an array ofCartesian3, not a single instance. #8928 - Fixed JSDoc and TypeScript type definitions for
EntityCollection.getByIdandCompositeEntityCollection.getById, which can both return undefined. #8928 - Fixed JSDoc and TypeScript type definitions for
Vieweroptions parameters. - Fixed a memory leak where some 3D Tiles requests were being unintentionally retained after the requests were cancelled. #8843
- Fixed a bug with handling of PixelFormat's flipY. #8893
1.70.0 - 2020-06-01
Major Announcements 📢
- All Cesium ion users now have access to Cesium OSM Buildings - a 3D buildings layer covering the entire world built with OpenStreetMap building data, available as 3D Tiles. Read more about it on our blog.
- Explore it on Sandcastle.
- Add it to your CesiumJS app:
viewer.scene.primitives.add(Cesium.createOsmBuildings()). - Contains per-feature data like building name, address, and much more. Read more about the available properties.
- CesiumJS now ships with official TypeScript type definitions! #8878
- If you import CesiumJS as a module, the new definitions will automatically be used by TypeScript and related tooling.
- If you import individual CesiumJS source files directly, you'll need to add
"types": ["cesium"]in your tsconfig.json in order for the definitions to be used. - If you’re using your own custom definitions and you’re not yet ready to switch, you can delete
Source/Cesium.d.tsafter install. - See our blog post for more information and a technical overview of how it all works.
- CesiumJS now supports underground rendering with globe translucency! #8726
- Added options for controlling globe translucency through the new
GlobeTranslucencyobject including front face alpha, back face alpha, and a translucency rectangle. - Added
Globe.undergroundColorandGlobe.undergroundColorAlphaByDistancefor controlling how the back side of the globe is rendered when the camera is underground or the globe is translucent. #8867 - Improved camera controls when the camera is underground. #8811
- Sandcastle examples: Globe Translucency, Globe Interior, and Underground Color
- Added options for controlling globe translucency through the new
Additions 🎉
- Our API reference documentation has received dozens of fixes and improvements, largely due to the TypeScript effort.
- Added
Cesium3DTileset.extensionsto get the extensions property from the tileset JSON. #8829 - Added
Camera.completeFlight, which causes the current camera flight to immediately jump to the final destination and call its complete callback. #8788 - Added
nightAlphaanddayAlphaproperties toImageryLayerto control alpha separately for the night and day sides of the globe. #8868 - Added
SkyAtmosphere.perFragmentAtmosphereto switch between per-vertex and per-fragment atmosphere shading. #8866 - Added a new sandcastle example to show how to add fog using a
PostProcessStage#8798 - Added
frustumSplitsoption toDebugCameraPrimitive. 8849 - Supported
#rgbaand#rrggbbaaformats inColor.fromCssColorString. 8873
Fixes 🔧
- Fixed a bug that could cause rendering of a glTF model to become corrupt when switching from a Uint16 to a Uint32 index buffer to accommodate new vertices added for edge outlining. #8820
- Fixed a bug where a removed billboard could prevent changing of the
TerrainProvider. #8766 - Fixed an issue with 3D Tiles point cloud styling where
${feature.propertyName}and${feature["propertyName"]}syntax would cause a crash. Also fixed an issue where property names with non-alphanumeric characters would crash. #8785 - Fixed a bug where
DebugCameraPrimitivewas ignoring the near and far planes of theCamera. #8848 - Fixed sky atmosphere artifacts below the horizon. #8866
- Fixed ground primitives in orthographic mode. #5110
- Fixed the depth plane in orthographic mode. This improves the quality of polylines and other primitives that are rendered near the horizon. 8858
1.69.0 - 2020-05-01
Breaking Changes 📣
- The property
Scene.sunColorhas been removed. Usescene.light.colorandscene.light.intensityinstead. #8774 - Removed
isArray. Use the nativeArray.isArrayfunction instead. #8779
Additions 🎉
- Added
RequestSchedulerto the public API; this allows users to have more control over the requests made by CesiumJS. #8384 - Added support for high-quality edges on solid geometry in glTF models. #8776
- Added
Scene.cameraUndergroundfor checking whether the camera is underneath the globe. #8765
Fixes 🔧
- Fixed several problems with polylines when the logarithmic depth buffer is enabled, which is the default on most systems. #8706
- Fixed a bug with very long view ranges requiring multiple frustums even with the logarithmic depth buffer enabled. Previously, such scenes could resolve depth incorrectly. #8727
- Fixed an issue with glTF skinning support where an optional property
skeletonwas considered required by Cesium. #8175 - Fixed an issue with clamping of non-looped glTF animations. Subscribers to animation
updateevents should expect one additional event firing as an animation stops. #7387 - Geometry instance floats now work for high precision floats on newer iOS devices. #8805
- Fixed a bug where the elevation contour material's alpha was not being applied. #8749
- Fix potential memory leak when destroying
CesiumWidgetinstances. #8591 - Fixed displaying the Cesium ion icon when running in an Android, iOS or UWP WebView. #8758
1.68.0 - 2020-04-01
Additions 🎉
- Added basic underground rendering support. When the camera is underground the globe will be rendered as a solid surface and underground entities will not be culled. #8572
- The
CesiumUnminifiedbuild now includes sourcemaps. #8572 - Added glTF
STEPanimation interpolation. #8786 - Added the ability to edit CesiumJS shaders on-the-fly using the SpectorJS Shader Editor. #8608
Fixes 🔧
- Cesium can now be used in Node.JS 12 and later, with or without
--experimental-modules. It can still be used in earlier versions as well. #8572 - Interacting with the Cesium canvas will now blur the previously focused element. This prevents unintended modification of input elements when interacting with the globe. #8662
TileMapServiceImageryProviderwill now forceminimumLevelto 0 if thetilemapresource.xmlmetadata request fails and therectangleis too large for the given detail level #8448- Fixed ground atmosphere rendering when using a smaller ellipsoid. #8683
- Fixed globe incorrectly occluding objects when using a smaller ellipsoid. #7124
- Fixed a regression introduced in 1.67 which caused overlapping colored ground geometry to have visual artifacts. #8694
- Fixed a clipping problem when viewing a polyline up close with the logarithmic depth buffer enabled, which is the default on most systems. #8703
1.67.0 - 2020-03-02
Breaking Changes 📣
Cesium3DTileset.skipLevelOfDetailis nowfalseby default. #8631- glTF models are now rendered using the
LEQUALSdepth test function instead ofLESS. This means that when geometry overlaps, the later geometry will be visible above the earlier, where previously the opposite was true. We believe this is a more sensible default, and makes it easier to render e.g. outlined buildings with glTF. #8646
Additions 🎉
- Massively improved performance of clamped Entity ground geometry with dynamic colors. #8630
- Added
Entity.tilesetfor loading a 3D Tiles tileset via the Entity API using the newCesium3DTilesetGraphicsclass. #8580 - Added
tileset.uri,tileset.show, andtileset.maximumScreenSpaceErrorproperties to CZML processing for loading 3D Tiles. #8580 - Added
Color.lerpfor linearly interpolating between two RGB colors. #8607 CesiumTerrainProvidernow supports terrain tiles using aWebMercatorTilingSchemeby specifying"projection": "EPSG:3857"inlayer.json. It also now supports numbering tiles from the North instead of the South by specifying"scheme": "slippyMap"inlayer.json. #8563- Added basic support for
isNaN,isFinite,null, andundefinedin the 3D Tiles styling GLSL backend for point clouds. #8621 - Added
sizeInMeterstoParticleSystem. #7746
Fixes 🔧
- Fixed a bug that caused large, nearby geometry to be clipped when using a logarithmic depth buffer, which is the default on most systems. #8600
- Fixed a bug where tiles would not load if the camera was tracking a moving tileset. #8598
- Fixed a bug where applying a new 3D Tiles style during a flight would not update all existing tiles. #8622
- Fixed a bug where Cartesian vectors could not be packed to typed arrays #8568
- Updated knockout from 3.5.0 to 3.5.1. #8424
- Cesium's local development server now works in Node 12 & 13 #8648
Deprecated ⏳
- The
isArrayfunction has been deprecated and will be removed in Cesium 1.69. Use the nativeArray.isArrayfunction instead. #8526
1.66.0 - 2020-02-03
Deprecated ⏳
- The property
Scene.sunColorhas been deprecated and will be removed in Cesium 1.69. Usescene.light.colorandscene.light.intensityinstead. #8493
Additions 🎉
useBrowserRecommendedResolutionflag inViewerandCesiumWidgetnow defaults totrue. This ensures Cesium rendering is fast and smooth by default across all devices. Set it tofalseto always render at native device resolution instead at the cost of performance on under-powered devices. #8548- Cesium now creates a WebGL context with a
powerPreferencevalue ofhigh-performance. Some browsers use this setting to enable a second, more powerful, GPU. You can set it back todefault, or opt-in tolow-powermode, by passing the context option when creating aViewerorCesiumWidgetinstance:
var viewer = new Viewer("cesiumContainer", {
contextOptions: {
webgl: {
powerPreference: "default",
},
},
});
- Added more customization to Cesium's lighting system. #8493
- Added
Light,DirectionalLight, andSunLightclasses for creating custom light sources. - Added
Scene.lightfor setting the scene's light source, which defaults to aSunLight. - Added
Globe.dynamicAtmosphereLightingfor enabling lighting effects on atmosphere and fog, such as day/night transitions. It is true by default but may be set to false if the atmosphere should stay unchanged regardless of the scene's light direction. - Added
Globe.dynamicAtmosphereLightingFromSunfor using the sun direction instead of the scene's light direction whenGlobe.dynamicAtmosphereLightingis enabled. See the moonlight example in the Lighting Sandcastle example. - Primitives and the globe are now shaded with the scene light's color.
- Added
- Updated SampleData models to glTF 2.0. #7802
- Added
Globe.showSkirtsto support the ability to hide terrain skirts when viewing terrain from below the surface. #8489 - Added
minificationFilterandmagnificationFilteroptions toMaterialto control texture filtering. #8473 - Updated earcut to 2.2.1. #8528
- Added a font cache to improve label performance. #8537
Fixes 🔧
- Fixed a bug where the camera could go underground during mouse navigation. #8504
- Fixed a bug where rapidly updating a
PolylineCollectioncould result in aninstanceIndexis out of range error. #8546 - Fixed issue where
RequestSchedulerdouble-counted image requests made viacreateImageBitmap. #8162 - Reduced Cesium bundle size by avoiding unnecessarily importing
Cesium3DTilesetinPicking.js. #8532 - Fixed a bug where files with backslashes were not loaded in KMZ files. #8533
- Fixed WebGL warning message about
EXT_float_blendbeing implicitly enabled. #8534 - Fixed a bug where toggling point cloud classification visibility would result in a grey screen on Linux / Nvidia. #8538
- Fixed a bug where a point in a
PointPrimitiveCollectionwas rendered in the middle of the screen instead of being clipped. #8542 - Fixed a crash when deleting and re-creating polylines from CZML.
ReferencePropertynow returns undefined when the target entity or property does not exist, instead of throwing. #8544 - Fixed terrain tile picking in the Cesium Inspector. #8567
- Fixed a crash that could occur when an entity was deleted while the corresponding
Primitivewas being created asynchronously. #8569 - Fixed a crash when calling
camera.lookAtwith the origin (0, 0, 0) as the target. This could happen when looking at a tileset with the origin as its center. #8571 - Fixed a bug where
camera.viewBoundingSpherewas modifying theoffsetparameter. #8438 - Fixed a crash when creating a plane with both position and normal on the Z-axis. #8576
- Fixed
BoundingSphere.projectTo2Dwhen the bounding sphere’s center is at the origin. #8482
1.65.0 - 2020-01-06
Breaking Changes 📣
OrthographicFrustum.getPixelDimensions,OrthographicOffCenterFrustum.getPixelDimensions,PerspectiveFrustum.getPixelDimensions, andPerspectiveOffCenterFrustum.getPixelDimensionsnow require apixelRatioargument before theresultargument. The previous function definition has been deprecated since 1.63. #8320- The function
Matrix4.getRotationhas been renamed toMatrix4.getMatrix3.Matrix4.getRotationhas been deprecated since 1.62. #8183 createTileMapServiceImageryProviderandcreateOpenStreetMapImageryProviderhave been removed. Instead, pass the same options tonew TileMapServiceImageryProviderandnew OpenStreetMapImageryProviderrespectively. The old functions have been deprecated since 1.62. #8174
Additions 🎉
- Added
Globe.backFaceCullingto support viewing terrain from below the surface. #8470
Fixes 🔧
- Fixed Geocoder auto-complete suggestions when hosted inside Web Components. #8425
- Fixed terrain tile culling problems when under ellipsoid. #8397
- Fixed primitive culling when below the ellipsoid but above terrain. #8398
- Improved the translucency calculation for the Water material type. #8455
- Fixed bounding volume calculation for
GroundPrimitive. #4883 - Fixed
OrientedBoundingBox.fromRectanglefor rectangles with width greater than 180 degrees. #8475 - Fixed globe picking so that it returns the closest intersecting triangle instead of the first intersecting triangle. #8390
- Fixed horizon culling issues with large root tiles. #8487
- Fixed a lighting bug affecting Macs with Intel integrated graphics where glTF 2.0 PBR models with double sided materials would have flipped normals. #8494
1.64.0 - 2019-12-02
Fixes 🔧
- Fixed an issue in image based lighting where an invalid environment map would silently fail. #8303
- Various small internal improvements
1.63.1 - 2019-11-06
Fixes 🔧
- Fixed regression in 1.63 where ground atmosphere and labels rendered incorrectly on displays with
window.devicePixelRatiogreater than 1.0. #8351 - Fixed regression in 1.63 where some primitives would show through the globe when log depth is disabled. #8368
1.63 - 2019-11-01
Major Announcements 📢
- Cesium has migrated to ES6 modules. This may or may not be a breaking change for your application depending on how you use Cesium. See our blog post for the full details.
- We’ve consolidated all of our website content from cesiumjs.org and cesium.com into one home on cesium.com. Here’s where you can now find:
- Sandcastle -
https://sandcastle.cesium.com - API Docs -
https://cesium.com/learn/cesiumjs/ref-doc/ - Downloads -
https://cesium.com/downloads/ - Hosted releases can be found at
https://cesium.com/downloads/cesiumjs/releases/<CesiumJS Version Number>/Build/Cesium/Cesium.js - See our blog post for more information.
- Sandcastle -
Additions 🎉
- Decreased Web Workers bundle size by a factor of 10, from 8384KB (2624KB gzipped) to 863KB (225KB gzipped). This makes Cesium load faster, especially on low-end devices and slower network connections.
- Added full UTF-8 support to labels, greatly improving support for non-latin alphabets and emoji. #7280
- Added
"type": "module"to package.json to take advantage of native ES6 module support in newer versions of Node.js. This also enables module-based front-end development for tooling that relies on Node.js module resolution. - The combined
Build/Cesium/Cesium.jsandBuild/CesiumUnminified/Cesium.jshave been upgraded from IIFE to UMD modules that support IIFE, AMD, and commonjs. - Added
pixelRatioparameter toOrthographicFrustum.getPixelDimensions,OrthographicOffCenterFrustum.getPixelDimensions,PerspectiveFrustum.getPixelDimensions, andPerspectiveOffCenterFrustum.getPixelDimensions. Pass inscene.pixelRatiofor dimensions in CSS pixel units or1.0for dimensions in native device pixel units. #8237
Fixes 🔧
- Fixed css pixel usage for polylines, point clouds, models, primitives, and post-processing. #8113
- Fixed a bug where
scene.sampleHeightMostDetailedandscene.clampToHeightMostDetailedwould not resolve in request render mode. #8281 - Fixed seam artifacts when log depth is disabled,
scene.globe.depthTestAgainstTerrainis false, and primitives are under the globe. #8205 - Fix dynamic ellipsoids using
innerRadii,minimumClock,maximumClock,minimumConeormaximumCone. #8277 - Fixed rendering billboard collections containing more than 65536 billboards. #8325
Deprecated ⏳
OrthographicFrustum.getPixelDimensions,OrthographicOffCenterFrustum.getPixelDimensions,PerspectiveFrustum.getPixelDimensions, andPerspectiveOffCenterFrustum.getPixelDimensionsnow take apixelRatioargument before theresultargument. The previous function definition will no longer work in 1.65. #8237
1.62 - 2019-10-01
Deprecated ⏳
createTileMapServiceImageryProviderandcreateOpenStreetMapImageryProviderhave been deprecated and will be removed in Cesium 1.65. Instead, pass the same options tonew TileMapServiceImageryProviderandnew OpenStreetMapImageryProviderrespectively.- The function
Matrix4.getRotationhas been deprecated and renamed toMatrix4.getMatrix3.Matrix4.getRotationwill be removed in version 1.65.
Additions 🎉
- Added ability to create partial ellipsoids using both the Entity API and CZML. New ellipsoid geometry properties:
innerRadii,minimumClock,maximumClock,minimumCone, andmaximumCone. This affects bothEllipsoidGeometryandEllipsoidOutlineGeometry. See the updated Sandcastle example. #5995 - Added
useBrowserRecommendedResolutionflag toViewerandCesiumWidget. When true, Cesium renders at CSS pixel resolution instead of native device resolution. This replaces the workaround in the 1.61 change list. 8215 - Added
TileMapResourceImageryProviderandOpenStreetMapImageryProviderclasses to improve API consistency: #4812 - Added
creditparameter toCzmlDataSource,GeoJsonDataSource,KmlDataSourceandModel. #8173 - Added
Matrix3.getRotationto get the rotational component of a matrix with scaling removed. #8182
Fixes 🔧
- Fixed labels not showing for individual entities in data sources when clustering is enabled. #6087
- Fixed an issue where polygons, corridors, rectangles, and ellipses on terrain would not render on some mobile devices. #6739
- Fixed a bug where GlobeSurfaceTile would not render the tile until all layers completed loading causing globe to appear to hang. #7974
- Spread out KMl loading across multiple frames to prevent freezing. #8195
- Fixed a bug where extruded polygons would sometimes be missing segments. #8035
- Made pixel sizes consistent for polylines and point clouds when rendering at different pixel ratios. #8113
Camera.flyToflies to the correct location in 2D when the destination crosses the international date line #7909- Fixed 3D tiles style coloring when multiple tilesets are in the scene #8051
- 3D Tiles geometric error now correctly scales with transform. #8182
- Fixed per-feature post processing from sometimes selecting the wrong feature. #7929
- Fixed a bug where dynamic polylines did not use the given arcType. #8191
- Fixed atmosphere brightness when High Dynamic Range is disabled. #8149
- Fixed brightness levels for procedural Image Based Lighting. #7803
- Fixed alpha equation for
BlendingState.ALPHA_BLENDandBlendingState.ADDITIVE_BLEND. #8202 - Improved display of tile coordinates for
TileCoordinatesImageryProvider#8131 - Reduced size of approximateTerrainHeights.json #7959
- Fixed undefined
quadDetailserror from zooming into the map really close. #8011 - Fixed a crash for 3D Tiles that have zero volume. #7945
- Fixed relative-to-center check,
depthFailAppearanceresource freeing forPrimitive#8044
1.61 - 2019-09-03
Additions 🎉
- Added optional
indexparameter toPrimitiveCollection.add. #8041 - Cesium now renders at native device resolution by default instead of CSS pixel resolution, to go back to the old behavior, set
viewer.resolutionScale = 1.0 / window.devicePixelRatio. #8082 - Added
getByNamemethod toDataSourceCollectionallowing to retrieveDataSources by their name property from the collection
Fixes 🔧
- Disable FXAA by default. To re-enable, set
scene.postProcessStages.fxaa.enabled = true#7875 - Fixed a crash when a glTF model used
KHR_texture_transformwithout a sampler defined. #7916 - Fixed post-processing selection filtering to work for bloom. #7984
- Disabled HDR by default to improve visual quality in most standard use cases. Set
viewer.scene.highDynamicRange = trueto re-enable. #7966 - Fixed a bug that causes hidden point primitives to still appear on some operating systems. #8043
- Fix negative altitude altitude handling in
GoogleEarthEnterpriseTerrainProvider. #8109 - Fixed issue where KTX or CRN files would not be properly identified. #7979
- Fixed multiple globe materials making the globe darker. #7726
1.60 - 2019-08-01
Additions 🎉
- Reworked label rendering to use signed distance fields (SDF) for crisper text. #7730
- Added a new Sandcastle example to showcase the new SDF labels.
- Added support for polygon holes to CZML. #7991
- Added
totalScaleproperty toLabelwhich is the total scale of the label taking into account the label's scale and the relative size of the desired font compared to the generated glyph size.
Fixes 🔧
- Fixed crash when using ArcGIS terrain with clipping planes. #7998
PolygonGraphics.hierarchynow converts constant array values to aPolygonHierarchywhen set, so code that accesses the value of the property can rely on it always being aPolygonHierarchy.- Fixed a bug with lengthwise texture coordinates in the first segment of ground polylines, as observed in some WebGL implementations such as Chrome on Linux. #8017
1.59 - 2019-07-01
Additions 🎉
- Adds
ArcGISTiledElevationTerrainProviderto support LERC encoded terrain from ArcGIS ImageServer. #7940 - Added CZML support for
heightReferencetobox,cylinder, andellipsoid, and added CZML support forclassificationTypetocorridor,ellipse,polygon,polyline, andrectangle. #7899 - Adds
exportKMLfunction to exportEntityinstances with Point, Billboard, Model, Label, Polyline and Polygon graphics. #7921 - Added support for new Mapbox Style API. #7698
- Added support for the AGI_articulations vendor extension of glTF 2.0 to the Entity API and CZML. #7907
Fixes 🔧
- Fixed a bug that caused missing segments for ground polylines with coplanar points over large distances and problems with polylines containing duplicate points. #7885
- Fixed a bug where billboards were not pickable when zoomed out completely in 2D View. #7908
- Fixed a bug where image requests that returned HTTP code 204 would prevent any future request from succeeding on browsers that supported ImageBitmap. #7914
- Fixed polyline colors when
scene.highDynamicRangeis enabled. #7924 - Fixed a bug in the inspector where the min/max height values of a picked tile were undefined. #7904
- Fixed
Math.factorialto return the correct values. (https://github.com/CesiumGS/cesium/pull/7969) - Fixed a bug that caused 3D models to appear darker on Android devices. #7944
1.58.1 - 2018-06-03
This is an npm-only release to fix a publishing issue.
1.58 - 2019-06-03
Additions 🎉
- Added support for new
BingMapsStylevaluesROAD_ON_DEMANDandAERIAL_WITH_LABELS_ON_DEMAND. The older versions of these,ROADandAERIAL_WITH_LABELS, have been deprecated by Bing. #7808 - Added syntax to delete data from existing properties via CZML. #7818
- Added
checkerboardmaterial to CZML. #7845 BingMapsImageryProvidernow usesDiscardEmptyTileImagePolicyby default to detect missing tiles as zero-length responses instead of inspecting pixel values. #7810- Added support for the AGI_articulations vendor extension of glTF 2.0 to the Model primitive graphics API. #7835
- Reduce the number of Bing transactions and ion Bing sessions used when destroying and recreating the same imagery layer to 1. #7848
Fixes 🔧
- Fixed an edge case where Cesium would provide ion access token credentials to non-ion servers if the actual asset entrypoint was being hosted by ion. #7839
- Fixed a bug that caused Cesium to request non-existent tiles for terrain tilesets lacking tile availability, i.e. a
layer.jsonfile. - Fixed memory leak when removing entities that had a
HeightReferenceofCLAMP_TO_GROUNDorRELATIVE_TO_GROUND. This includes when removing aDataSource. - Fixed 3D Tiles credits not being shown in the data attribution box. #7877
1.57 - 2019-05-01
Additions 🎉
- Improved 3D Tiles streaming performance, resulting in ~67% camera tour load time reduction, ~44% camera tour load count reduction. And for general camera movement, ~20% load time reduction with ~27% tile load count reduction. Tile load priority changed to focus on loading tiles in the center of the screen first. Added the following tileset optimizations, which unless stated otherwise are enabled by default. #7774
- Added
Cesium3DTileset.cullRequestsWhileMovingoption to ignore requests for tiles that will likely be out-of-view due to the camera's movement when they come back from the server. - Added
Cesium3DTileset.cullRequestsWhileMovingMultiplieroption to act as a multiplier when used in culling requests while moving. Larger is more aggressive culling, smaller less aggressive culling. - Added
Cesium3DTileset.preloadFlightDestinationsoption to preload tiles at the camera's flight destination while the camera is in flight. - Added
Cesium3DTileset.preferLeavesoption to prefer loading of leaves. Good for additive refinement point clouds. Set tofalseby default. - Added
Cesium3DTileset.progressiveResolutionHeightFractionoption to load tiles at a smaller resolution first. This can help get a quick layer of tiles down while full resolution tiles continue to load. - Added
Cesium3DTileset.foveatedScreenSpaceErroroption to prioritize loading tiles in the center of the screen. - Added
Cesium3DTileset.foveatedConeSizeoption to control the cone size that determines which tiles are deferred for loading. Tiles outside the cone are potentially deferred. - Added
Cesium3DTileset.foveatedMinimumScreenSpaceErrorRelaxationoption to control the starting screen space error relaxation for tiles outside the foveated cone. - Added
Cesium3DTileset.foveatedInterpolationCallbackoption to control how screen space error threshold is interpolated for tiles outside the foveated cone. - Added
Cesium3DTileset.foveatedTimeDelayoption to control how long in seconds to wait after the camera stops moving before deferred tiles start loading in.
- Added
- Added new parameter to
PolylineGlowMaterialcalledtaperPower, that works similar to the existingglowPowerparameter, to taper the back of the line away. #7626 - Added
Cesium3DTileset.preloadWhenHiddentileset option to preload tiles whentileset.showis false. Loads tiles as if the tileset is visible but does not render them. #7774 - Added support for the
KHR_texture_transformglTF extension. #7549 - Added functions to remove samples from
SampledPropertyandSampledPositionProperty. #7723 - Added support for color-to-alpha with a threshold on imagery layers. #7727
- Add CZML processing for
heightReferenceandextrudedHeightReferencefor geometry types that support it. CesiumMath.toSNormdocumentation changed to reflect the function's implementation. #7774- Added
CesiumMath.normalizeto convert a scalar value in an arbitrary range to a scalar in the range[0.0, 1.0]. #7774
Fixes 🔧
- Fixed an error when loading the same glTF model in two separate viewers. #7688
- Fixed an error where
clampToHeightMostDetailedorsampleHeightMostDetailedwould crash if entities were created when the promise resolved. #7690 - Fixed an issue with compositing merged entity availability. #7717
- Fixed an error where many imagery layers within a single tile would cause parts of the tile to render as black on some platforms. #7649
- Fixed a bug that could cause terrain with a single, global root tile (e.g. that uses
WebMercatorTilingScheme) to be culled unexpectedly in some views. #7702 - Fixed a problem where instanced 3D models were incorrectly lit when using physically based materials. #7775
- Fixed a bug where glTF models with certain blend modes were rendered incorrectly in browsers that support ImageBitmap. #7795
1.56.1 - 2019-04-02
Additions 🎉
Resource.fetchImagenow takes apreferImageBitmapoption to usecreateImageBitmapwhen supported to move image decode off the main thread. This option defaults tofalse.
Breaking Changes 📣
- The following breaking changes are relative to 1.56. The
Resource.fetchImagebehavior is now identical to 1.55 and earlier.- Changed
Resource.fetchImageback to return anImageby default, instead of anImageBitmapwhen supported. Note that anImageBitmapcannot be flipped during texture upload. Instead, setflipY : trueduring fetch to flip it. - Changed the default
flipYoption inResource.fetchImageto false. This only has an effect when ImageBitmap is used.
- Changed
1.56 - 2019-04-01
Breaking Changes 📣
Resource.fetchImagenow returns anImageBitmapinstead ofImagewhen supported. This allows for decoding images while fetching usingcreateImageBitmapto greatly speed up texture upload and decrease frame drops when loading models with large textures. #7579Cesium3DTileStyle.stylenow has an emptyObjectas its default value, instead ofundefined. #7567Scene.clampToHeightnow takes an optionalwidthargument before theresultargument. #7693- In the
Resourceclass,addQueryParametersandaddTemplateValueshave been removed. Please usesetQueryParametersandsetTemplateValuesinstead. #7695
Deprecated ⏳
Resource.fetchImagenow takes an options object. Useresource.fetchImage({ preferBlob: true })instead ofresource.fetchImage(true). The previous function definition will no longer work in 1.57. #7579
Additions 🎉
- Added support for touch and hold gesture. The touch and hold delay can be customized by updating
ScreenSpaceEventHandler.touchHoldDelayMilliseconds. #7286 Resource.fetchImagenow has aflipYoption to vertically flip an image during fetch & decode. It is only valid whenImageBitmapOptionsis supported by the browser. #7579- Added
backFaceCullingandnormalShadingoptions toPointCloudShading. Both options are only applicable for point clouds containing normals. #7399 Cesium3DTileStyle.stylereacts to updates and represents the current state of the style. #7567
Fixes 🔧
- Fixed the value for
BlendFunction.ONE_MINUS_CONSTANT_COLOR. #7624 - Fixed
HeadingPitchRoll.pitchbeingNaNwhen using.fromQuaterniondue to a rounding error for pitches close to +/- 90°. #7654 - Fixed a type of crash caused by the camera being rotated through terrain. #6783
- Fixed an error in
Resourcewhen used with template replacements using numeric keys. #7668 - Fixed an error in
Cesium3DTilePointFeaturewhereanchorLineColorused the same color instance instead of cloning the color #7686
1.55 - 2019-03-01
Breaking Changes 📣
czm_materialInput.slopeis now an angle in radians between 0 and pi/2 (flat to vertical), rather than a projected length 1 to 0 (flat to vertical).
Additions 🎉
- Updated terrain and imagery rendering, resulting in terrain/imagery loading ~33% faster and using ~33% less data #7061
czm_materialInput.aspectwas added as an angle in radians between 0 and 2pi (east, north, west to south).- Added CZML
arcTypesupport forpolylineandpolygon, which supersedesfollowSurface.followSurfaceis still supported for compatibility with existing documents. #7582
Fixes 🔧
- Fixed an issue where models would cause a crash on load if some primitives were Draco encoded and others were not. #7383
- Fixed an issue where RTL labels not reversing correctly non alphabetic characters #7501
- Fixed Node.js support for the
Resourceclass and any functionality using it internally. - Fixed an issue where some ground polygons crossing the Prime Meridian would have incorrect bounding rectangles. #7533
- Fixed an issue where polygons on terrain using rhumb lines where being rendered incorrectly. #7538
- Fixed an issue with
EllipsoidRhumbLines.findIntersectionWithLongitudewhen longitude was IDL. #7551 - Fixed model silhouette colors when rendering with high dynamic range. #7563
- Fixed an issue with ground polylines on globes that use ellipsoids other than WGS84. #7552
- Fixed an issue where Draco compressed models with RGB per-vertex color would not load in Cesium. #7576
- Fixed an issue where the outline geometry for extruded Polygons didn't calculate the correct indices. #7599
1.54 - 2019-02-01
Highlights 🎇
- Added support for polylines and textured entities on 3D Tiles. #7437 and #7434
- Added support for loading models and 3D tilesets with WebP images using the
EXT_texture_webpglTF extension. #7486 - Added support for rhumb lines to polygon and polyline geometries. #7492
Breaking Changes 📣
- Billboards with
HeightReference.CLAMP_TO_GROUNDare now clamped to both terrain and 3D Tiles. #7434 - The default
classificationTypeforGroundPrimitive,CorridorGraphics,EllipseGraphics,PolygonGraphicsandRectangleGraphicsis nowClassificationType.BOTH. #7434 - The properties
ModelAnimation.speedupandModelAnimationCollection.speeduphave been removed. UseModelAnimation.multiplierandModelAnimationCollection.multiplierrespectively instead. #7494
Deprecated ⏳
Scene.clampToHeightnow takes an optionalwidthargument before theresultargument. The previous function definition will no longer work in 1.56. #7287PolylineGeometry.followSurfacehas been superceded byPolylineGeometry.arcType. The previous definition will no longer work in 1.57. ReplacefollowSurface: falsewitharcType: Cesium.ArcType.NONEandfollowSurface: truewitharcType: Cesium.ArcType.GEODESIC. #7492SimplePolylineGeometry.followSurfacehas been superceded bySimplePolylineGeometry.arcType. The previous definition will no longer work in 1.57. ReplacefollowSurface: falsewitharcType: Cesium.ArcType.NONEandfollowSurface: truewitharcType: Cesium.ArcType.GEODESIC. #7492
Additions 🎉
- Added support for textured ground entities (entities with unspecified
height) andGroundPrimitiveson 3D Tiles. #7434 - Added support for polylines on 3D Tiles. #7437
- Added
classificationTypeproperty toPolylineGraphicsandGroundPolylinePrimitivewhich specifies whether a polyline clamped to ground should be clamped to terrain, 3D Tiles, or both. #7437 - Added the ability to specify the width of the intersection volume for
Scene.sampleHeight,Scene.clampToHeight,Scene.sampleHeightMostDetailed, andScene.clampToHeightMostDetailed. #7287 - Added a new Sandcastle example on using
nodeTransformationsto rotate a model's wheels based on its velocity. #7361 - Added a new Sandcastle example for drawing polylines on 3D Tiles #7522
- Added
EllipsoidRhumbLineclass as a rhumb line counterpart toEllipsoidGeodesic. #7484 - Added rhumb line support to
PolygonGeometry,PolygonOutlineGeometry,PolylineGeometry,GroundPolylineGeometry, andSimplePolylineGeometry. #7492 - When using Cesium in Node.js, we now use the combined and minified version for improved performance unless
NODE_ENVis specifically set todevelopment. - Improved the performance of
QuantizedMeshTerrainData.interpolateHeight. #7508 - Added support for glTF models with WebP textures using the
EXT_texture_webpextension. #7486
Fixes 🔧
- Fixed 3D Tiles performance regression. #7482
- Fixed an issue where classification primitives with the
CESIUM_3D_TILEclassification type would render on terrain. #7422 - Fixed an issue where 3D Tiles would show through the globe. #7422
- Fixed crash when entity geometry show value is an interval that only covered part of the entity availability range #7458
- Fix rectangle positions at the north and south poles. #7451
- Fixed image size issue when using multiple particle systems. #7412
- Fixed Sandcastle's "Open in New Window" button not displaying imagery due to blob URI limitations. #7250
- Fixed an issue where setting
scene.globe.cartographicLimitRectangletoundefinedwould cause a crash. #7477 - Fixed
PrimitiveCollection.removeAllto no longercontainremoved primitives. #7491 - Fixed
GeoJsonDataSourceto use polygons and polylines that use rhumb lines. #7492 - Fixed an issue where some ground polygons would be cut off along circles of latitude. #7507
- Fixed an issue that would cause IE 11 to crash when enabling image-based lighting. #7485
1.53 - 2019-01-02
Additions 🎉
- Added image-based lighting for PBR models and 3D Tiles. #7172
Scene.specularEnvironmentMapsis a url to a KTX file that contains the specular environment map and convoluted mipmaps for image-based lighting of all PBR models in the scene.Scene.sphericalHarmonicCoefficientsis an array of 9Cartesian3spherical harmonics coefficients for the diffuse irradiance of all PBR models in the scene.- The
specularEnvironmentMapsandsphericalHarmonicCoefficientsproperties ofModelandCesium3DTilesetcan be used to override the values from the scene for specific models and tilesets. - The
luminanceAtZenithproperty ofModelandCesium3DTilesetadjusts the luminance of the procedural image-based lighting.
- Double click away from an entity to un-track it #7285
Fixes 🔧
- Fixed 3D Tiles visibility checking when running multiple passes within the same frame. #7289
- Fixed contrast on imagery layers. #7382
- Fixed rendering transparent background color when
highDynamicRangeis enabled. #7427 - Fixed translucent geometry when
highDynamicRangeis toggled. #7451
1.52 - 2018-12-03
Breaking Changes 📣
TerrainProvidersthat implementavailabilitymust now also implement theloadTileDataAvailabilitymethod.
Deprecated ⏳
- The property
ModelAnimation.speeduphas been deprecated and renamed toModelAnimation.multiplier.speedupwill be removed in version 1.54. #7393
Additions 🎉
- Added functions to get the most detailed height of 3D Tiles on-screen or off-screen. #7115
- Added
Scene.sampleHeightMostDetailed, an asynchronous version ofScene.sampleHeightthat uses the maximum level of detail for 3D Tiles. - Added
Scene.clampToHeightMostDetailed, an asynchronous version ofScene.clampToHeightthat uses the maximum level of detail for 3D Tiles.
- Added
- Added support for high dynamic range rendering. It is enabled by default when supported, but can be disabled with
Scene.highDynamicRange. #7017 - Added
Scene.invertClassificationSupportedfor checking if invert classification is supported. - Added
computeLineSegmentLineSegmentIntersectiontoIntersections2D. #7228 - Added ability to load availability progressively from a quantized mesh extension instead of upfront. This will speed up load time and reduce memory usage. #7196
- Added the ability to apply styles to 3D Tilesets that don't contain features. #7255
Fixes 🔧
- Fixed issue causing polyline to look wavy depending on the position of the camera #7209
- Fixed translucency issues for dynamic geometry entities. #7364
1.51 - 2018-11-01
Additions 🎉
- Added WMS-T (time) support in WebMapServiceImageryProvider #2581
- Added
cutoutRectangletoImageryLayer, which allows cutting out rectangular areas in imagery layers to reveal underlying imagery. #7056 - Added
atmosphereHueShift,atmosphereSaturationShift, andatmosphereBrightnessShiftproperties toGlobewhich shift the color of the ground atmosphere to match the hue, saturation, and brightness shifts of the sky atmosphere. #4195 - Shrink minified and gzipped Cesium.js by 27 KB (~3.7%) by delay loading seldom-used third-party dependencies. #7140
- Added
lightColorproperty toCesium3DTileset,Model, andModelGraphicsto change the intensity of the light used when shading model. #7025 - Added
imageBasedLightingFactorproperty toCesium3DTileset,Model, andModelGraphicsto scale the diffuse and specular image-based lighting contributions to the final color. #7025 - Added per-feature selection to the 3D Tiles BIM Sandcastle example. #7181
- Added
Transforms.fixedFrameToHeadingPitchRoll, a helper function for extracting aHeadingPitchRollfrom a fixed frame transform. #7164 - Added
Ray.clone. #7174
Fixes 🔧
- Fixed issue removing geometry entities with different materials. #7163
- Fixed texture coordinate calculation for polygon entities with
perPositionHeight. #7188 - Fixed crash when updating polyline attributes twice in one frame. #7155
- Fixed entity visibility issue related to setting an entity show property and altering or adding entity geometry. #7156
- Fixed an issue where dynamic Entities on terrain would cause a crash in platforms that do not support depth textures such as Internet Explorer. #7103
- Fixed an issue that would cause a crash when removing a post process stage. #7210
- Fixed an issue where
pickPositionwould return incorrect results when called aftersampleHeightorclampToHeight. #7113 - Fixed an issue where
sampleHeightandclampToHeightwould crash if picking a primitive that doesn't write depth. #7120 - Fixed a crash when using
BingMapsGeocoderService. #7143 - Fixed accuracy of rotation matrix generated by
VelocityOrientationProperty. #6641 - Fixed clipping plane crash when adding a plane to an empty collection. #7168
- Fixed clipping planes on tilesets not taking into account the tileset model matrix. #7182
- Fixed incorrect rendering of models using the
KHR_materials_commonlights extension. #7206
1.50 - 2018-10-01
Breaking Changes 📣
-
Clipping planes on tilesets now use the root tile's transform, or the root tile's bounding sphere if a transform is not defined. #7034
- This is to make clipping planes' coordinates always relative to the object they're attached to. So if you were positioning the clipping planes as in the example below, this is no longer necessary:
clippingPlanes.modelMatrix = Cesium.Transforms.eastNorthUpToFixedFrame( tileset.boundingSphere.center, );- This also fixes several issues with clipping planes not using the correct transform for tilesets with children.
Additions 🎉
- Initial support for clamping to 3D Tiles. #6934
- Added
Scene.sampleHeightto get the height of geometry in the scene. May be used to clamp objects to the globe, 3D Tiles, or primitives in the scene. - Added
Scene.clampToHeightto clamp a cartesian position to the scene geometry. - Requires depth texture support (
WEBGL_depth_textureorWEBKIT_WEBGL_depth_texture). AddedScene.sampleHeightSupportedandScene.clampToHeightSupportedfunctions for checking if height sampling is supported.
- Added
- Added
Cesium3DTileset.initialTilesLoadedto indicate that all tiles in the initial view are loaded. #6934 - Added support for glTF extension KHR_materials_pbrSpecularGlossiness #7006.
- Added support for glTF extension KHR_materials_unlit #6977.
- Added support for glTF extensions KHR_techniques_webgl and KHR_blend. #6805
- Update gltf-pipeline to 2.0. #6805
- Added
cartographicLimitRectangletoGlobe. Use this to limit terrain and imagery to a specificRectanglearea. #6987 - Added
OpenCageGeocoderService, which provides geocoding via OpenCage. #7015 - Added ground atmosphere lighting in 3D. This can be toggled with
Globe.showGroundAtmosphere. 6877- Added
Globe.nightFadeOutDistanceandGlobe.nightFadeInDistanceto configure when ground atmosphere night lighting fades in and out. 6877
- Added
- Added
onStopevent toClockthat fires each time stopTime is reached. #7066
Fixes 🔧
- Fixed picking for overlapping translucent primitives. #7039
- Fixed an issue in the 3D Tiles traversal where tilesets would render with mixed level of detail if an external tileset was visible but its root tile was not. #7099
- Fixed an issue in the 3D Tiles traversal where external tilesets would not always traverse to their root tile. #7035
- Fixed an issue in the 3D Tiles traversal where empty tiles would be selected instead of their nearest loaded ancestors. #7011
- Fixed an issue where scaling near zero with an model animation could cause rendering to stop. #6954
- Fixed bug where credits weren't displaying correctly if more than one viewer was initialized [#6965](expect(https://github.com/CesiumGS/cesium/issues/6965)
- Fixed entity show issues. #7048
- Fixed a bug where polylines on terrain covering very large portions of the globe would cull incorrectly in 3d-only scenes. #7043
- Fixed bug causing crash on entity geometry material change. #7047
- Fixed MIME type behavior for
Resourcerequests in recent versions of Edge #7085.
1.49 - 2018-09-04
Breaking Changes 📣
- Removed
ClippingPlaneCollection.clone. #6872 - Changed
Globe.pickto return a position in ECEF coordinates regardless of the current scene mode. This will only effect you if you were working around a bug to makeGlobe.pickwork in 2D and Columbus View. UseGlobe.pickWorldCoordinatesto get the position in world coordinates that correlate to the current scene mode. #6859 - Removed the unused
frameStateparameter inevaluateandevaluateColorfunctions inExpression,StyleExpression,ConditionsExpressionand all other places that call the functions. #6890
- Removed
PostProcessStageLibrary.createLensFlarStage. UsePostProcessStageLibrary.createLensFlareStageinstead. #6972 - Removed
Scene.fxaa. UseScene.postProcessStages.fxaa.enabledinstead. #6980
Additions 🎉
- Added
heightReferencetoBoxGraphics,CylinderGraphicsandEllipsoidGraphics, which can be used to clamp these entity types to terrain. #6932 - Added
GeocoderViewModel.destinationFoundfor specifying a function that is called upon a successful geocode. The default behavior is to fly to the destination found by the geocoder. #6915 - Added
ClippingPlaneCollection.planeAddedandClippingPlaneCollection.planeRemovedevents.planeAddedis raised when a new plane is added to the collection andplaneRemovedis raised when a plane is removed. #6875 - Added
Matrix4.setScalefor setting the scale on an affine transformation matrix #6888 - Added optional
widthandheighttoScene.drillPickfor specifying a search area. #6922 - Added
Cesium3DTileset.rootfor getting the root tile of a tileset. #6944 - Added
Cesium3DTileset.extrasandCesium3DTile.extrasfor getting application specific metadata from 3D Tiles. #6974
Fixes 🔧
- Several performance improvements and fixes to the 3D Tiles traversal code. #6390
- Improved load performance when
skipLevelOfDetailis false. - Fixed a bug that caused some skipped tiles to load when
skipLevelOfDetailis true. - Fixed pick statistics in the 3D Tiles Inspector.
- Fixed drawing of debug labels for external tilesets.
- Fixed drawing of debug outlines for empty tiles.
- Improved load performance when
- The Geocoder widget now takes terrain altitude into account when calculating its final destination. #6876
- The Viewer widget now takes terrain altitude into account when zooming or flying to imagery layers. #6895
- Fixed Firefox camera control issues with mouse and touch events. #6372
- Fixed
getPickRayin 2D. #2480 - Fixed
Globe.pickfor 2D and Columbus View. #6859 - Fixed imagery layer feature picking in 2D and Columbus view. #6859
- Fixed intermittent ground clamping issues for all entity types that use a height reference. #6930
- Fixed bug that caused a new
ClippingPlaneCollectionto be created every frame when used with a model entity. #6872 - Improved
Planeentities so they are better aligned with the globe surface. #6887 - Fixed crash when rendering translucent objects when all shadow maps in the scene set
fromLightSourceto false. #6883 - Fixed night shading in 2D and Columbus view. #4122
- Fixed model loading failure when a glTF 2.0 primitive does not have a material. 6906
- Fixed a crash when setting show to
falseon a polyline clamped to the ground. #6912 - Fixed a bug where
Cesium3DTilesetwasn't using the correcttilesetVersion. #6933 - Fixed crash that happened when calling
scene.pickafter setting a new terrain provider. #6918 - Fixed an issue that caused the browser to hang when using
drillPickon a polyline clamped to the ground. 6907 - Fixed an issue where color wasn't updated properly for polylines clamped to ground. #6927
- Fixed an excessive memory use bug that occurred when a data URI was used to specify a glTF model. #6928
- Fixed an issue where switching from 2D to 3D could cause a crash. #6929
- Fixed an issue where point primitives behind the camera would appear in view. #6904
- The
createGroundPolylineGeometryweb worker no longer depends onGroundPolylinePrimitive, making the worker smaller and potentially avoiding a hanging build in some webpack configurations. #6946 - Fixed an issue that cause terrain entities (entities with unspecified
height) andGroundPrimitivesto fail when crossing the international date line. #6951 - Fixed normal calculation for
CylinderGeometrywhen the top radius is not equal to the bottom radius #6863
1.48 - 2018-08-01
Additions 🎉
- Added support for loading Draco compressed Point Cloud tiles for 2-3x better compression. #6559
- Added
TimeDynamicPointCloudfor playback of time-dynamic point cloud data, where each frame is a 3D Tiles Point Cloud tile. #6721 - Added
CoplanarPolygonGeometryandCoplanarPolygonGeometryOutlinefor drawing polygons composed of coplanar positions that are not necessarily on the ellipsoid surface. #6769 - Improved support for polygon entities using
perPositionHeight, including supporting vertical polygons. This also improves KML compatibility. #6791 - Added
Cartesian3.midpointto compute the midpoint between twoCartesian3positions #6836 - Added
equalsEpsilonmethods toOrthographicFrustum,PerspectiveFrustum,OrthographicOffCenterFrustumandPerspectiveOffCenterFrustum.
Deprecated ⏳
- Support for 3D Tiles
content.urlis deprecated to reflect updates to the 3D Tiles spec. Usecontent.uri instead. Support forcontent.urlwill remain for backwards compatibility. #6744 - Support for the 3D Tiles pre-version 1.0 Batch Table Hierarchy is deprecated to reflect updates to the 3D Tiles spec. Use the
3DTILES_batch_table_hierarchyextension instead. Support for the deprecated batch table hierarchy will remain for backwards compatibility. #6780 PostProcessStageLibrary.createLensFlarStageis deprecated due to misspelling and will be removed in Cesium 1.49. UsePostProcessStageLibrary.createLensFlareStageinstead.
Fixes 🔧
- Fixed a bug where 3D Tilesets using the
regionbounding volume don't get transformed when the tileset'smodelMatrixchanges. #6755 - Fixed a bug that caused eye dome lighting for point clouds to fail in Safari on macOS and Edge on Windows by removing the dependency on floating point color textures. #6792
- Fixed a bug that caused polylines on terrain to render incorrectly in 2D and Columbus View with a
WebMercatorProjection. #6809 - Fixed bug causing billboards and labels to appear the wrong size when switching scene modes #6745
- Fixed
PolygonGeometrywhen usingVertexFormat.POSITION_ONLY,perPositionHeightandextrudedHeight[#6790](expect(https://github.com/CesiumGS/cesium/pull/6790) - Fixed an issue where tiles were missing in VR mode. #6612
- Fixed issues related to updating entity show and geometry color #6835
- Fixed
PolygonGeometryandEllipseGeometrytangent and bitangent attributes when a texture rotation is used #6788 - Fixed bug where entities with a height reference weren't being updated correctly when the terrain provider was changed. #6820
- Fixed an issue where glTF 2.0 models sometimes wouldn't be centered in the view after putting the camera on them. #6784
- Fixed the geocoder when
Vieweris passed the optiongeocoder: true#6833 - Improved performance for billboards and labels clamped to terrain #6781 #6844
- Fixed a bug that caused billboard positions to be set incorrectly when using a
CallbackProperty. #6815 - Improved support for generating a TypeScript typings file using
tsd-jsdoc#6767 - Updated viewBoundingSphere to use correct zoomOptions #6848
- Fixed a bug that caused the scene to continuously render after resizing the viewer when
requestRenderModewas enabled. #6812
1.47 - 2018-07-02
Highlights 🎇
- Added support for polylines on terrain #6689 #6615
- Added
heightReferenceandextrudedHeightReferenceproperties toCorridorGraphics,EllipseGraphics,PolygonGraphicsandRectangleGraphics. #6717 PostProcessStagehas aselectedproperty which is an array of primitives used for selectively applying a post-process stage. #6476
Breaking Changes 📣
- glTF 2.0 models corrected to face +Z forwards per specification. Internally Cesium uses +X as forward, so a new +Z to +X rotation was added for 2.0 models only. To fix models that are oriented incorrectly after this change:
- If the model faces +X forwards update the glTF to face +Z forwards. This can be done by loading the glTF in a model editor and applying a 90 degree clockwise rotation about the up-axis. Alternatively, add a new root node to the glTF node hierarchy whose
matrixis[0,0,1,0,0,1,0,0,-1,0,0,0,0,0,0,1]. - Apply a -90 degree rotation to the model's heading. This can be done by setting the model's
orientationusing the Entity API or from within CZML. See #6738 for more details.
- If the model faces +X forwards update the glTF to face +Z forwards. This can be done by loading the glTF in a model editor and applying a 90 degree clockwise rotation about the up-axis. Alternatively, add a new root node to the glTF node hierarchy whose
- Dropped support for directory URLs when loading tilesets to match the updated 3D Tiles spec. #6502
- KML and GeoJSON now use
PolylineGraphicsinstead ofCorridorGraphicsfor polylines on terrain. #6706
Additions 🎉
- Added support for polylines on terrain #6689 #6615
- Use the
clampToGroundoption forPolylineGraphics(polyline entities). - Requires depth texture support (
WEBGL_depth_textureorWEBKIT_WEBGL_depth_texture), otherwiseclampToGroundwill be ignored. UseEntity.supportsPolylinesOnTerrainto check for support. - Added
GroundPolylinePrimitiveandGroundPolylineGeometry.
- Use the
PostProcessStagehas aselectedproperty which is an array of primitives used for selectively applying a post-process stage. #6476- The
PostProcessStageLibrary.createBlackAndWhiteStageandPostProcessStageLibrary.createSilhouetteStagehave per-feature support.
- The
- Added CZML support for
zIndexwithcorridor,ellipse,polygon,polylineandrectangle. #6708 - Added CZML
clampToGroundoption forpolyline. #6706 - Added support for
RTC_CENTERproperty in batched 3D model tilesets to conform to the updated 3D Tiles spec. #6488 - Added
heightReferenceandextrudedHeightReferenceproperties toCorridorGraphics,EllipseGraphics,PolygonGraphicsandRectangleGraphics. #6717- This can be used in conjunction with the
heightand/orextrudedHeightproperties to clamp the geometry to terrain or set the height relative to terrain. - Note, this will not make the geometry conform to terrain. Extruded geometry that is clamped to the ground will have a flat top will sinks into the terrain at the base.
- This can be used in conjunction with the
Fixes 🔧
- Fixed a bug that caused Cesium to be unable to load local resources in Electron. #6726
- Fixed a bug causing crashes with custom vertex attributes on
Geometrycrossing the IDL. Attributes will be barycentrically interpolated. #6644 - Fixed a bug causing Point Cloud tiles with unsigned int batch-ids to not load. #6666
- Fixed a bug with Draco encoded i3dm tiles, and loading two Draco models with the same url. #6668
- Fixed a bug caused by creating a polygon with positions at the same longitude/latitude position but different heights #6731
- Fixed terrain clipping when the camera was close to flat terrain and was using logarithmic depth. #6701
- Fixed KML bug that constantly requested the same image if it failed to load. #6710
- Improved billboard and label rendering so they no longer sink into terrain when clamped to ground. #6621
- Fixed an issue where KMLs containing a
colorModeofrandomcould return the exact same color on successive calls toColor.fromRandom(). Iso8601.MAXIMUM_VALUEnow formats to a string which can be parsed byfromIso8601.- Fixed material support when using an image that is already loaded #6729
1.46.1 - 2018-06-01
- This is an npm only release to fix the improperly published 1.46.0. There were no code changes.
1.46 - 2018-06-01
Highlights 🎇
- Added support for materials on terrain entities (entities with unspecified
height) andGroundPrimitives. #6393 - Added a post-processing framework. #5615
- Added
zIndexfor ground geometry, including corridor, ellipse, polygon and rectangle entities. #6362
Breaking Changes 📣
ParticleSystemno longer usesforces. #6510Particleno longer usessize,rate,lifeTime,life,minimumLife,maximumLife,minimumWidth,minimumHeight,maximumWidth, andmaximumHeight. #6510- Removed
Scene.copyGlobeDepth. Globe depth will now be copied by default when supported. #6393 - The default
classificationTypeforGroundPrimitive,CorridorGraphics,EllipseGraphics,PolygonGraphicsandRectangleGraphicsis nowClassificationType.TERRAIN. If you wish the geometry to color both terrain and 3D tiles, pass in the optionclassificationType: Cesium.ClassificationType.BOTH. - Removed support for the
optionsargument forCredit#6373. Pass in an html string instead. - glTF 2.0 models corrected to face +Z forwards per specification. Internally Cesium uses +X as forward, so a new +Z to +X rotation was added for 2.0 models only. #6632
Deprecated ⏳
- The
Scene.fxaaproperty has been deprecated and will be removed in Cesium 1.47. UseScene.postProcessStages.fxaa.enabled.
Additions 🎉
- Added support for materials on terrain entities (entities with unspecified
height) andGroundPrimitives. #6393- Only available for
ClassificationType.TERRAINat this time. Adding a material to a terrainEntitywill cause it to behave as if it isClassificationType.TERRAIN. - Requires depth texture support (
WEBGL_depth_textureorWEBKIT_WEBGL_depth_texture), so materials on terrain entities andGroundPrimitivesare not supported in Internet Explorer. - Best suited for notational patterns and not intended for precisely mapping textures to terrain - for that use case, use
SingleTileImageryProvider.
- Only available for
- Added
GroundPrimitive.supportsMaterialsandEntity.supportsMaterialsforEntitiesOnTerrain, both of which can be used to check if materials on terrain entities andGroundPrimitivesis supported. #6393 - Added a post-processing framework. #5615
- Added
Scene.postProcessStageswhich is a collection of post-process stages to be run in order.- Has a built-in
ambientOcclusionproperty which will apply screen space ambient occlusion to the scene and run before all stages. - Has a built-in
bloomproperty which applies a bloom filter to the scene before all other stages but after the ambient occlusion stage. - Has a built-in
fxaaproperty which applies Fast Approximate Anti-aliasing (FXAA) to the scene after all other stages.
- Has a built-in
- Added
PostProcessStageLibrarywhich contains several built-in stages that can be added to the collection. - Added
PostProcessStageCompositefor multi-stage post-processes like depth of field. - Added a new Sandcastle label
Post Processingto showcase the different built-in post-process stages.
- Added
- Added
zIndexfor ground geometry, including corridor, ellipse, polygon and rectangle entities. #6362 - Added
Rectangle.equalsEpsilonfor comparing the equality of two rectangles #6533
Fixes 🔧
- Fixed a bug causing custom TilingScheme classes to not be able to use a GeographicProjection. #6524
- Fixed incorrect 3D Tiles statistics when a tile fails during processing. #6558
- Fixed race condition causing intermittent crash when changing geometry show value #3061
ProviderViewModels with no category are displayed in an untitled group inBaseLayerPickerinstead of being labeled as'Other'#6574- Fixed a bug causing intermittent crashes with clipping planes due to uninitialized textures. #6576
- Added a workaround for clipping planes causing a picking shader compilation failure for gltf models and 3D Tilesets in Internet Explorer #6575
- Allowed Bing Maps servers with a subpath (instead of being at the root) to work correctly. #6597
- Added support for loading of Draco compressed glTF assets in IE11 #6404
- Fixed polygon outline when using
perPositionHeightandextrudedHeight. #6595 - Fixed broken links in documentation of
createTileMapServiceImageryProvider. #5818 - Transitioning from 2 touches to 1 touch no longer triggers a new pan gesture. #6479
1.45 - 2018-05-01
Major Announcements 📢
- We've launched Cesium ion! Read all about it in our blog post.
- Cesium now uses ion services by default for base imagery, terrain, and geocoding. A demo key is provided, but to use them in your own apps you must sign up for a free ion Community account.
Breaking Changes 📣
ClippingPlaneCollectionnow usesClippingPlaneobjects instead ofPlaneobjects. #6498- Cesium no longer ships with a demo Bing Maps API key.
BingMapsImageryProvideris no longer the default base imagery layer. (Bing imagery itself is still the default, however it is provided through Cesium ion)BingMapsGeocoderServiceis no longer the default geocoding service.- If you wish to continue to use your own Bing API key for imagery and geocoding, you can go back to the old default behavior by constructing the Viewer as follows:
Cesium.BingMapsApi.defaultKey = "yourBingKey"; var viewer = new Cesium.Viewer("cesiumContainer", { imageryProvider: new Cesium.BingMapsImageryProvider({ url: "https://dev.virtualearth.net", }), geocoder: [ new Cesium.CartographicGeocoderService(), new Cesium.BingMapsGeocoderService(), ], });
Deprecated ⏳
Particle.size,ParticleSystem.rate,ParticleSystem.lifeTime,ParticleSystem.life,ParticleSystem.minimumLife, andParticleSystem.maximumLifehave been renamed toParticle.imageSize,ParticleSystem.emissionRate,ParticleSystem.lifetime,ParticleSystem.particleLife,ParticleSystem.minimumParticleLife, andParticleSystem.maximumParticleLife. Use of thesize,rate,lifeTime,life,minimumLife, andmaximumLifeparameters is deprecated and will be removed in Cesium 1.46.ParticleSystem.forcesarray has been switched out for singular functionParticleSystems.updateCallback. Use of theforcesparameter is deprecated and will be removed in Cesium 1.46.- Any width and height variables in
ParticleSystemwill no longer be individual components.ParticleSystem.minimumWidthandParticleSystem.minimumHeightwill now beParticleSystem.minimumImageSize,ParticleSystem.maximumWidthandParticleSystem.maximumHeightwill now beParticleSystem.maximumImageSize, andParticleSystem.widthandParticleSystem.heightwill now beParticleSystem.imageSize. Use of theminimumWidth,minimumHeight,maximumWidth,maximumHeight,width, andheightparameters is deprecated and will be removed in Cesium 1.46.
Additions 🎉
- Added option
logarithmicDepthBuffertoScene. With this option there is typically a single frustum using logarithmic depth rendered. This increases performance by issuing less draw calls to the GPU and helps to avoid artifacts on the connection of two frustums. #5851 - When a log depth buffer is supported, the frustum near and far planes default to
0.1and1e10respectively. - Added
IonGeocoderServiceand made it the default geocoding service for theGeocoderwidget. - Added
createWorldImagerywhich provides Bing Maps imagery via a Cesium ion account. - Added
PeliasGeocoderService, which provides geocoding via a Pelias server. - Added the ability for
BaseLayerPickerto group layers by category.ProviderViewModel.categorywas also added to support this feature. - Added
Math.log2to compute the base 2 logarithm of a number. - Added
GeocodeTypeenum and use it as an optional parameter to allGeocoderServiceinstances to differentiate between autocomplete and search requests. - Added
initWebAssemblyModulefunction toTaskProcessorto load a Web Assembly module in a web worker. #6420 - Added
supportsWebAssemblyfunction toFeatureDetectionto check if a browser supports loading Web Assembly modules. #6420 - Improved
MapboxImageryProviderperformance by 300% viatiles.mapbox.comsubdomain switching. #6426 - Added ability to invoke
sampleTerrainfrom node.js to enable offline terrain sampling - Added more ParticleSystem Sandcastle examples for rocket and comet tails and weather. #6375
- Added color and scale attributes to the
ParticleSystemclass constructor. When defined the variables override startColor and endColor and startScale and endScale. #6429
Fixes 🔧
- Fixed bugs in
TimeIntervalCollection.removeInterval. #6418. - Fixed glTF support to handle meshes with and without tangent vectors, and with/without morph targets, sharing one material. #6421
- Fixed glTF support to handle skinned meshes when no skin is supplied. #6061
- Updated glTF 2.0 PBR shader to have brighter lighting. #6430
- Allow loadWithXhr to work with string URLs in a web worker.
- Updated to Draco 1.3.0 and implemented faster loading of Draco compressed glTF assets in browsers that support Web Assembly. #6420
GroundPrimitives andClassificationPrimitives will become ready whenshowisfalse. #6428- Fix Firefox WebGL console warnings. #5912
- Fix parsing Cesium.js in older browsers that do not support all TypedArray types. #6396
- Fixed a bug causing crashes when setting colors on un-pickable models. $6442
- Fix flicker when adding, removing, or modifying entities. #3945
- Fixed crash bug in PolylineCollection when a polyline was updated and removed at the same time. #6455
- Fixed crash when animating a glTF model with a single keyframe. #6422
- Fixed Imagery Layers Texture Filters Sandcastle example. #6472.
- Fixed a bug causing Cesium 3D Tilesets to not clip properly when tiles were unloaded and reloaded. #6484
- Fixed
TimeIntervalso now it throws iffromIso8601is given an ISO 8601 string with improper formatting. #6164 - Improved rendering of glTF models that don't contain normals with a temporary unlit shader workaround. #6501
- Fixed rendering of glTF models with emissive-only materials. #6501
- Fixed a bug in shader modification for glTF 1.0 quantized attributes and Draco quantized attributes. #6523
1.44 - 2018-04-02
Highlights 🎇
- Added a new Sandcastle label,
New in X.Xwhich will include all new Sandcastle demos added for the current release. #6384 - Added support for glTF models with Draco geometry compression. #5120
- Added support for ordering in
DataSourceCollection. #6316
Breaking Changes 📣
GeometryVisualizernow requiresprimitiveandgroundPrimitiveparameters. #6316- For all classes/functions that take a
Resourceinstance, all additional parameters that are part of theResourceclass have been removed. This generally includesproxy,headersandqueryparameters. #6368 - All low level load functions including
loadArrayBuffer,loadBlob,loadImage,loadJson,loadJsonp,loadText,loadXMLandloadWithXhrhave been removed. Please use the equivalentfetchfunctions on theResourceclass. #6368
Deprecated ⏳
ClippingPlaneCollectionis now supported in Internet Explorer, soClippingPlaneCollection.isSupportedhas been deprecated and will be removed in Cesium 1.45.ClippingPlaneCollectionshould now be used withClippingPlaneobjects instead ofPlane. Use ofPlaneobjects has been deprecated and will be removed in Cesium 1.45.Creditnow takes anhtmlandshowOnScreenparameters instead of anoptionsobject. Use of theoptionsparameter is deprecated and will be removed in Cesium 1.46.Credit.text,Credit.imageUrlandCredit.linkproperties have all been deprecated and will be removed in Cesium 1.46. UseCredit.htmlto retrieve the credit content.Credit.hasImageandCredit.hasLinkfunctions have been deprecated and will be removed in Cesium 1.46.
Additions 🎉
- Added a new Sandcastle label,
New in X.Xwhich will include all new Sandcastle demos added for the current release. #6384 - Added support for glTF models with Draco geometry compression. #5120
- Added
dequantizeInShaderoption parameter toModelandModel.fromGltfto specify if Draco compressed glTF assets should be dequantized on the GPU.
- Added
- Added support for ordering in
DataSourceCollection. #6316- All ground geometry from one
DataSourcewill render in front of all ground geometry from anotherDataSourcein the same collection with a lower index. - Use
DataSourceCollection.raise,DataSourceCollection.lower,DataSourceCollection.raiseToTopandDataSourceCollection.lowerToBottomfunctions to change the ordering of aDataSourcein the collection.
- All ground geometry from one
ClippingPlaneCollectionupdates #6201:- Removed the 6-clipping-plane limit.
- Added support for Internet Explorer.
- Added a
ClippingPlaneobject to be used withClippingPlaneCollection. - Added 3D Tiles use-case to the Terrain Clipping Planes Sandcastle.
Credithas been modified to take an HTML string as the credit content. #6331- Sharing Sandcastle examples now works by storing the full example directly in the URL instead of creating GitHub gists, because anonymous gist creation was removed by GitHub. Loading existing gists will still work. #6342
- Updated
WebMapServiceImageryProviderso it can take an srs or crs string to pass to the resource query parameters based on the WMS version. #6223 - Added additional query parameter options to the CesiumViewer demo application #6328:
sourceTypespecifies the type of data source if the URL doesn't have a known file extension.flyTo=falseoptionally disables the automaticflyToafter loading the data source.
- Added a multi-part CZML example to Sandcastle. #6320
- Improved processing order of 3D tiles. #6364
Fixes 🔧
- Fixed Cesium ion browser caching. #6353.
- Fixed formula for Weighted Blended Order-Independent Transparency. #6340
- Fixed support of glTF-supplied tangent vectors. #6302
- Fixed model loading failure when containing unused materials. 6315
- Fixed default value of
alphaCutoffin glTF models. #6346 - Fixed double-sided flag for glTF materials with
BLENDenabled. #6371 - Fixed animation for glTF models with missing animation targets. #6351
- Fixed improper zoom during model load failure. #6305
- Fixed rendering vector tiles when using
invertClassification. #6349 - Fixed occlusion when
globe.showisfalse. #6374 - Fixed crash for entities with static geometry and time-dynamic attributes. #6377
- Fixed geometry tile rendering in IE. #6406
1.43 - 2018-03-01
Major Announcements 📢
- Say hello to Cesium ion
- Cesium, the JavaScript library, is now officially renamed to CesiumJS (no code changes required)
- The STK World Terrain tileset is deprecated and will be available until September 1, 2018. Check out the new high-resolution Cesium World Terrain
Breaking Changes 📣
- Removed
GeometryUpdater.perInstanceColorAppearanceTypeandGeometryUpdater.materialAppearanceType. #6239 GeometryVisualizerno longer uses atypeparameter. #6239GeometryVisualizerno longer displays polylines. UsePolylineVisualizerinstead. #6239- The experimental
CesiumIonobject has been completely refactored and renamed toIon.
Deprecated ⏳
- The STK World Terrain, ArcticDEM, and PAMAP Terrain tilesets hosted on
assets.agi.comare deprecated and will be available until September 1, 2018. To continue using them, access them via Cesium ion - In the
Resourceclass,addQueryParametersandaddTemplateValueshave been deprecated and will be removed in Cesium 1.45. Please usesetQueryParametersandsetTemplateValuesinstead.
Additions 🎉
- Added new
Ion,IonResource, andIonImageryProviderobjects for loading data hosted on Cesium ion. - Added
createWorldTerrainhelper function for easily constructing the new Cesium World Terrain. - Added support for a promise to a resource for
CesiumTerrainProvider,createTileMapServiceImageryProviderandCesium3DTileset#6204 - Added
Cesium.Math.cbrt. #6222 - Added
PolylineVisualizerfor displaying polyline entities #6239 Resourceclass #6205- Added
put,patch,delete,optionsandheadmethods, so it can be used for all XHR requests. - Added
preserveQueryParametersparameter togetDerivedResource, to allow us to append query parameters instead of always replacing them. - Added
setQueryParametersandappendQueryParametersto allow for better handling of query strings.
- Added
- Enable terrain in the
CesiumViewerdemo application #6198 - Added
Globe.tilesLoadedgetter property to determine if all terrain and imagery is loaded. #6194 - Added
classificationTypeproperty to entities which specifies whether an entity on the ground, like a polygon or rectangle, should be clamped to terrain, 3D Tiles, or both. #6195
Fixes 🔧
- Fixed bug where KmlDataSource did not use Ellipsoid to convert coordinates. Use
options.ellipsoidto pass the ellipsoid to KmlDataSource constructors / loaders. #6176 - Fixed bug where 3D Tiles Point Clouds would fail in Internet Explorer. #6220
- Fixed issue where
CESIUM_BASE_URLwouldn't work without a trailing/. #6225 - Fixed coloring for polyline entities with a dynamic color for the depth fail material #6245
- Fixed bug with zooming to dynamic geometry. #6269
- Fixed bug where
AxisAlignedBoundingBoxdid not copy over center value when cloning an undefined result. #6183 - Fixed a bug where imagery stops loading when changing terrain in request render mode. #6193
- Fixed
Resource.fetchwhen called with no arguments #6206 - Fixed
Resource.cloneto clone theRequestobject, so resource can be used in parallel. #6208 - Fixed
Materialso it can now take aResourceobject as an image. #6199 - Fixed an issue causing the Bing Maps key to be sent unnecessarily with every tile request. #6250
- Fixed documentation issue for the
Cesium.Mathclass. #6233 - Fixed rendering 3D Tiles as classification volumes. #6295
1.42.1 - 2018-02-01
_This is an npm-only release to fix an issue with using Cesium in Node.js.__
- Fixed a bug where Cesium would fail to load under Node.js. #6177
1.42 - 2018-02-01
Highlights 🎇
- Added experimental support for 3D Tiles Vector and Geometry data. (#4665)
- Added optional mode to reduce CPU usage. See Improving Performance with Explicit Rendering. (#6115)
- Added experimental
CesiumIonutility class for working with the Cesium ion beta API. #6136 - Major refactor of URL handling. All classes that take a url parameter, can now take a Resource or a String. This includes all imagery providers, all terrain providers,
Cesium3DTileset,KMLDataSource,CZMLDataSource,GeoJsonDataSource,Model, andBillboard.
Breaking Changes 📣
- The clock does not animate by default. Set the
shouldAnimateoption totruewhen creating the Viewer to enable animation.
Deprecated ⏳
- For all classes/functions that can now take a
Resourceinstance, all additional parameters that are part of theResourceclass have been deprecated and will be removed in Cesium 1.44. This generally includesproxy,headersandqueryparameters. - All low level load functions including
loadArrayBuffer,loadBlob,loadImage,loadJson,loadJsonp,loadText,loadXMLandloadWithXhrhave been deprecated and will be removed in Cesium 1.44. Please use the equivalentfetchfunctions on theResourceclass.
Additions 🎉
- Added experimental support for 3D Tiles Vector and Geometry data (#4665). The new and modified Cesium APIs are:
Cesium3DTileStylehas expanded to include styling point features. See the styling specification for details.Cesium3DTileFeaturecan modifycolorandshowproperties for polygon, polyline, and geometry features.Cesium3DTilePointFeaturecan modify the styling options for a point feature.
- Added optional mode to reduce CPU usage. #6115
Scene.requestRenderModeenables a mode which will only request new render frames on changes to the scene, or when the simulation time change exceedsscene.maximumRenderTimeChange.Scene.requestRenderwill explicitly request a new render frame when in request render mode.- Added
Scene.preUpdateandScene.postUpdateevents that are raised before and after the scene updates respectively. The scene is always updated before executing a potential render. Continue to listen toScene.preRenderandScene.postRenderevents for when the scene renders a frame. - Added
CreditDisplay.update, which updates the credit display before a new frame is rendered. - Added
Globe.imageryLayersUpdatedEvent, which is raised when an imagery layer is added, shown, hidden, moved, or removed on the globe.
- Added
Cesium3DTileset.classificationTypeto specify if a tileset classifies terrain, another 3D Tiles tileset, or both. This only applies to vector, geometry and batched 3D model tilesets. The limitations on the glTF contained in the b3dm tile are:POSITIONand_BATCHIDsemantics are required.- All indices with the same batch id must occupy contiguous sections of the index buffer.
- All shaders and techniques are ignored. The generated shader simply multiplies the position by the model-view-projection matrix.
- The only supported extensions are
CESIUM_RTCandWEB3D_quantized_attributes. - Only one node is supported.
- Only one mesh per node is supported.
- Only one primitive per mesh is supported.
- Added geometric-error-based point cloud attenuation and eye dome lighting for point clouds using replacement refinement. #6069
- Updated
Viewer.zoomToandViewer.flyToto take aCesium3DTilesetas a target. #6104 - Added
shouldAnimateoption to theViewerconstructor to indicate if the clock should begin animating on startup. #6154 - Added
Cesium3DTileset.ellipsoiddetermining the size and shape of the globe. This can be set at construction and defaults to a WGS84 ellipsoid. - Added
Plane.projectPointOntoPlanefor projecting aCartesian3position onto aPlane. #6092 - Added
Cartesian3.projectVectorfor projecting one vector to another. #6093 - Added
Cesium3DTileset.tileFailedevent that will be raised when a tile fails to load. The object passed to the event listener will have a url and message property. If there are no event listeners, error messages will be logged to the console. #6088 - Added
AttributeCompression.zigZagDeltaDecodewhich will decode delta and ZigZag encoded buffers in place. - Added
packandunpackfunctions toOrientedBoundingBoxfor packing to and unpacking from a flat buffer. - Added support for vertex shader uniforms when
tileset.colorBlendModeisMIXorREPLACE. #5874 - Added
ClippingPlaneCollection.isSupportedfunction for checking if rendering with clipping planes is supported.#6084 - Added
Cartographic.toCartesianto convert fromCartographictoCartesian3. #6163 - Added
BoundingSphere.volumefor computing the volume of aBoundingSphere. #6069 - Added new file for the Cesium Code of Conduct. #6129
Fixes 🔧
- Fixed a bug that could cause tiles to be missing from the globe surface, especially when starting with the camera zoomed close to the surface. #4969
- Fixed applying a translucent style to a point cloud tileset. #6113
- Fixed Sandcastle error in IE 11. #6169
- Fixed a glTF animation bug that caused certain animations to jitter. #5740
- Fixed a bug when creating billboard and model entities without a globe. #6109
- Improved CZML Custom Properties Sandcastle example. #6086
- Improved Particle System Sandcastle example for better visual. #6132
- Fixed behavior of
Camera.move*andCamera.look*functions in 2D mode. #5884 - Fixed
Camera.moveStartandCamera.moveEndevents not being raised when camera is close to the ground. #4753 - Fixed
OrientedBoundingBoxdocumentation. #6147 - Updated documentation links to reflect new locations on
https://cesiumjs.organdhttps://cesium.com.
1.41 - 2018-01-02
- Breaking changes
- Removed the
text,imageUrl, andlinkparameters fromCredit, which were deprecated in Cesium 1.40. Useoptions.text,options.imageUrl, andoptions.linkinstead.
- Removed the
- Added support for clipping planes. #5913, #5996
- Added
clippingPlanesproperty toModelGraphics,Model,Cesium3DTileset, andGlobe, which specifies aClippingPlaneCollectionto selectively disable rendering. - Added
PlaneGeometry,PlaneOutlineGeometry,PlaneGeometryUpdater,PlaneOutlineGeometryUpdater,PlaneGraphics, andEntity.planeto visualize planes. - Added
Plane.transformPlaneto apply a transformation to a plane.
- Added
- Fixed point cloud exception in IE. #6051
- Fixed globe materials when
Globe.enableLightingwasfalse. #6042 - Fixed shader compilation failure on pick when globe materials were enabled. #6039
- Fixed exception when
invertClassificationwas enabled, the invert color had an alpha less than1.0, and the window was resized. #6046
1.40 - 2017-12-01
- Deprecated
- The
text,imageUrlandlinkparameters fromCredithave been deprecated and will be removed in Cesium 1.41. Useoptions.text,options.imageUrlandoptions.linkinstead.
- The
- Added
Globe.materialto apply materials to the globe/terrain for shading such as height- or slope-based color ramps. See the new Sandcastle example. #5919 - Added CZML support for
polyline.depthFailMaterial,label.scaleByDistance,distanceDisplayCondition, anddisableDepthTestDistance. #5986 - Fixed a bug where drill picking a polygon clamped to ground would cause the browser to hang. #5971
- Fixed bug in KML LookAt bug where degrees and radians were mixing in a subtraction. #5992
- Fixed handling of KMZ files with missing
xsinamespace declarations. #6003 - Added function that removes duplicate namespace declarations while loading a KML or a KMZ. #5972
- Fixed a language detection issue. #6016
- Fixed a bug where glTF models with animations of different lengths would cause an error. #5694
- Added a
clampAnimationsparameter toModelandEntity.model. Setting this tofalseallows different length animations to loop asynchronously over the duration of the longest animation. - Fixed
Invalid asm.js: Invalid member of stdlibconsole error by recompiling crunch.js with latest emscripten toolchain. #5847 - Added
file:scheme compatibility tojoinUrls. #5989 - Added a Reverse Geocoder Sandcastle example. #5976
- Added ability to support touch event in Imagery Layers Split Sandcastle example. #5948
- Added a new
@experimentaltag to the documentation. A small subset of the Cesium API tagged as such are subject to breaking changes without deprecation. See the Coding Guide for further explanation. #6010 - Moved terrain and imagery credits to a lightbox that pops up when you click a link in the onscreen credits #3013
1.39 - 2017-11-01
- Cesium now officially supports webpack. See our Integrating Cesium and webpack blog post for more details.
- Added support for right-to-left language detection in labels, currently Hebrew and Arabic are supported. To enable it, set
Cesium.Label.enableRightToLeftDetection = trueat the start of your application. #5771 - Fixed handling of KML files with missing
xsinamespace declarations. #5860 - Fixed a bug that caused KML ground overlays to appear distorted when rotation was applied. #5914
- Fixed a bug where KML placemarks with no specified icon would be displayed with default icon. #5819
- Changed KML loading to ignore NetworkLink failures and continue to load the rest of the document. #5871
- Added the ability to load Cesium's assets from the local file system if security permissions allow it. #5830
- Added two new properties to
ImageryLayerthat allow for adjusting the texture sampler used for up and down-sampling of imagery tiles, namelyminificationFilterandmagnificationFilterwith possible valuesLINEAR(the default) andNEARESTdefined inTextureMinificationFilterandTextureMagnificationFilter. #5846 - Fixed flickering artifacts with 3D Tiles tilesets with thin walls. #5940
- Fixed bright fog when terrain lighting is enabled and added
Fog.minimumBrightnessto affect how bright the fog will be when in complete darkness. #5934 - Fixed using arrow keys in geocoder widget to select search suggestions. #5943
- Added support for the layer.json
parentUrlproperty inCesiumTerrainProviderto allow for compositing of tilesets. #5864 - Added
invertClassificationandinvertClassificationColortoScene. WheninvertClassificationistrue, any 3D Tiles geometry that is not classified by aClassificationPrimitiveorGroundPrimitivewill have its color multiplied byinvertClassificationColor. #5836 - Added
customTagsproperty to the UrlTemplateImageryProvider to allow custom keywords in the template URL. #5696 - Added
eyeSeparationandfocalLengthproperties toSceneto configure VR settings. #5917 - Improved CZML Reference Properties example #5754
1.38 - 2017-10-02
- Breaking changes
Scene/CullingVolumehas been removed. UseCore/CullingVolume.Scene/OrthographicFrustumhas been removed. UseCore/OrthographicFrustum.Scene/OrthographicOffCenterFrustumhas been removed. UseCore/OrthographicOffCenterFrustum.Scene/PerspectiveFrustumhas been removed. UseCore/PerspectiveFrustum.Scene/PerspectiveOffCenterFrustumhas been removed. UseCore/PerspectiveOffCenterFrustum.
- Added support in CZML for expressing
orientationas the velocity vector of an entity, usingvelocityReferencesyntax. #5807 - Fixed CZML processing of
velocityReferencewithin an interval. #5738 - Added ability to add an animation to
ModelAnimationCollectionby its index. #5815 - Fixed a bug in
ModelAnimationCollectionthat caused adding an animation by its name to throw an error. #5815 - Fixed issue in Internet Explorer and Edge with loading unicode strings in typed arrays that impacted 3D Tiles Batch Table values.
- Zoom now maintains camera heading, pitch, and roll. #4639
- Fixed a bug in
PolylineCollectionpreventing the display of more than 16K points in a single collection. #5538 - Fixed a 3D Tiles point cloud bug causing a stray point to appear at the center of the screen on certain hardware. #5599
- Fixed removing multiple event listeners within event callbacks. #5827
- Running
buildAppsnow creates a built version of Sandcastle which uses the built version of Cesium for better performance. - Fixed a tileset traversal bug when the
skipLevelOfDetailoptimization is off. #5869
1.37 - 2017-09-01
- Breaking changes
- Passing
options.clockwhen creating a newViewerinstance is removed, passoptions.clockViewModelinstead. - Removed
GoogleEarthImageryProvider, useGoogleEarthEnterpriseMapsProviderinstead. - Removed the
throttleRequestparameter fromTerrainProvider.requestTileGeometryand inherited terrain providers. It is replaced with an optionalRequestobject. Set the request'sthrottleproperty totrueto throttle requests. - Removed the ability to provide a Promise for the
options.urlparameter ofloadWithXhrand for theurlparameter ofloadArrayBuffer,loadBlob,loadImageViaBlob,loadText,loadJson,loadXML,loadImage,loadCRN,loadKTX, andloadCubeMap. Insteadurlmust be a string.
- Passing
- Added
classificationTypetoClassificationPrimitiveandGroundPrimitiveto choose whether terrain, 3D Tiles, or both are classified. #5770 - Fixed depth picking on 3D Tiles. #5676
- Fixed glTF model translucency bug. #5731
- Fixed
replaceStatebug that was causing theCesiumViewerdemo application to crash in Safari and iOS. #5691 - Fixed a 3D Tiles traversal bug for tilesets using additive refinement. #5766
- Fixed a 3D Tiles traversal bug where out-of-view children were being loaded unnecessarily. #5477
- Fixed
Entityid type to beStringinEntityCollectionandCompositeEntityCollection#5791 - Fixed issue where
ModelandBillboardCollectionwould throw an error if the globe is undefined. #5638 - Fixed issue where the
ModelglTF cache loses reference to the model's buffer data. #5720 - Fixed some issues with
disableDepthTestDistance. #5501 #5331 #5621 - Added several new Bing Maps styles:
CANVAS_DARK,CANVAS_LIGHT, andCANVAS_GRAY. #5737 - Added small improvements to the atmosphere. #5741
- Fixed a bug that caused imagery splitting to work incorrectly when CSS pixels were not equivalent to WebGL drawing buffer pixels, such as on high DPI displays in Microsoft Edge and Internet Explorer. #5743
- Added
Cesium3DTileset.loadJsonto support overriding the default tileset loading behavior. #5685 - Fixed loading of binary glTFs containing CRN or KTX textures. #5753
- Fixed specular computation for certain models using the
KHR_materials_commonextension. #5773 - Fixed a picking bug in the
3D Tiles InteractivitySandcastle demo. #5703 - Updated knockout from 3.4.0 to 3.4.2 #5703
1.36 - 2017-08-01
- Breaking changes
- The function
Quaternion.fromHeadingPitchRoll(heading, pitch, roll, result)was removed. UseQuaternion.fromHeadingPitchRoll(hpr, result)instead wherehpris aHeadingPitchRoll. - The function
Transforms.headingPitchRollToFixedFrame(origin, headingPitchRoll, ellipsoid, result)was removed. UseTransforms.headingPitchRollToFixedFrame(origin, headingPitchRoll, ellipsoid, fixedFrameTransform, result)instead wherefixedFrameTransformis a a 4x4 transformation matrix (seeTransforms.localFrameToFixedFrameGenerator). - The function
Transforms.headingPitchRollQuaternion(origin, headingPitchRoll, ellipsoid, result)was removed. UseTransforms.headingPitchRollQuaternion(origin, headingPitchRoll, ellipsoid, fixedFrameTransform, result)instead wherefixedFrameTransformis a a 4x4 transformation matrix (seeTransforms.localFrameToFixedFrameGenerator). - The
color,show, andpointSizeproperties ofCesium3DTileStyleare no longer initialized with default values.
- The function
- Deprecated
Scene/CullingVolumeis deprecated and will be removed in 1.38. UseCore/CullingVolume.Scene/OrthographicFrustumis deprecated and will be removed in 1.38. UseCore/OrthographicFrustum.Scene/OrthographicOffCenterFrustumis deprecated and will be removed in 1.38. UseCore/OrthographicOffCenterFrustum.Scene/PerspectiveFrustumis deprecated and will be removed in 1.38. UseCore/PerspectiveFrustum.Scene/PerspectiveOffCenterFrustumis deprecated and will be removed in 1.38. UseCore/PerspectiveOffCenterFrustum.
- Added glTF 2.0 support, including physically-based material rendering, morph targets, and appropriate updating of glTF 1.0 models to 2.0. #5641
- Added
ClassificationPrimitivewhich defines a volume and draws the intersection of the volume and terrain or 3D Tiles. #5625 - Added
tileLoadevent toCesium3DTileset. #5628 - Fixed issue where scene would blink when labels were added. #5537
- Fixed label positioning when height reference changes #5609
- Fixed label positioning when using
HeightReference.CLAMP_TO_GROUNDand no position #5648 - Fix for dynamic polylines with polyline dash material #5681
- Added ability to provide a
widthandheighttoscene.pick. #5602 - Fixed
Viewer.flyTonot respecting zoom limits, and resetting minimumZoomDistance if the camera zoomed past the minimumZoomDistance. 5573 - Added ability to show tile urls in the 3D Tiles Inspector. #5592
- Fixed a bug when reading CRN compressed textures with multiple mip levels. #5618
- Fixed issue where composite 3D Tiles that contained instanced 3D Tiles with an external model reference would fail to download the model.
- Added behavior to
Cesium3DTilesInspectorthat selects the first tileset hovered over if no tilest is specified. #5139 - Added
Entity.computeModelMatrixwhich returns the model matrix representing the entity's transformation. #5584 - Added ability to set a style's
color,show, orpointSizewith a string or object literal.showmay also take a boolean andpointSizemay take a number. #5412 - Added setter for
KmlDataSource.nameto specify a name for the datasource #5660. - Added setter for
GeoJsonDataSource.nameto specify a name for the datasource #5653 - Fixed crash when using the
Cesium3DTilesInspectorViewModeland removing a tileset #5607 - Fixed polygon outline in Polygon Sandcastle demo #5642
- Updated
Billboard,LabelandPointPrimitiveconstructors to cloneNearFarScaleparameters #5654 - Added
FrustumGeometryandFrustumOutlineGeometry. #5649 - Added an
optionsparameter to the constructors ofPerspectiveFrustum,PerspectiveOffCenterFrustum,OrthographicFrustum, andOrthographicOffCenterFrustumto set properties. #5649
1.35.2 - 2017-07-11
- This is an npm-only release to fix an issue with using Cesium in Node.js.
- Fixed a bug where Cesium would fail to load under Node.js and some webpack configurations. #5593
- Fixed a bug where a Model's compressed textures were not being displayed. #5596
- Fixed documentation for
OrthographicFrustum. #5586
1.35.1 - 2017-07-05
- This is an npm-only release to fix a deployment issue with 1.35. No code changes.
1.35 - 2017-07-05
- Breaking changes
JulianDate.fromIso8601will default to midnight UTC if no time is provided to match the JavascriptDatespecification. You must specify a local time of midnight to achieve the old behavior.
- Deprecated
GoogleEarthImageryProviderhas been deprecated and will be removed in Cesium 1.37, useGoogleEarthEnterpriseMapsProviderinstead.- The
throttleRequestparameter forTerrainProvider.requestTileGeometry,CesiumTerrainProvider.requestTileGeometry,VRTheWorldTerrainProvider.requestTileGeometry, andEllipsoidTerrainProvider.requestTileGeometryis deprecated and will be replaced with an optionalRequestobject. ThethrottleRequestsparameter will be removed in 1.37. Instead set the request'sthrottleproperty totrueto throttle requests. - The ability to provide a Promise for the
options.urlparameter ofloadWithXhrand for theurlparameter ofloadArrayBuffer,loadBlob,loadImageViaBlob,loadText,loadJson,loadXML,loadImage,loadCRN,loadKTX, andloadCubeMapis deprecated. This will be removed in 1.37, insteadurlmust be a string.
- Added support for 3D Tiles for streaming massive heterogeneous 3D geospatial datasets (#5308). See the new Sandcastle examples. The new Cesium APIs are:
Cesium3DTilesetCesium3DTileStyle,StyleExpression,Expression, andConditionsExpressionCesium3DTileCesium3DTileContentCesium3DTileFeatureCesium3DTilesInspector,Cesium3DTilesInspectorViewModel, andviewerCesium3DTilesInspectorMixinCesium3DTileColorBlendMode
- Added a particle system for effects like smoke, fire, sparks, etc. See
ParticleSystem,Particle,ParticleBurst,BoxEmitter,CircleEmitter,ConeEmitter,ParticleEmitter, andSphereEmitter, and the new Sandcastle examples: Particle System and Particle System Fireworks. #5212 - Added
options.clock,options.timesandoptions.dimensionstoWebMapTileServiceImageryProviderin order to handle time dynamic and static values for dimensions. - Added an
options.requestparameter toloadWithXhrand arequestparameter toloadArrayBuffer,loadBlob,loadImageViaBlob,loadText,loadJson,loadJsonp,loadXML,loadImageFromTypedArray,loadImage,loadCRN, andloadKTX. CzmlDataSourceandKmlDataSourceload functions now take an optionalqueryobject, which will append query parameters to all network requests. #5419, #5434- Added Sandcastle demo for setting time with the Clock API #5457;
- Added Sandcastle demo for ArcticDEM data. #5224
- Added
fromIso8601,fromIso8601DateArray, andfromIso8601DurationArraytoTimeIntervalCollectionfor handling various ways groups of intervals can be specified in ISO8601 format. - Added
fromJulianDateArraytoTimeIntervalCollectionfor generating intervals from a list of dates. - Fixed geocoder bug so geocoder can accurately handle NSEW inputs #5407
- Fixed a bug where picking would break when the Sun came into view #5478
- Fixed a bug where picking clusters would return undefined instead of a list of the clustered entities. #5286
- Fixed bug where if polylines were set to follow the surface of an undefined globe, Cesium would throw an exception. #5413
- Reduced the amount of Sun bloom post-process effect near the horizon. #5381
- Fixed a bug where camera zooming worked incorrectly when the display height was greater than the display width #5421
- Updated glTF/glb MIME types. #5420
- Added
Cesium.Math.randomBetween. - Modified
defaultValueto check for bothundefinedandnull. #5551 - The
throttleRequestByServerfunction has been removed. Instead pass aRequestobject withthrottleByServerset totrueto any of following load functions:loadWithXhr,loadArrayBuffer,loadBlob,loadImageViaBlob,loadText,loadJson,loadJsonp,loadXML,loadImageFromTypedArray,loadImage,loadCRN, andloadKTX.
1.34 - 2017-06-01
- Deprecated
- Passing
options.clockwhen creating a newViewerinstance has been deprecated and will be removed in Cesium 1.37, passoptions.clockViewModelinstead.
- Passing
- Fix issue where polylines in a
PolylineCollectionwould ignore the far distance when updating the distance display condition. #5283 - Fixed a crash when calling
Camera.pickEllipsoidwith a canvas of size 0. - Fix
BoundingSphere.fromOrientedBoundingBox. #5334 - Fixed bug where polylines would not update when
PolylineCollectionmodel matrix was updated. #5327 - Fixed a bug where adding a ground clamped label without a position would show up at a previous label's clamped position. #5338
- Fixed translucency bug for certain material types. #5335
- Fix picking polylines that use a depth fail appearance. #5337
- Fixed a crash when morphing from Columbus view to 3D. #5311
- Fixed a bug which prevented KML descriptions with relative paths from loading. #5352
- Fixed an issue where camera view could be invalid at the last frame of animation. #4949
- Fixed an issue where using the depth fail material for polylines would cause a crash in Edge. #5359
- Fixed a crash where
EllipsoidGeometryandEllipsoidOutlineGeometrywere given floating point values when expecting integers. #5260 - Fixed an issue where billboards were not properly aligned. #2487
- Fixed an issue where translucent objects could flicker when picking on mouse move. #5307
- Fixed a bug where billboards with
sizeInMetersset to true would move upwards when zooming out. #5373 - Fixed a bug where
SampledProperty.setInterpolationOptionsdoes not ignore undefinedoptions. #3575 - Added
basePathoption toCesium.Model.fromGltf. #5320
1.33 - 2017-05-01
- Breaking changes
- Removed left, right, bottom and top properties from
OrthographicFrustum. UseOrthographicOffCenterFrustuminstead. #5109
- Removed left, right, bottom and top properties from
- Added
GoogleEarthEnterpriseTerrainProviderandGoogleEarthEnterpriseImageryProviderto read data from Google Earth Enterprise servers. #5189. - Support for dashed polylines #5159.
- Added
PolylineDashMaterial type. - Added
PolylineDashMaterialPropertyto the Entity API. - Added CZML
polylineDashproperty .
- Added
- Added
disableDepthTestDistanceto billboards, points and labels. This sets the distance to the camera where the depth test will be disabled. Setting it to zero (the default) will always enable the depth test. Setting it toNumber.POSITIVE_INFINITYwill never enabled the depth test. Also addedscene.minimumDisableDepthTestDistanceto change the default value from zero. #5166 - Added a
depthFailMaterialproperty to line entities, which is the material used to render the line when it fails the depth test. #5160 - Fixed billboards not initially clustering. #5208
- Fixed issue with displaying
MapboxImageryProviderdefault token error message. #5191 - Fixed bug in conversion formula in
Matrix3.fromHeadingPitchRoll. #5195 - Upgrade FXAA to version 3.11. #5200
Scene.pickPositionnow caches results per frame to increase performance. #5117
1.32 - 2017-04-03
- Deprecated
- The
left,right,bottom, andtopproperties ofOrthographicFrustumare deprecated and will be removed in 1.33. UseOrthographicOffCenterFrustuminstead.
- The
- Breaking changes
- Removed
ArcGisImageServerTerrainProvider. - The top-level
propertiesin anEntitycreated byGeoJsonDataSourceare now instances ofConstantPropertyinstead of raw values.
- Removed
- Added support for an orthographic projection in 3D and Columbus view.
- Set
projectionPickertotruein the options when creating aViewerto add a widget that will switch projections. #5021 - Call
switchToOrthographicFrustumorswitchToPerspectiveFrustumonCamerato change projections.
- Set
- Added support for custom time-varying properties in CZML. #5105.
- Added new flight parameters to
Camera.flyToandCamera.flyToBoundingSphere:flyOverLongitude,flyOverLongitudeWeight, andpitchAdjustHeight. #5070 - Added the event
Viewer.trackedEntityChanged, which is raised when the value ofviewer.trackedEntitychanges. #5060 - Added
Camera.DEFAULT_OFFSETfor default view of objects with bounding spheres. #4936 - Fixed an issue with
TileBoundingBoxthat caused the terrain to disappear in certain places 4032 - Fixed overlapping billboard blending. #5066
- Fixed an issue with
PinBuilderwhere inset images could have low-alpha fringes against an opaque background. #5099 - Fix billboard, point and label clustering in 2D and Columbus view. #5136
- Fixed
GroundPrimitiverendering in 2D and Columbus View. #5078 - Fixed an issue with camera tracking of dynamic ellipsoids. #5133
- Fixed issues with imagerySplitPosition and the international date line in 2D mode. #5151
- Fixed a bug in
ModelAnimationCachecausing different animations to reference the same animation. #5064 ConstantPropertynow providesvalueOfandtoStringmethods that return the constant value.- Improved depth artifacts between opaque and translucent primitives. #5116
- Fixed crunch compressed textures in IE11. #5057
- Fixed a bug in
Quaternion.fromHeadingPitchRollthat made it erroneously throw an exception when passed individual angles in an unminified / debug build. - Fixed a bug that caused an exception in
CesiumInspectorViewModelwhen using the NW / NE / SW / SE / Parent buttons to navigate to a terrain tile that is not yet loaded. QuadtreePrimitivenow usesframeState.afterRenderto firetileLoadProgressEvent#3450
1.31 - 2017-03-01
- Deprecated
- The function
Quaternion.fromHeadingPitchRoll(heading, pitch, roll, result)will be removed in 1.33. UseQuaternion.fromHeadingPitchRoll(hpr, result)instead wherehpris aHeadingPitchRoll. #4896 - The function
Transforms.headingPitchRollToFixedFrame(origin, headingPitchRoll, ellipsoid, result)will be removed in 1.33. UseTransforms.headingPitchRollToFixedFrame(origin, headingPitchRoll, ellipsoid, fixedFrameTransform, result)instead wherefixedFrameTransformis a a 4x4 transformation matrix (seeTransforms.localFrameToFixedFrameGenerator). #4896 - The function
Transforms.headingPitchRollQuaternion(origin, headingPitchRoll, ellipsoid, result)will be removed in 1.33. UseTransforms.headingPitchRollQuaternion(origin, headingPitchRoll, ellipsoid, fixedFrameTransform, result)instead wherefixedFrameTransformis a a 4x4 transformation matrix (seeTransforms.localFrameToFixedFrameGenerator). #4896 ArcGisImageServerTerrainProviderwill be removed in 1.32 due to missing TIFF support in web browsers. #4981
- The function
- Breaking changes
- Added compressed texture support. #4758
- glTF models and imagery layers can now reference KTX textures and textures compressed with crunch.
- Added
loadKTX, to load KTX textures, andloadCRNto load crunch compressed textures. - Added new
PixelFormatandWebGLConstantsenums from WebGL extensionsWEBGL_compressed_s3tc,WEBGL_compressed_texture_pvrtc, andWEBGL_compressed_texture_etc1. - Added
CompressedTextureBuffer.
- Added support for
Scene.pickPositionin Columbus view and 2D. #4990 - Added support for depth picking translucent primitives when
Scene.pickTranslucentDepthistrue. #4979 - Fixed an issue where the camera would zoom past an object and flip to the other side of the globe. #4967 and #4982
- Enable rendering
GroundPrimitiveson hardware without theEXT_frag_depthextension; however, this could cause artifacts for certain viewing angles. #4930 - Added
Transforms.localFrameToFixedFrameGeneratorto generate a function that computes a 4x4 transformation matrix from a local reference frame to fixed reference frame. #4896 - Added
Label.scaleByDistanceto control minimum/maximum label size based on distance from the camera. #5019 - Added support to
DebugCameraPrimitiveto draw multifrustum planes. The attributedebugShowFrustumPlanesofSceneandfrustumPlanesofCesiumInspectortoggle this. #4932 - Added fix to always outline KML line extrusions so that they show up properly in 2D and other straight down views. #4961
- Improved
RectangleGeometryby skipping unnecessary logic in the code. #4948 - Fixed exception for polylines in 2D when rotating the map. #4619
- Fixed an issue with constant
VertexArrayattributes not being set correctly. #4995 - Added the event
Viewer.selectedEntityChanged, which is raised when the value ofviewer.selectedEntitychanges. #5043
1.30 - 2017-02-01
- Deprecated
- The properties
urlandkeywill be removed fromGeocoderViewModelin 1.31. These properties will be available on geocoder services that support them, likeBingMapsGeocoderService. - The function
GeometryPipeline.computeBinormalAndTangentwill be removed in 1.31. UseGeometryPipeline.createTangentAndBitangentinstead. #4856 - The enums
MIDDLE_DOUBLE_CLICKandRIGHT_DOUBLE_CLICKfromScreenSpaceEventTypehave been deprecated and will be removed in 1.31. #4910
- The properties
- Breaking changes
- Removed separate
heading,pitch,rollparameters fromTransform.headingPitchRollToFixedFrameandTransform.headingPitchRollQuaternion. Pass aHeadingPitchRollobject instead. #4843 - The property
binormalhas been renamed tobitangentforGeometryandVertexFormat. #4856 - A handful of
CesiumInspectorViewModelproperties were removed or changed from variables to functions. #4857 - The
ShadowMapconstructor has been made private. #4010
- Removed separate
- Added
sampleTerrainMostDetailedto sample the height of an array of positions using the best available terrain data at each point. This requires aTerrainProviderwith theavailabilityproperty. - Transparent parts of billboards, labels, and points no longer overwrite parts of the scene behind them. #4886
- Added
blendOptionproperty toBillboardCollection,LabelCollection, andPointPrimitiveCollection. The default isBlendOption.OPAQUE_AND_TRANSLUCENT; however, if all billboards, labels, or points are either completely opaque or completely translucent,blendOptioncan be changed toBlendOption.OPAQUEorBlendOption.TRANSLUCENT, respectively, to increase performance by up to 2x.
- Added
- Added support for custom geocoder services and autocomplete, see the Sandcastle example. Added
GeocoderService, an interface for geocoders, andBingMapsGeocoderServiceandCartographicGeocoderServiceimplementations. #4723 - Added ability to draw an
ImageryLayerwith a splitter to allow layers to only display to the left or right of a splitter. SeeImageryLayer.splitDirection,Scene.imagerySplitPosition, and the Sandcastle example. - Fixed bug where
GroundPrimitiveswhere rendering incorrectly or disappearing at different zoom levels. #4161, #4326 TerrainProvidernow optionally exposes anavailabilityproperty that can be used to query the terrain level that is available at a location or in a rectangle. Currently onlyCesiumTerrainProviderexposes this property.- Added support for WMS version 1.3 by using CRS vice SRS query string parameter to request projection. SRS is still used for older versions.
- Fixed a bug that caused all models to use the same highlight color. #4798
- Fixed sky atmosphere from causing incorrect picking and hanging drill picking. #4783 and #4784
- Fixed KML loading when color is an empty string. #4826
- Fixed a bug that could cause a "readyImagery is not actually ready" exception when quickly zooming past the maximum available imagery level of an imagery layer near the poles.
- Fixed a bug that affected dynamic graphics with time-dynamic modelMatrix. #4907
- Fixed
Geocoderautocomplete drop down visibility in Firefox. #4916 - Added
Rectangle.fromRadians. - Updated the morph so the default view in Columbus View is now angled. #3878
- Added 2D and Columbus View support for models using the RTC extension or whose vertices are in WGS84 coordinates. #4922
- The attribute
perInstanceAttributeofDebugAppearancehas been made optional and defaults tofalse. - Fixed a bug that would cause a crash when
debugShowFrustumsis enabled with OIT. #4864 - Added the ability to run the unit tests with a WebGL Stub, which makes all WebGL calls a noop and ignores test expectations that rely on reading back from WebGL. Use the web link from the main index.html or run with
npm run test-webgl-stub.
1.29 - 2017-01-02
- Improved 3D Models
- Added the ability to blend a
Modelwith a color/translucency. Addedcolor,colorBlendMode, andcolorBlendAmountproperties toModel,ModelGraphics, and CZML. Also addedColorBlendModeenum. #4547 - Added the ability to render a
Modelwith a silhouette. AddedsilhouetteColorandsilhouetteSizeproperties toModel,ModelGraphics, and CZML. #4314
- Added the ability to blend a
- Improved Labels
- Added new
LabelpropertiesshowBackground,backgroundColor, andbackgroundPaddingto the primitive, Entity, and CZML layers. #4715 - Added support for newlines (
\n) in CesiumLabels and CZML. #2402 - Added new enum
VerticalOrigin.BASELINE. Previously,VerticalOrigin.BOTTOMwould sometimes align to the baseline depending on the contents of a label. #4715
- Added new
- Fixed translucency in Firefox 50. #4762
- Fixed texture rotation for
RectangleGeometry. #2737 - Fixed issue where billboards on terrain had an incorrect offset. #4598
- Fixed issue where
globe.getHeightincorrectly returnedundefined. #3411 - Fixed a crash when using Entity path visualization with reference properties. #4915
- Fixed a bug that caused
GroundPrimitiveto render incorrectly on systems without theWEBGL_depth_textureextension. #4747 - Fixed default Mapbox token and added a watermark to notify users that they need to sign up for their own token.
- Fixed glTF models with skinning that used
bindShapeMatrix. #4722 - Fixed a bug that could cause a "readyImagery is not actually ready" exception with some configurations of imagery layers.
- Fixed
Rectangle.unionto correctly account for rectangles that cross the IDL. #4732 - Fixed tooltips for gallery thumbnails in Sandcastle. #4702
- DataSourceClock.getValue now preserves the provided
resultproperties when its properties areundefined. #4029 - Added
divideComponentsfunction toCartesian2,Cartesian3, andCartesian4. #4750 - Added
WebGLConstantsenum. Previously, this was part of the private Renderer API. #4731
1.28 - 2016-12-01
- Improved terrain/imagery load ordering, especially when the terrain is already fully loaded and a new imagery layer is loaded. This results in a 25% reduction in load times in many cases. #4616
- Improved
Billboard,Label, andPointPrimitivevisual quality. #4675- Corrected odd-width and odd-height billboard sizes from being incorrectly rounded up.
- Changed depth testing from
LESStoLEQUAL, allowing label glyphs of equal depths to overlap. - Label glyph positions have been adjusted and corrected.
TextureAtlas.borderWidthInPixelshas always been applied to the upper and right edges of each internal texture, but is now also applied to the bottom and left edges of the entire TextureAtlas, guaranteeing borders on all sides regardless of position within the atlas.
- Fall back to packing floats into an unsigned byte texture when floating point textures are unsupported. #4563
- Added support for saving html and css in GitHub Gists. #4125
- Fixed
Cartographic.fromCartesianwhen the cartesian is not on the ellipsoid surface. #4611
1.27 - 2016-11-01
- Deprecated
- Individual heading, pitch, and roll options to
Transforms.headingPitchRollToFixedFrameandTransforms.headingPitchRollQuaternionhave been deprecated and will be removed in 1.30. Pass the newHeadingPitchRollobject instead. #4498
- Individual heading, pitch, and roll options to
- Breaking changes
- The
sceneparameter for creatingBillboardVisualizer,LabelVisualizer, andPointVisualizerhas been removed. Instead, pass an instance ofEntityCluster. #4514
- The
- Fixed an issue where a billboard entity would not render after toggling the show property. #4408
- Fixed a crash when zooming from touch input on viewer initialization. #4177
- Fixed a crash when clustering is enabled, an entity has a label graphics defined, but the label isn't visible. #4414
- Added the ability for KML files to load network links to other KML files within the same KMZ archive. #4477
KmlDataSourceandGeoJsonDataSourcewere not honoring theclampToGroundoption for billboards and labels and was instead always clamping, reducing performance in cases when it was unneeded. #4459- Fixed
KmlDataSourcefeatures to respecttimespanandtimestampproperties of its parents (e.g. Folders or NetworkLinks). #4041 - Fixed a
KmlDataSourcebug where features had duplicate IDs and only one was drawn. #3941 GeoJsonDataSourcenow treats null crs values as a no-op instead of failing to load. #4456GeoJsonDataSourcenow gracefully handles missing style icons instead of failing to load. #4452- Added
HeadingPitchRoll#4047HeadingPitchRoll.fromQuaternionfunction for retrieving heading-pitch-roll angles from a quaternion.HeadingPitchRoll.fromDegreesfunction that returns a new HeadingPitchRoll instance from angles given in degrees.HeadingPitchRoll.clonefunction to duplicate HeadingPitchRoll instance.HeadingPitchRoll.equalsandHeadingPitchRoll.equalsEpsilonfunctions for comparing two instances.- Added
Matrix3.fromHeadingPitchRollComputes a 3x3 rotation matrix from the provided headingPitchRoll.
- Fixed primitive bounding sphere bug that would cause a crash when loading data sources. #4431
- Fixed
BoundingSpherecomputation forPrimitiveinstances with a modelMatrix. #4428 - Fixed a bug with rotated, textured rectangles. #4430
- Added the ability to specify retina options, such as
@2x.png, via theMapboxImageryProviderformatoption. #4453. - Fixed a crash that could occur when specifying an imagery provider's
rectangleoption. https://github.com/CesiumGS/cesium/issues/4377 - Fixed a crash that would occur when using dynamic
distanceDisplayConditionproperties. #4403 - Fixed several bugs that lead to billboards and labels being improperly clamped to terrain. #4396, #4062
- Fixed a bug affected models with multiple meshes without indices. #4237
- Fixed a glTF transparency bug where
blendFuncSeparateparameters were loaded in the wrong order. #4435 - Fixed a bug where creating a custom geometry with attributes and indices that have values that are not a typed array would cause a crash. #4419
- Fixed a bug when morphing from 2D to 3D. #4388
- Fixed
RectangleGeometryrotation when the rectangle is close to the international date line #3874 - Added
clusterBillboards,clusterLabels, andclusterPointsproperties toEntityClusterto selectively cluster screen space entities. - Prevent execution of default device/browser behavior when handling "pinch" touch event/gesture. #4518.
- Fixed a shadow aliasing issue where polygon offset was not being applied. #4559
- Removed an unnecessary re-projection of Web Mercator imagery tiles to the Geographic projection on load. This should improve both visual quality and load performance slightly. #4339
- Added
Transforms.northUpEastToFixedFrameto compute a 4x4 local transformation matrix from a reference frame with a north-west-up axes. - Improved
Geocoderusability by selecting text on click #4464 - Added
Rectangle.simpleIntersectionwhich is an optimized version ofRectangle.intersectionfor more constrained input. #4339 - Fixed warning when using Webpack. #4467
1.26 - 2016-10-03
- Deprecated
- The
sceneparameter for creatingBillboardVisualizer,LabelVisualizer, andPointVisualizerhas been deprecated and will be removed in 1.28. Instead, pass an instance ofEntityCluster.
- The
- Breaking changes
- Vertex texture fetch is now required to be supported to render polylines. Maximum vertex texture image units must be greater than zero.
- Removed
castShadowsandreceiveShadowsproperties fromModel,Primitive, andGlobe. Instead, useshadowswith theShadowModeenum, e.g.model.shadows = ShadowMode.ENABLED. Viewer.terrainShadowsnow uses theShadowModeenum instead of a Boolean, e.g.viewer.terrainShadows = ShadowMode.RECEIVE_ONLY.
- Added support for clustering
Billboard,LabelandPointentities. #4240 - Added
DistanceDisplayConditions to all primitives to determine the range interval from the camera for when it will be visible. - Removed the default gamma correction for Bing Maps aerial imagery, because it is no longer an improvement to current versions of the tiles. To restore the previous look, set the
defaultGammaproperty of yourBingMapsImageryProviderinstance to 1.3. - Fixed a bug that could lead to incorrect terrain heights when using
HeightmapTerrainDatawith an encoding in which actual heights were equal to the minimum representable height. - Fixed a bug in
AttributeCompression.compressTextureCoordinatesanddecompressTextureCoordinatesthat could cause a small inaccuracy in the encoded texture coordinates. - Fixed a bug where viewing a model with transparent geometry would cause a crash. #4378
- Added
TrustedServercollection that controls which servers should havewithCredentialset totrueon XHR Requests. - Fixed billboard rotation when sized in meters. #3979
- Added
backgroundColorandborderWidthproperties towriteTextToCanvas. - Fixed timeline touch events. #4305
- Fixed a bug that was incorrectly clamping Latitudes in KML
<GroundOverlay>(s) to the range -PI..PI. Now correctly clamps to -PI/2..PI/2. - Added
CesiumMath.clampToLatitudeRange. A convenience function to clamp a passed radian angle to valid Latitudes. - Added
DebugCameraPrimitiveto visualize the view frustum of a camera.
1.25 - 2016-09-01
- Breaking changes
- The number and order of arguments passed to
KmlDataSourceunsupportedNodeEventlisteners have changed to allow better handling of unsupported KML Features. - Changed billboards and labels that are clamped to terrain to have the
verticalOriginset toCENTERby default instead ofBOTTOM.
- The number and order of arguments passed to
- Deprecated
- Deprecated
castShadowsandreceiveShadowsproperties fromModel,Primitive, andGlobe. They will be removed in 1.26. Useshadowsinstead with theShadowModeenum, e.g.model.shadows = ShadowMode.ENABLED. Viewer.terrainShadowsnow uses theShadowModeenum instead of a Boolean, e.g.viewer.terrainShadows = ShadowMode.RECEIVE_ONLY. Boolean support will be removed in 1.26.
- Deprecated
- Updated the online model converter to convert OBJ models to glTF with obj2gltf, as well as optimize existing glTF models with the gltf-pipeline. Added an option to bake ambient occlusion onto the glTF model. Also added an option to compress geometry using the glTF WEB3D_quantized_attributes extension.
- Improve label quality for oblique and italic fonts. #3782
- Added
shadowsproperty to the entity API forBox,Corridor,Cylinder,Ellipse,Ellipsoid,Polygon,Polyline,PolylineVolume,Rectangle, andWall. #4005 - Added
Camera.cancelFlightto cancel the existing camera flight if it exists. - Fix overlapping camera flights by always cancelling the previous flight when a new one is created.
- Camera flights now disable collision with the terrain until all of the terrain in the area has finished loading. This prevents the camera from being moved to be above lower resolution terrain when flying to a position close to higher resolution terrain. #4075
- Fixed a crash that would occur if quickly toggling imagery visibility. #4083
- Fixed an issue causing an error if KML has a clamped to ground LineString with color. #4131
- Added logic to
KmlDataSourcedefaulting KML Feature node to hidden unless all ancestors are visible. This better matches the KML specification. - Fixed position of KML point features with an altitude mode of
relativeToGroundandclampToGround. - Added
GeocoderViewModel.keepExpandedwhich when set to true will always keep the Geocoder in its expanded state. - Added support for
INTandUNSIGNED_INTinComponentDatatype. - Added
ComponentDatatype.fromNamefor getting aComponentDatatypefrom its name. - Fixed a crash caused by draping dynamic geometry over terrain. #4255
1.24 - 2016-08-01
- Added support in CZML for expressing
BillboardGraphics.alignedAxisas the velocity vector of an entity, usingvelocityReferencesyntax. - Added
urlSchemeZeroPaddingproperty toUrlTemplateImageryProviderto allow the numeric parts of a URL, such as{x}, to be padded with zeros to make them a fixed width. - Added leap second just prior to January 2017. #4092
- Fixed an exception that would occur when switching to 2D view when shadows are enabled. #4051
- Fixed an issue causing entities to disappear when updating multiple entities simultaneously. #4096
- Normalizing the velocity vector produced by
VelocityVectorPropertyis now optional. - Pack functions now return the result array #4156
- Added optional
rangeMaxparameter toMath.toSNormandMath.fromSNorm. #4121 - Removed
MapQuest OpenStreetMapfrom the list of demo base layers since direct tile access has been discontinued. See the MapQuest Developer Blog for details. - Fixed PolylinePipeline.generateArc to accept an array of heights when there's only one position #4155
1.23 - 2016-07-01
- Breaking changes
GroundPrimitive.initializeTerrainHeights()must be called and have the returned promise resolve before aGroundPrimitivecan be added synchronously.
- Added terrain clamping to entities, KML, and GeoJSON
- Added
heightReferenceproperty to point, billboard and model entities. - Changed corridor, ellipse, polygon and rectangle entities to conform to terrain by using a
GroundPrimitiveif its material is aColorMaterialPropertyinstance and it doesn't have aheightorextrudedHeight. Entities with any other type of material are not clamped to terrain. KMLDataSource- Point and Model features will always respect
altitudeMode. - Added
clampToGroundproperty. Whentrue, clampsPolygon,LineStringandLinearRingfeatures to the ground if theiraltitudeModeisclampToGround. For this case, lines use a corridor instead of a polyline.
- Point and Model features will always respect
GeoJsonDataSource- Points with a height will be drawn at that height; otherwise, they will be clamped to the ground.
- Added
clampToGroundproperty. Whentrue, clampsPolygonandLineStringfeatures to the ground. For this case, lines use a corridor instead of a polyline.
- Added Ground Clamping Sandcastle example.
- Added
- Improved performance and accuracy of polygon triangulation by using the earcut library. Loading a GeoJSON with polygons for each country was 2x faster.
- Fix some large polygon triangulations. #2788
- Added support for the glTF extension WEB3D_quantized_attributes. #3241
- Added CZML support for
Box,CorridorandCylinder. Added new CZML properties:Billboard:width,height,heightReference,scaleByDistance,translucencyByDistance,pixelOffsetScaleByDistance,imageSubRegionLabel:heightReference,translucencyByDistance,pixelOffsetScaleByDistanceModel:heightReference,maximumScalePoint:heightReference,scaleByDistance,translucencyByDistanceEllipsoid:subdivisions,stackPartitions,slicePartitions
- Added
rotatable2Dproperty to toScene,CesiumWidgetandViewerto enable map rotation in 2D mode. #3897 Camera.setViewandCamera.flyTonow use theorientation.headingparameter in 2D if the map is rotatable.- Added
Camera.changedevent that will fire whenever the camera has changed more thanCamera.percentageChanged.percentageChangedis in the range[0, 1]. - Zooming in toward a target point now keeps the target point at the same screen position. #4016
- Improved
GroundPrimitiveperformance. - Some incorrect KML (specifically KML that reuses IDs) is now parsed correctly.
- Added
unsupportedNodeEventtoKmlDataSourcethat is fired whenever an unsupported node is encountered. Clocknow keeps its configuration settings self-consistent. Previously, this was done byAnimationViewModeland could become inconsistent in certain cases. #4007- Updated Google Cardboard Sandcastle example.
- Added hot air balloon sample model.
- Fixed handling of sampled Rectangle coordinates in CZML. #4033
- Fix "Cannot read property 'x' of undefined" error when calling SceneTransforms.wgs84ToWindowCoordinates in certain cases. #4022
- Re-enabled mouse inputs after a specified number of milliseconds past the most recent touch event.
- Exposed a parametric ray-triangle intersection test to the API as
IntersectionTests.rayTriangleParametric. - Added
packArrayandunpackArrayfunctions toCartesian2,Cartesian3, andCartesian4.
1.22.2 - 2016-06-14
- This is an npm only release to fix the improperly published 1.22.1. There were no code changes.
1.22.1 - 2016-06-13
- Fixed default Bing Key and added a watermark to notify users that they need to sign up for their own key.
1.22 - 2016-06-01
- Breaking changes
KmlDataSourcenow requiresoptions.cameraandoptions.canvas.
- Added shadows
- See the Sandcastle demo: Shadows.
- Added
Viewer.shadowsandViewer.terrainShadows. Both are off by default. - Added
Viewer.shadowMapandScene.shadowMapfor accessing the scene's shadow map. - Added
castShadowsandreceiveShadowsproperties toModelandEntity.model, and options to theModelconstructor andModel.fromGltf. - Added
castShadowsandreceiveShadowsproperties toPrimitive, and options to thePrimitiveconstructor. - Added
castShadowsandreceiveShadowsproperties toGlobe.
- Added
heightReferenceto models so they can be drawn on terrain. - Added support for rendering models in 2D and Columbus view.
- Added option to enable sun position based atmosphere color when
Globe.enableLightingistrue. 3439 - Improved KML NetworkLink compatibility by supporting the
Urltag. #3895. - Added
VelocityVectorPropertyso billboard's aligned axis can follow the velocity vector. #3908 - Improve memory management for entity billboard/label/point/path visualization.
- Added
terrainProviderChangedevent toSceneandGlobe - Added support for hue, saturation, and brightness color shifts in the atmosphere in
SkyAtmosphere. See the new Sandcastle example: Atmosphere Color. #3439 - Fixed exaggerated terrain tiles disappearing. #3676
- Fixed a bug that could cause incorrect normals to be computed for exaggerated terrain, especially for low-detail tiles. #3904
- Fixed a bug that was causing errors to be thrown when picking and terrain was enabled. #3779
- Fixed a bug that was causing the atmosphere to disappear when only atmosphere is visible. #3347
- Fixed infinite horizontal 2D scrolling in IE/Edge. #3893
- Fixed a bug that would cause a crash is the camera was on the IDL in 2D. #3951
- Fixed issue where a repeating model animation doesn't play when the clock is set to a time before the model was created. #3932
- Fixed
Billboard.computeScreenSpacePositionreturning the wrong y coordinate. #3920 - Fixed issue where labels were disappearing. #3730
- Fixed issue where billboards on terrain didn't always update when the terrain provider was changed. #3921
- Fixed issue where
Matrix4.fromCamerawas taking eye/target instead of position/direction. #3927 - Added
Scene.nearToFarDistance2Dthat determines the size of each frustum of the multifrustum in 2D. - Added
Matrix4.computeView. - Added
CullingVolume.fromBoundingSphere. - Added
debugShowShadowVolumetoGroundPrimitive. - Fix issue with disappearing tiles on Linux. #3889
1.21 - 2016-05-02
- Breaking changes
- Removed
ImageryMaterialProperty.alpha. UseImageryMaterialProperty.color.alphainstead. - Removed
OpenStreetMapImageryProvider. UsecreateOpenStreetMapImageryProviderinstead.
- Removed
- Added ability to import and export Sandcastle example using GitHub Gists. #3795
- Added
PolygonGraphics.closeTop,PolygonGraphics.closeBottom, andPolygonGeometryoptions for creating an extruded polygon without a top or bottom. #3879 - Added support for polyline arrow material to
CzmlDataSource#3860 - Fixed issue causing the sun not to render. #3801
- Fixed issue where
Camera.flyTowould not work with a rectangle in 2D. #3688 - Fixed issue causing the fog to go dark and the atmosphere to flicker when the camera clips the globe. #3178
- Fixed a bug that caused an exception and rendering to stop when using
ArcGisMapServerImageryProviderto connect to a MapServer specifying the Web Mercator projection and a fullExtent bigger than the valid extent of the projection. #3854 - Fixed issue causing an exception when switching scene modes with an active KML network link. #3865
1.20 - 2016-04-01
- Breaking changes
- Removed
TileMapServiceImageryProvider. UsecreateTileMapServiceImageryProviderinstead. - Removed
GroundPrimitive.geometryInstance. UseGroundPrimitive.geometryInstancesinstead. - Removed
definedNotNull. Usedefinedinstead. - Removed ability to rotate the map in 2D due to the new infinite 2D scrolling feature.
- Removed
- Deprecated
- Deprecated
ImageryMaterialProperty.alpha. It will be removed in 1.21. UseImageryMaterialProperty.color.alphainstead.
- Deprecated
- Added infinite horizontal scrolling in 2D.
- Added a code example to Sandcastle for the new 1-meter Pennsylvania terrain service.
- Fixed loading for KML
NetworkLinkto not append a?if there isn't a query string. - Fixed handling of non-standard KML
styleUrlreferences within aStyleMap. - Fixed issue in KML where StyleMaps from external documents fail to load.
- Added translucent and colored image support to KML ground overlays
- Fix bug when upsampling exaggerated terrain where the terrain heights were exaggerated at twice the value. #3607
- All external urls are now https by default to make Cesium work better with non-server-based applications. #3650
GeoJsonDataSourcenow handles CRSurn:ogc:def:crs:EPSG::4326- Fixed
TimeIntervalCollection.removeIntervalbug that resulted in too many intervals being removed. GroundPrimitivethrows aDeveloperErrorwhen passed an unsupported geometry type instead of crashing.- Fix issue with billboard collections that have at least one billboard with an aligned axis and at least one billboard without an aligned axis. #3318
- Fix a race condition that would cause the terrain to continue loading and unloading or cause a crash when changing terrain providers. #3690
- Fix issue where the
GroundPrimitivevolume was being clipped by the far plane. #3706 - Fixed issue where
Camera.computeViewRectanglewas incorrect when crossing the international date line. #3717 - Added
Rectangleresult parameter toCamera.computeViewRectangle. - Fixed a reentrancy bug in
EntityCollection.collectionChanged. #3739 - Fixed a crash that would occur if you added and removed an
Entitywith a path without ever actually rendering it. #3738 - Fixed issue causing parts of geometry and billboards/labels to be clipped. #3748
- Fixed bug where transparent image materials were drawn black.
- Fixed
Color.fromCssColorStringfrom reusing the inputresultalpha value in some cases.
1.19 - 2016-03-01
- Breaking changes
PolygonGeometrynow changes the inputCartesian3values ofoptions.positionsso that they are on the ellipsoid surface. This only affects polygons created synchronously withoptions.perPositionHeight = falsewhen the positions have a non-zero height and the same positions are used for multiple entities. In this case, make a copy of theCartesian3values used for the polygon positions.
- Deprecated
- Deprecated
KmlDataSourcetaking a proxy object. It will throw an exception in 1.21. It now should take aoptionsobject with requiredcameraandcanvasparameters. - Deprecated
definedNotNull. It will be removed in 1.20. Usedefinedinstead, which now checks fornullas well asundefined.
- Deprecated
- Improved KML support.
- Added support for
NetworkLinkrefresh modesonInterval,onExpireandonStop. Includes support forviewboundScale,viewFormat,httpQuery. - Added partial support for
NetworkLinkControlincludingminRefreshPeriod,cookieandexpires. - Added support for local
StyleMap. Thehighlightstyle is still ignored. - Added support for
root://URLs. - Added more warnings for unsupported features.
- Improved style processing in IE.
- Added support for
Viewer.zoomToandViewer.flyTonow accept anImageryLayerinstance as a valid parameter and will zoom to the extent of the imagery.- Added
Camera.flyHomefunction for resetting the camera to the home view. Camera.flyTonow honors max and min zoom settings inScreenSpaceCameraController.- Added
showproperty toCzmlDataSource,GeoJsonDataSource,KmlDataSource,CustomDataSource, andEntityCollectionfor easily toggling display of entire data sources. - Added
ownerproperty toCompositeEntityCollection. - Added
DataSouceDisplay.readyfor determining whether or not static data associated with the Entity API has been rendered. - Fix an issue when changing a billboard's position property multiple times per frame. #3511
- Fixed texture coordinates for polygon with position heights.
- Fixed issue that kept
GroundPrimitivewith anEllipseGeometryfrom having arotation. - Fixed crash caused when drawing
CorridorGeometryandCorridorOutlineGeometrysynchronously. - Added the ability to create empty geometries. Instead of throwing
DeveloperError,undefinedis returned. - Fixed flying to
latitude, longitude, heightin the Geocoder. - Fixed bug in
IntersectionTests.lineSegmentSpherewhere the ray origin was not set. - Added
lengthtoMatrix2,Matrix3andMatrix4so these can be used as array-like objects. - Added
Color.add,Color.subtract,Color.multiply,Color.divide,Color.mod,Color.multiplyByScalar, andColor.divideByScalarfunctions to perform arithmetic operations on colors. - Added optional
resultparameter toColor.fromRgba,Color.fromHslandColor.fromCssColorString. - Fixed bug causing
navigator is not definedreference error when Cesium is used with Node.js. - Upgraded Knockout from version 3.2.0 to 3.4.0.
- Fixed hole that appeared in the top of in dynamic ellipsoids
1.18 - 2016-02-01
- Breaking changes
- Removed support for
CESIUM_binary_glTF. UseKHR_binary_glTFinstead, which is the default for the online COLLADA-to-glTF converter.
- Removed support for
- Deprecated
- Deprecated
GroundPrimitive.geometryInstance. It will be removed in 1.20. UseGroundPrimitive.geometryInstancesinstead. - Deprecated
TileMapServiceImageryProvider. It will be removed in 1.20. UsecreateTileMapServiceImageryProviderinstead.
- Deprecated
- Reduced the amount of CPU memory used by terrain by ~25% in Chrome.
- Added a Sandcastle example to "star burst" overlapping billboards and labels.
- Added
VRButtonwhich is a simple, single-button widget that toggles VR mode. It is off by default. To enable the button, set thevrButtonoption toViewertotrue. Only Cardboard for mobile is supported. More VR devices will be supported when the WebVR API is more stable. - Added
Scene.useWebVRto switch the scene to use stereoscopic rendering. - Cesium now honors
window.devicePixelRatioon browsers that support the CSSimageRenderingattribute. This greatly improves performance on mobile devices and high DPI displays by rendering at the browser-recommended resolution. This also reduces bandwidth usage and increases battery life in these cases. To enable the previous behavior, use the following code:if (Cesium.FeatureDetection.supportsImageRenderingPixelated()) { viewer.resolutionScale = window.devicePixelRatio; } GroundPrimitivenow supports batching geometry for better performance.- Improved compatibility with glTF KHR_binary_glTF and KHR_materials_common extensions
- Added
ImageryLayer.getViewableRectangleto make it easy to get the effective bounds of an imagery layer. - Improved compatibility with glTF KHR_binary_glTF and KHR_materials_common extensions
- Fixed a picking issue that sometimes prevented objects being selected. #3386
- Fixed cracking between tiles in 2D. #3486
- Fixed creating bounding volumes for
GroundPrimitives whose containing rectangle has a width greater than pi. - Fixed incorrect texture coordinates for polygons with large height.
- Fixed camera.flyTo not working when in 2D mode and only orientation changes
- Added
UrlTemplateImageryProvider.reinitializefor changing imagery provider options without creating a new instance. UrlTemplateImageryProvidernow accepts a promise to anoptionsobject in addition to taking the object directly.- Fixed a bug that prevented WMS feature picking from working with THREDDS XML and msGMLOutput in Internet Explorer 11.
- Added
Scene.useDepthPickingto enable or disable picking using the depth buffer. #3390 - Added
BoundingSphere.fromEncodedCartesianVerticesto create bounding volumes from parallel arrays of the upper and lower bits ofEncodedCartesian3s. - Added helper functions:
getExtensionFromUri,getAbsoluteUri, andMath.logBase. - Added
Rectangle.unionandRectangle.expand. - TMS support now works with newer versions of gdal2tiles.py generated layers.
createTileMapServiceImageryProvider. Tilesets generated with older gdal2tiles.py versions may need to have theflipXY : trueoption set to load correctly.
1.17 - 2016-01-04
- Breaking changes
- Removed
Camera.viewRectangle. UseCamera.setView({destination: rectangle})instead. - Removed
RectanglePrimitive. UseRectangleGeometryorEntity.rectangleinstead. - Removed
Polygon. UsePolygonGeometryorEntity.polygoninstead. - Removed
OrthographicFrustum.getPixelSize. UseOrthographicFrustum.getPixelDimensionsinstead. - Removed
PerspectiveFrustum.getPixelSize. UsePerspectiveFrustum.getPixelDimensionsinstead. - Removed
PerspectiveOffCenterFrustum.getPixelSize. UsePerspectiveOffCenterFrustum.getPixelDimensionsinstead. - Removed
Scene\HeadingPitchRange. UseCore\HeadingPitchRangeinstead. - Removed
jsonp. UseloadJsonpinstead. - Removed
HeightmapTessellatorfrom the public API. It is an implementation details. - Removed
TerrainMeshfrom the public API. It is an implementation details.
- Removed
- Reduced the amount of GPU and CPU memory used by terrain by using compression. The CPU memory was reduced by up to 40%.
- Added the ability to manipulate
Modelnode transformations via CZML and the Entity API. See the new Sandcastle example: CZML Model - Node Transformations. #3316 - Added
Globe.tileLoadProgressEvent, which is raised when the length of the tile load queue changes, enabling incremental loading indicators. - Added support for msGMLOutput and Thredds server feature information formats to
GetFeatureInfoFormatandWebMapServiceImageryProvider. - Added dynamic
enableFeaturePickingtoggle to all ImageryProviders that support feature picking. - Fixed disappearing terrain while fog is active. #3335
- Fixed short segments in
CorridorGeometryandPolylineVolumeGeometry. #3293 - Fixed
CorridorGeometrywith nearly colinear points. #3320 - Added missing points to
EllipseGeometryandEllipseOutlineGeometry. #3078 Rectangle.fromCartographicArraynow uses the smallest rectangle regardess of whether or not it crosses the international date line. #3227- Added
TranslationRotationScaleproperty, which represents an affine transformation defined by a translation, rotation, and scale. - Added
Matrix4.fromTranslationRotationScale. - Added
NodeTransformationProperty, which is aPropertyvalue that is defined by independenttranslation,rotation, andscalePropertyinstances. - Added
PropertyBag, which is aPropertywhose value is a key-value mapping of property names to the computed value of other properties. - Added
ModelGraphics.runAnimationswhich is a booleanPropertyindicating if all model animations should be started after the model is loaded. - Added
ModelGraphics.nodeTransformationswhich is aPropertyBagofTranslationRotationScaleproperties to be applied to a loaded model. - Added CZML support for new
runAnimationsandnodeTransformationsproperties on themodelpacket.
1.16 - 2015-12-01
- Deprecated
- Deprecated
HeightmapTessellator. It will be removed in 1.17. - Deprecated
TerrainMesh. It will be removed in 1.17. - Deprecated
OpenStreetMapImageryProvider. It will be removed in 1.18. UsecreateOpenStreetMapImageryProviderinstead.
- Deprecated
- Improved terrain performance by up to 35%. Added support for fog near the horizon, which improves performance by rendering less terrain tiles and reduces terrain tile requests. This is enabled by default. See
Scene.fogfor options. #3154 - Added terrain exaggeration. Enabled on viewer creation with the exaggeration scalar as the
terrainExaggerationoption. - Added support for incrementally loading textures after a Model is ready. This allows the Model to be visible as soon as possible while its textures are loaded in the background.
ImageMaterialProperty.imagenow accepts anHTMLVideoElement. You can also assign a video element directly to an Entitymaterialproperty.Materialimage uniforms now accept andHTMLVideoElementanywhere it could previously take aCanvaselement.- Added
VideoSynchronizerhelper object for keeping anHTMLVideoElementin sync with a scene's clock. - Fixed an issue with loading skeletons for skinned glTF models. #3224
- Fixed an issue with tile selection when below the surface of the ellipsoid. #3170
- Added
Cartographic.fromCartesianfunction. - Added
createOpenStreetMapImageryProviderfunction to replace theOpenStreetMapImageryProviderclass. This function returns a constructedUrlTemplateImageryProvider. GeoJsonDataSource.loadnow takes an optionaldescribePropertyfunction for generating feature description properties. #3140- Added
ImageryProvider.readyPromiseandTerrainProvider.readyPromiseand implemented it in all terrain and imagery providers. This is a promise which resolves whenreadybecomes true and rejected if there is an error during initialization. #3175 - Fixed an issue where the sun texture is not generated correctly on some mobile devices. #3141
- Fixed a bug that caused setting
Entity.parenttoundefinedto throw an exception. #3169 - Fixed a bug which caused
Entitypolyline graphics to be incorrect when a scene's ellipsoid was not WGS84. #3174 - Entities have a reference to their entity collection and to their owner (usually a data source, but can be a
CompositeEntityCollection). - Added
ImageMaterialProperty.alphaand aalphauniform toImageandMaterialtypes to control overall image opacity. It defaults to 1.0, fully opaque. - Added
Camera.getPixelSizefunction to get the size of a pixel in meters based on the current view. - Added
Camera.distanceToBoundingSpherefunction. - Added
BoundingSphere.fromOrientedBoundingBoxfunction. - Added utility function
getBaseUri, which given a URI with or without query parameters, returns the base path of the URI. - Added
Queue.peekto return the item at the front of a Queue. - Fixed
JulianDate.fromIso8601so that it correctly parses theYYYY-MM-DDThh:mmTZDformat. - Added
Model.maximumScaleandModelGraphics.maximumScaleproperties, giving an upper limit for minimumPixelSize. - Fixed glTF implementation to read the version as a string as per the specification and to correctly handle backwards compatibility for axis-angle rotations in glTF 0.8 models.
- Fixed a bug in the deprecated
jsonpthat prevented it from returning a promise. Its replacement,loadJsonp, was unaffected. - Fixed a bug where loadWithXhr would reject the returned promise with successful HTTP responses (2xx) that weren't 200.
1.15 - 2015-11-02
- Breaking changes
- Deleted old
<subfolder>/package.jsonand*.profile.jsfiles, not used since Cesium moved away from a Dojo-based build years ago. This will allow future compatibility with newer systems like Browserify and Webpack.
- Deleted old
- Deprecated
- Deprecated
Camera.viewRectangle. It will be removed in 1.17. UseCamera.setView({destination: rectangle})instead. - The following options to
Camera.setViewhave been deprecated and will be removed in 1.17:position. Usedestinationinstead.positionCartographic. Convert to aCartesian3and usedestinationinstead.heading,pitchandroll. Useorientation.heading/pitch/rollinstead.
- Deprecated
CESIUM_binary_glTFextension support for glTF models. KHR_binary_glTF should be used instead.CESIUM_binary_glTFwill be removed in 1.18. Reconvert models using the online model converter. - Deprecated
RectanglePrimitive. It will be removed in 1.17. UseRectangleGeometryorEntity.rectangleinstead. - Deprecated
EllipsoidPrimitive. It will be removed in 1.17. UseEllipsoidGeometryorEntity.ellipsoidinstead. - Made
EllipsoidPrimitiveprivate, useEllipsoidGeometryorEntity.ellipsoidinstead. - Deprecated
BoxGeometry.minimumCornerandBoxGeometry.maximumCorner. These will be removed in 1.17. UseBoxGeometry.minimumandBoxGeometry.maximuminstead. - Deprecated
BoxOutlineGeometry.minimumCornerandBoxOutlineGeometry.maximumCorner. These will be removed in 1.17. UseBoxOutlineGeometry.minimumandBoxOutlineGeometry.maximuminstead. - Deprecated
OrthographicFrustum.getPixelSize. It will be removed in 1.17. UseOrthographicFrustum.getPixelDimensionsinstead. - Deprecated
PerspectiveFrustum.getPixelSize. It will be removed in 1.17. UsePerspectiveFrustum.getPixelDimensionsinstead. - Deprecated
PerspectiveOffCenterFrustum.getPixelSize. It will be removed in 1.17. UsePerspectiveOffCenterFrustum.getPixelDimensionsinstead. - Deprecated
Scene\HeadingPitchRange. It will be removed in 1.17. UseCore\HeadingPitchRangeinstead. - Deprecated
jsonp. It will be removed in 1.17. UseloadJsonpinstead.
- Deprecated
- Added support for the glTF 1.0 draft specification.
- Added support for the glTF extensions KHR_binary_glTF and KHR_materials_common.
- Decreased GPU memory usage in
BillboardCollectionandLabelCollectionby using WebGL instancing. - Added CZML examples to Sandcastle. See the new CZML tab.
- Changed
Camera.setViewto take the same parameter options asCamera.flyTo.options.destinationtakes a rectangle,options.orientationworks with heading/pitch/roll or direction/up, andoptions.endTransformwas added. #3100 - Fixed token issue in
ArcGisMapServerImageryProvider. ImageryLayerFeatureInfonow has animageryLayerproperty, indicating the layer that contains the feature.- Made
TileMapServiceImageryProviderandCesiumTerrainProviderwork properly when the provided base url contains query parameters and fragments. - The WebGL setting of
failIfMajorPerformanceCaveatnow defaults tofalse, which is the WebGL default. This improves compatibility with out-of-date drivers and remote desktop sessions. Cesium will run slower in these cases instead of simply failing to load. #3108 - Fixed the issue where the camera inertia takes too long to finish causing the camera move events to fire after it appears to. #2839
- Make KML invalid coordinate processing match Google Earth behavior. #3124
- Added
BoxOutlineGeometry.fromAxisAlignedBoundingBoxandBoxGeometry.fromAxisAlignedBoundingBoxfunctions. - Switched to gulp for all build tasks.
Javaandantare no longer required to develop Cesium. #3106 - Updated
requirejsfrom 2.1.9 to 2.1.20. #3107 - Updated
almondfrom 0.2.6 to 0.3.1. #3107
1.14 - 2015-10-01
- Fixed issues causing the terrain and sky to disappear when the camera is near the surface. #2415 and #2271
- Changed the
ScreenSpaceCameraController.minimumZoomDistancedefault from20.0to1.0. - Added
Billboard.sizeInMeters.truesets the billboard size to be measured in meters; otherwise, the size of the billboard is measured in pixels. Also added support for billboardsizeInMetersto entities and CZML. - Fixed a bug in
AssociativeArraythat would cause unbounded memory growth when adding and removing lots of items. - Provided a workaround for Safari 9 where WebGL constants can't be accessed through
WebGLRenderingContext. Now constants are hard-coded inWebGLConstants. #2989 - Added a workaround for Chrome 45, where the first character in a label with a small font size would not appear. #3011
- Added
subdomainsoption to theWebMapTileServiceImageryProviderconstructor. - Added
subdomainsoption to theWebMapServiceImageryProviderconstructor. - Fix zooming in 2D when tracking an object. The zoom was based on location rather than the tracked object. #2991
- Added
options.creditparameter toMapboxImageryProvider. - Fixed an issue with drill picking at low frame rates that would cause a crash. #3010
- Fixed a bug that prevented
setViewfrom working across all scene modes. - Fixed a bug that caused
camera.positionWCto occasionally return the incorrect value. - Used all the template urls defined in the CesiumTerrain provider.#3038
1.13 - 2015-09-01
-
Breaking changes
- Remove deprecated
AxisAlignedBoundingBox.intersectandBoundingSphere.intersect. UseBoundingSphere.intersectPlaneinstead. - Remove deprecated
getFeatureInfoAsGeoJsonandgetFeatureInfoAsXmlconstructor parameters fromWebMapServiceImageryProvider.
- Remove deprecated
-
Added support for
GroundPrimitivewhich works much likePrimitivebut drapes geometry over terrain. Valid geometries that can be draped on terrain areCircleGeometry,CorridorGeometry,EllipseGeometry,PolygonGeometry, andRectangleGeometry. Because of the cutting edge nature of this feature in WebGL, it requires the EXT_frag_depth extension, which is currently only supported in Chrome, Firefox, and Edge. Apple support is expected in iOS 9 and MacOS Safari 9. Android support varies by hardware and IE11 will most likely never support it. You can use webglreport.com to verify support for your hardware. Finally, this feature is currently only supported in Primitives and not yet available via the Entity API. #2865 -
Added
Scene.groundPrimitives, which is a primitive collection likeScene.primitives, but forGroundPrimitiveinstances. It allows custom z-ordering. #2960 For example:// draws the ellipse on top of the rectangle var ellipse = scene.groundPrimitives.add(new Cesium.GroundPrimitive({...})); var rectangle = scene.groundPrimitives.add(new Cesium.GroundPrimitive({...})); // move the rectangle to draw on top of the ellipse scene.groundPrimitives.raise(rectangle); -
Added
reverseZtag toUrlTemplateImageryProvider. #2961 -
Added
BoundingSphere.isOccludedandOrientedBoundingBox.isOccludedto determine if the volumes are occluded by anOccluder. -
Added
distanceSquaredToandcomputePlaneDistancesfunctions toOrientedBoundingBox. -
Fixed a GLSL precision issue that enables Cesium to support Mali-400MP GPUs and other mobile GPUs where GLSL shaders did not previously compile. #2984
-
Fixed an issue where extruded
PolygonGeometrywas always extruding to the ellipsoid surface instead of specified height. #2923 -
Fixed an issue where non-feature nodes prevented KML documents from loading. #2945
-
Fixed an issue where
JulianDatewould not parse certain dates properly. #405
1.12 - 2015-08-03
- Breaking changes
- Remove deprecated
ObjectOrientedBoundingBox. UseOrientedBoundingBoxinstead.
- Remove deprecated
- Added
MapboxImageryProviderto load imagery from Mapbox. - Added
maximumHeightoption toViewer.flyTo. #2868 - Added picking support to
UrlTemplateImageryProvider. - Added ArcGIS token-based authentication support to
ArcGisMapServerImageryProvider. - Added proxy support to
ArcGisMapServerImageryProviderforpickFeaturesrequests. - The default
CTRL + Left Click Dragmouse behavior is now duplicated forCTRL + Right Click Dragfor better compatibility with Firefox on Mac OS #2872. - Fixed incorrect texture coordinates for
WallGeometry#2872 - Fixed
WallGeometrybug that caused walls covering a short distance not to render. #2897 - Fixed
PolygonGeometryclockwise winding order bug. - Fixed extruded
RectangleGeometrybug for small heights. #2823 - Fixed
BillboardCollectionbounding sphere for billboards with a non-center vertical origin. #2894 - Fixed a bug that caused
Camera.positionCartographicto be incorrect. #2838 - Fixed calling
Scene.pickPositionafter callingScene.drillPick. #2813 - The globe depth is now rendered during picking when
Scene.depthTestAgainstTerrainistrueso objects behind terrain are not picked. - Fixed Cesium.js failing to parse in IE 8 and 9. While Cesium doesn't work in IE versions less than 11, this allows for more graceful error handling.
1.11 - 2015-07-01
- Breaking changes
- Removed
Scene.fxaaOrderIndependentTranslucency, which was deprecated in 1.10. UseScene.fxaawhich is nowtrueby default. - Removed
Camera.clone, which was deprecated in 1.10.
- Removed
- Deprecated
- The STK World Terrain url
cesiumjs.org/stk-terrain/worldhas been deprecated, useassets.agi.com/stk-terrain/worldinstead. A redirect will be in place until 1.14. - Deprecated
AxisAlignedBoundingBox.intersectandBoundingSphere.intersect. These will be removed in 1.13. UseAxisAlignedBoundingBox.intersectPlaneandBoundingSphere.intersectPlaneinstead. - Deprecated
ObjectOrientedBoundingBox. It will be removed in 1.12. UseOrientedBoundingBoxinstead.
- The STK World Terrain url
- Improved camera flights. #2825
- The camera now zooms to the point under the mouse cursor.
- Added a new camera mode for horizon views. When the camera is looking at the horizon and a point on terrain above the camera is picked, the camera moves in the plane containing the camera position, up and right vectors.
- Improved terrain and imagery performance and reduced tile loading by up to 50%, depending on the camera view, by using the new
OrientedBoundingBoxfor view frustum culling. See Terrain Culling with Oriented Bounding Boxes. - Added
UrlTemplateImageryProvider. This new imagery provider allows access to a wide variety of imagery sources, including OpenStreetMap, TMS, WMTS, WMS, WMS-C, and various custom schemes, by specifying a URL template to use to request imagery tiles. - Fixed flash/streak rendering artifacts when picking. #2790, #2811
- Fixed 2D and Columbus view lighting issue. #2635.
- Fixed issues with material caching which resulted in the inability to use an image-based material multiple times. #2821
- Improved
Camera.viewRectangleso that the specified rectangle is now better centered on the screen. #2764 - Fixed a crash when
viewer.zoomToorviewer.flyTowere called immediately before or during a scene morph. #2775 - Fixed an issue where
Camerafunctions would throw an exception if used from within aScene.morphCompletecallback. #2776 - Fixed camera flights that ended up at the wrong position in Columbus view. #802
- Fixed camera flights through the map in 2D. #804
- Fixed strange camera flights from opposite sides of the globe. #1158
- Fixed camera flights that wouldn't fly to the home view after zooming out past it. #1400
- Fixed flying to rectangles that cross the IDL in Columbus view and 2D. #2093
- Fixed flights with a pitch of -90 degrees. #2468
Modelcan now load Binary glTF from aUint8Array.- Fixed a bug in
ImageryLayerthat could cause an exception and the render loop to stop when the base layer did not cover the entire globe. - The performance statistics displayed when
scene.debugShowFramesPerSecond === truecan now be styled using thecesium-performanceDisplayCSS classes inshared.css#2779. - Added
Plane.fromCartesian4. - Added
Plane.ORIGIN_XY_PLANE/ORIGIN_YZ_PLANE/ORIGIN_ZX_PLANEconstants for commonly-used planes. - Added
Matrix2/Matrix3/Matrix4.ZEROconstants. - Added
Matrix2/Matrix3.multiplyByScalefor multiplying against non-uniform scales. - Added
projectPointToNearestOnPlaneandprojectPointsToNearestOnPlanetoEllipsoidTangentPlaneto project 3D points to the nearest 2D point on anEllipsoidTangentPlane. - Added
EllipsoidTangentPlane.planeproperty to get thePlanefor the tangent plane. - Added
EllipsoidTangentPlane.xAxis/yAxis/zAxisproperties to get the local coordinate system of the tangent plane. - Add
QuantizedMeshTerrainDataconstructor argumentorientedBoundingBox. - Add
TerrainMesh.orientedBoundingBoxwhich holds theOrientedBoundingBoxfor the mesh for a single terrain tile.
1.10 - 2015-06-01
- Breaking changes
- Existing bookmarks to documentation of static members have changed #2757.
- Removed
InfoBoxViewModel.defaultSanitizer,InfoBoxViewModel.sanitizer, andCesium.sanitize, which was deprecated in 1.7. - Removed
InfoBoxViewModel.descriptionRawHtml, which was deprecated in 1.7. UseInfoBoxViewModel.descriptioninstead. - Removed
GeoJsonDataSource.fromUrl, which was deprecated in 1.7. UseGeoJsonDataSource.loadinstead. Unlike fromUrl, load can take either a url or parsed JSON object and returns a promise to a new instance, rather than a new instance. - Removed
GeoJsonDataSource.prototype.loadUrl, which was deprecated in 1.7. Instead, pass a url as the first parameter toGeoJsonDataSource.prototype.load. - Removed
CzmlDataSource.prototype.loadUrl, which was deprecated in 1.7. Instead, pass a url as the first parameter toCzmlDataSource.prototype.load. - Removed
CzmlDataSource.prototype.processUrl, which was deprecated in 1.7. Instead, pass a url as the first parameter toCzmlDataSource.prototype.process. - Removed the
sourceUriparameter to allCzmlDataSourceload and process functions, which was deprecated in 1.7. Instead pass anoptionsobject withsourceUriproperty. - Removed
PolygonGraphics.positionswhich was deprecated in 1.6. Instead, usePolygonGraphics.hierarchy. - Existing bookmarks to documentation of static members changed. #2757
- Deprecated
WebMapServiceImageryProviderconstructor parametersoptions.getFeatureInfoAsGeoJsonandoptions.getFeatureInfoAsXmlwere deprecated and will be removed in Cesium 1.13. Useoptions.getFeatureInfoFormatsinstead.- Deprecated
Camera.clone. It will be removed in 1.11. - Deprecated
Scene.fxaaOrderIndependentTranslucency. It will be removed in 1.11. UseScene.fxaawhich is nowtrueby default. - The Cesium sample models are now in the Binary glTF format (
.bgltf). Cesium will also include the models as plain glTF (.gltf) until 1.13. Cesium support for.gltfwill not be removed.
- Added
viewquery parameter to the CesiumViewer app, which sets the initial camera position using longitude, latitude, height, heading, pitch and roll. For example:http://cesiumjs.org/Cesium/Build/Apps/CesiumViewer/index.html/index.html?view=-75.0,40.0,300.0,9.0,-13.0,3.0 - Added
Billboard.heightReferenceandLabel.heightReferenceto clamp billboards and labels to terrain. - Added support for the CESIUM_binary_glTF extension for loading binary blobs of glTF to
Model. See Faster 3D Models with Binary glTF. - Added support for the CESIUM_RTC glTF extension for high-precision rendering to
Model. - Added
PointPrimitiveandPointPrimitiveCollection, which are faster and use less memory than billboards with circles. - Changed
Entity.pointto use the newPointPrimitiveinstead of billboards. This does not change theEntity.pointAPI. - Added
Scene.pickPositionto reconstruct the WGS84 position from window coordinates. - The default mouse controls now support panning and zooming on 3D models and other opaque geometry.
- Added
Camera.moveStartandCamera.moveEndevents. - Added
GeocoderViewModel.completeevent. Triggered after the camera flight is completed. KmlDataSourcecan now load a KML file that uses explicit XML namespacing, e.g.kml:Document.- Setting
Entity.shownow properly toggles the display of all descendant entities, previously it only affected its direct children. - Fixed a bug that sometimes caused
Entityinstances withshowset to false to reappear when newEntitygeometry is added. #2686 - Added a
Rotationobject which, when passed toSampledProperty, always interpolates values towards the shortest angle. Also hooked up CZML to useRotationfor all time-dynamic rotations. - Fixed a bug where moon rendered in front of foreground geometry. #1964
- Fixed a bug where the sun was smeared when the skybox/stars was disabled. #1829
TileProviderErrornow optionally takes anerrorparameter with more details of the error or exception that occurred.ImageryLayerpasses that information through when tiles fail to load. This allows tile provider error handling to take a different action when a tile returns a 404 versus a 500, for example.ArcGisMapServerImageryProvidernow has amaximumLevelconstructor parameter.ArcGisMapServerImageryProviderpicking now works correctly when thelayersparameter is specified. Previously, it would pick from all layers even if only displaying a subset.WebMapServiceImageryProvider.pickFeaturesnow works with WMS servers, such as Google Maps Engine, that can only return feature information in HTML format.WebMapServiceImageryProvidernow accepts an array ofGetFeatureInfoFormatinstances that it will use to obtain information about the features at a given position on the globe. This enables an arbitraryinfo_formatto be passed to the WMS server, and an arbitrary JavaScript function to be used to interpret the response.- Fixed a crash caused by
ImageryLayerattempting to generate mipmaps for textures that are not a power-of-two size. - Fixed a bug where
ImageryLayerCollection.pickImageryLayerFeatureswould return incorrect results when picking from a terrain tile that was partially covered by correct-level imagery and partially covered by imagery from an ancestor level. - Fixed incorrect counting of
debug.tilesWaitingForChildreninQuadtreePrimitive. - Added
throttleRequestsByServer.maximumRequestsPerServerproperty. - Changed
createGeometryto load individual-geometry workers using a CommonJS-stylerequirewhen run in a CommonJS-like environment. - Added
buildModuleUrl.setBaseUrlfunction to allow the Cesium base URL to be set without the use of the global CESIUM_BASE_URL variable. - Changed
ThirdParty/zipto defer its call tobuildModuleUrluntil it is needed, rather than executing during module loading. - Added optional drilling limit to
Scene.drillPick. - Added optional
ellipsoidparameter to construction options of imagery and terrain providers that were lacking it. Note that terrain bounding spheres are precomputed on the server, so any supplied terrain ellipsoid must match the one used by the server. - Added debug option to
Sceneto show the depth buffer information for a specified view frustum slice and exposed capability inCesiumInspectorwidget. - Added new leap second for 30 June 2015 at UTC 23:59:60.
- Upgraded Autolinker from version 0.15.2 to 0.17.1.
1.9 - 2015-05-01
- Breaking changes
- Removed
ColorMaterialProperty.fromColor, previously deprecated in 1.6. Pass aColordirectly to theColorMaterialPropertyconstructor instead. - Removed
CompositeEntityCollection.entitiesandEntityCollection.entities, both previously deprecated in 1.6. UseCompositeEntityCollection.valuesandEntityCollection.valuesinstead. - Removed
DataSourceDisplay.getSceneandDataSourceDisplay.getDataSources, both previously deprecated in 1.6. UseDataSourceDisplay.sceneandDataSourceDisplay.dataSourcesinstead. Entityno longer takes a string id as its constructor argument. Pass an options object withidproperty instead. This was previously deprecated in 1.6.- Removed
Model.readyToRender, previously deprecated in 1.6. UseModel.readyPromiseinstead.
- Removed
- Entity
materialproperties andMaterialuniform values can now take acanvaselement in addition to an image or url. #2667 - Fixed a bug which caused
Entity.viewFromto be ignored when flying to, zooming to, or tracking an Entity. #2628 - Fixed a bug that caused
CorridorandPolylineVolumegeometry to be incorrect for sharp corners #2626 - Fixed crash when modifying a translucent entity geometry outline. #2630
- Fixed crash when loading KML GroundOverlays that spanned 360 degrees. #2639
- Fixed
Geocoderstyling issue in Safari. #2658. - Fixed a crash that would occur when the
ViewerorCesiumWidgetwas resized to 0 while the camera was in motion. #2662 - Fixed a bug that prevented the
InfoBoxtitle from updating if the name ofviewer.selectedEntitychanged. #2644 - Added an optional
resultparameter tocomputeScreenSpacePositionon bothBillboardandLabel. - Added number of cached shaders to the
CesiumInspectordebugging widget. - An exception is now thrown if
Primitive.modelMatrixis not the identity matrix when in in 2D or Columbus View.
1.8 - 2015-04-01
- Breaking changes
- Removed the
eye,target, andupparameters toCamera.lookAtwhich were deprecated in Cesium 1.6. Use thetargetandoffset. - Removed
Camera.setTransform, which was deprecated in Cesium 1.6. UseCamera.lookAtTransform. - Removed
Camera.transform, which was deprecated in Cesium 1.6. UseCamera.lookAtTransform. - Removed the
directionandupoptions toCamera.flyTo, which were deprecated in Cesium 1.6. Use theorientationoption. - Removed
Camera.flyToRectangle, which was deprecated in Cesium 1.6. UseCamera.flyTo.
- Removed the
- Deprecated
- Deprecated the
smallterraintileset. It will be removed in 1.11. Use the STK World Terrain tileset.
- Deprecated the
- Added
Entity.show, a boolean for hiding or showing an entity and its children. - Added
Entity.isShowing, a read-only property that indicates if an entity is currently being drawn. - Added support for the KML
visibilityelement. - Added
PolylineArrowMaterialPropertyto allow entities materials to use polyline arrows. - Added
VelocityOrientationPropertyto easily orient Entity graphics (such as a model) along the direction it is moving. - Added a new Sandcastle demo, Interpolation, which illustrates time-dynamic position interpolation options and uses the new
VelocityOrientationPropertyto orient an aircraft in flight. - Improved
viewer.zoomToandviewer.flyToso they are now "best effort" and work even if some entities being zoomed to are not currently in the scene. - Fixed
PointerEventdetection so that it works with older implementations of the specification. This also fixes lack of mouse handling when detection failed, such as when using Cesium in the WindowsWebBrowsercontrol. - Fixed an issue with transparency. #2572
- Fixed improper handling of null values when loading
GeoJSONdata. - Added support for automatic raster feature picking from
ArcGisMapServerImageryProvider. - Added the ability to specify the desired tiling scheme, rectangle, and width and height of tiles to the
ArcGisMapServerImageryProviderconstructor. - Added the ability to access dynamic ArcGIS MapServer layers by specifying the
layersparameter to theArcGisMapServerImageryProviderconstructor. - Fixed a bug that could cause incorrect rendering of an
ArcGisMapServerImageProviderwith a "singleFusedMapCache" in the geographic projection (EPSG:4326). - Added new construction options to
CesiumWidgetandViewer, forskyBox,skyAtmosphere, andglobe. - Fixed a bug that prevented Cesium from working in browser configurations that explicitly disabled localStorage, such as Safari's private browsing mode.
- Cesium is now tested using Jasmine 2.2.0.
1.7.1 - 2015-03-06
- Fixed a crash in
InfoBoxthat would occur when attempting to display plain text. - Fixed a crash when loading KML features that have no description and an empty
ExtendedDatanode. - Fixed a bug
in Color.fromCssColorStringwhere undefined would be returned for the CSS colortransparent. - Added
Color.TRANSPARENT. - Added support for KML
TimeStampnodes. - Improved KML compatibility to work with non-specification compliant KML files that still happen to load in Google Earth.
- All data sources now print errors to the console in addition to raising the
errorEventand rejecting their load promise.
1.7 - 2015-03-02
- Breaking changes
- Removed
viewerEntityMixin, which was deprecated in Cesium 1.5. Its functionality is now directly part of theViewerwidget. - Removed
Camera.tilt, which was deprecated in Cesium 1.6. UseCamera.pitch. - Removed
Camera.headingandCamera.tilt. They were deprecated in Cesium 1.6. UseCamera.setView. - Removed
Camera.setPositionCartographic, which was was deprecated in Cesium 1.6. UseCamera.setView.
- Removed
- Deprecated
- Deprecated
InfoBoxViewModel.defaultSanitizer,InfoBoxViewModel.sanitizer, andCesium.sanitize. They will be removed in 1.10. - Deprecated
InfoBoxViewModel.descriptionRawHtml, it will be removed in 1.10. UseInfoBoxViewModel.descriptioninstead. - Deprecated
GeoJsonDataSource.fromUrl, it will be removed in 1.10. UseGeoJsonDataSource.loadinstead. Unlike fromUrl, load can take either a url or parsed JSON object and returns a promise to a new instance, rather than a new instance. - Deprecated
GeoJsonDataSource.prototype.loadUrl, it will be removed in 1.10. Instead, pass a url as the first parameter toGeoJsonDataSource.prototype.load. - Deprecated
CzmlDataSource.prototype.loadUrl, it will be removed in 1.10. Instead, pass a url as the first parameter toCzmlDataSource.prototype.load. - Deprecated
CzmlDataSource.prototype.processUrl, it will be removed in 1.10. Instead, pass a url as the first parameter toCzmlDataSource.prototype.process. - Deprecated the
sourceUriparameter to allCzmlDataSourceload and process functions. Support will be removed in 1.10. Instead pass anoptionsobject withsourceUriproperty.
- Deprecated
- Added initial support for KML 2.2 via
KmlDataSource. Check out the new Sandcastle Demo and the reference documentation for more details. InfoBoxsanitization now relies on iframe sandboxing. This allows for much more content to be displayed in the InfoBox (and still be secure).- Added
InfoBox.framewhich is the instance of the iframe that is used to host description content. Sanitization can be controlled via the frame'ssandboxattribute. See the above link for additional information. - Worked around a bug in Safari that caused most of Cesium to be broken. Cesium should now work much better on Safari for both desktop and mobile.
- Fixed incorrect ellipse texture coordinates. #2363 and #2465
- Fixed a bug that would cause incorrect geometry for long Corridors and Polyline Volumes. #2513
- Fixed a bug in imagery loading that could cause some or all of the globe to be missing when using an imagery layer that does not cover the entire globe.
- Fixed a bug that caused
EllipseOutlineGeometryandCircleOutlineGeometryto be extruded to the ground when they should have instead been drawn at height. #2499. - Fixed a bug that prevented per-vertex colors from working with
PolylineGeometryandSimplePolylineGeometrywhen used asynchronously. #2516 - Fixed a bug that would caused duplicate graphics if non-time-dynamic
Entityobjects were modified in quick succession. #2514. - Fixed a bug where
camera.flyToBoundingSpherewould ignore range if the bounding sphere radius was 0. #2519 - Fixed some styling issues with
InfoBoxandBaseLayerPickercaused by using Bootstrap with Cesium. #2487 - Added support for rendering a water effect on Quantized-Mesh terrain tiles.
- Added
packandunpackfunctions toMatrix2andMatrix3. - Added camera-terrain collision detection/response when the camera reference frame is set.
- Added
ScreenSpaceCameraController.enableCollisionDetectionto enable/disable camera collision detection with terrain. - Added
CzmlDataSource.loadandGeoJsonDataSource.loadto make it easy to create and load data in a single line. - Added the ability to pass a
Promiseto aDataSourcetoDataSourceCollection.add. TheDataSourcewill not actually be added until the promise resolves. - Added the ability to pass a
Promiseto a target toviewer.zoomToandviewer.flyTo. - All
CzmlDataSourceandGeoJsonDataSourceloading functions now returnPromiseinstances that resolve to the instances after data is loaded. - Error handling in all
CzmlDataSourceandGeoJsonDataSourceloading functions is now more consistent. Rather than a mix of exceptions andPromiserejections, all errors are raised viaPromiserejections. - In addition to addresses, the
Geocoderwidget now allows input of longitude, latitude, and an optional height in degrees and meters. Example:-75.596, 40.038, 1000or-75.596 40.038.
1.6 - 2015-02-02
- Breaking changes
Rectangle.intersectWithwas deprecated in Cesium 1.5. UseRectangle.intersection, which is the same but returnsundefinedwhen two rectangles do not intersect.Rectangle.isEmptywas deprecated in Cesium 1.5.- The
sourceUriparameter toGeoJsonDatasource.loadwas deprecated in Cesium 1.4 and has been removed. Use options.sourceUri instead. PolygonGraphics.positionscreated byGeoJSONDataSourcenow evaluate to aPolygonHierarchyobject instead of an array of positions.
- Deprecated
Camera.tiltwas deprecated in Cesium 1.6. It will be removed in Cesium 1.7. UseCamera.pitch.Camera.headingandCamera.tiltwere deprecated in Cesium 1.6. They will become read-only in Cesium 1.7. UseCamera.setView.Camera.setPositionCartographicwas deprecated in Cesium 1.6. It will be removed in Cesium 1.7. UseCamera.setView.- The
directionandupoptions toCamera.flyTohave been deprecated in Cesium 1.6. They will be removed in Cesium 1.8. Use theorientationoption. Camera.flyToRectanglehas been deprecated in Cesium 1.6. They will be removed in Cesium 1.8. UseCamera.flyTo.Camera.setTransformwas deprecated in Cesium 1.6. It will be removed in Cesium 1.8. UseCamera.lookAtTransform.Camera.transformwas deprecated in Cesium 1.6. It will be removed in Cesium 1.8. UseCamera.lookAtTransform.- The
eye,target, andupparameters toCamera.lookAtwere deprecated in Cesium 1.6. It will be removed in Cesium 1.8. Use thetargetandoffset. PolygonGraphics.positionswas deprecated and replaced withPolygonGraphics.hierarchy, whose value is aPolygonHierarchyinstead of an array of positions.PolygonGraphics.positionswill be removed in Cesium 1.8.- The
Model.readyToRenderevent was deprecated and will be removed in Cesium 1.9. Use the newModel.readyPromiseinstead. ColorMaterialProperty.fromColor(color)has been deprecated and will be removed in Cesium 1.9. The constructor can now take a Color directly, for examplenew ColorMaterialProperty(color).DataSourceDisplaymethodsgetSceneandgetDataSourceshave been deprecated and replaced withsceneanddataSourcesproperties. They will be removed in Cesium 1.9.- The
Entityconstructor taking a single string value for the id has been deprecated. The constructor now takes an options object which allows you to provide any and allEntityrelated properties at construction time. Support for the deprecated behavior will be removed in Cesium 1.9. - The
EntityCollection.entitiesandCompositeEntityCollect.entitiesproperties have both been renamed tovalues. Support for the deprecated behavior will be removed in Cesium 1.9.
- Fixed an issue which caused order independent translucency to be broken on many video cards. Disabling order independent translucency should no longer be necessary.
GeoJsonDataSourcenow supports polygons with holes.- Many Sandcastle examples have been rewritten to make use of the newly improved Entity API.
- Instead of throwing an exception when there are not enough unique positions to define a geometry, creating a
Primitivewill succeed, but not render. #2375 - Improved performance of asynchronous geometry creation (as much as 20% faster in some use cases). #2342
- Fixed picking in 2D. #2447
- Added
viewer.entitieswhich allows you to easily create and manageEntityinstances without a correspondingDataSource. This is just a shortcut toviewer.dataSourceDisplay.defaultDataSource.entities - Added
viewer.zoomToandviewer.flyTowhich takes an entity, array of entities,EntityCollection, orDataSourceas a parameter and zooms or flies to the corresponding visualization. - Setting
viewer.trackedEntitytoundefinedwill now restore the camera controls to their default states. - When you track an entity by clicking on the track button in the
InfoBox, you can now stop tracking by clicking the button a second time. - Added
Quaternion.fromHeadingPitchRollto create a rotation from heading, pitch, and roll angles. - Added
Transforms.headingPitchRollToFixedFrameto create a local frame from a position and heading/pitch/roll angles. - Added
Transforms.headingPitchRollQuaternionwhich is the quaternion rotation fromTransforms.headingPitchRollToFixedFrame. - Added
Color.fromAlphaandColor.withAlphato make it easy to create translucent colors from constants, i.e.var translucentRed = Color.RED.withAlpha(0.95). - Added
PolylineVolumeGraphicsandEntity.polylineVolume - Added
Camera.lookAtTransformwhich sets the camera position and orientation given a transformation matrix defining a reference frame and either a cartesian offset or heading/pitch/range from the center of that frame. - Added
Camera.setView(which use heading, pitch, and roll) andCamera.roll. - Added an orientation option to
Camera.flyTothat can be either direction and up unit vectors or heading, pitch and roll angles. - Added
BillboardGraphics.imageSubRegion, to enable custom texture atlas use forEntityinstances. - Added
CheckerboardMaterialPropertyto enable use of the checkerboard material with the entity API. - Added
PolygonHierarchyto make defining polygons with holes clearer. - Added
PolygonGraphics.hierarchyfor supporting polygons with holes via data sources. - Added
BoundingSphere.fromBoundingSpheres, which creates aBoundingSpherethat encloses the specified array of BoundingSpheres. - Added
Model.readyPromiseandPrimitive.readyPromisewhich are promises that resolve when the primitives are ready. ConstantPropertycan now hold any value; previously it was limited to values that implementedequalsandclonesfunctions, as well as a few special cases.- Fixed a bug in
EllipsoidGeodesicthat caused it to modify theheightof the positions passed to the constructor or to tosetEndPoints. WebMapTileServiceImageryProvidernow supports RESTful requests (by accepting a tile-URL template).- Fixed a bug that caused
Camera.rollto be around 180 degrees, indicating the camera was upside-down, when in the Southern hemisphere. - The object returned by
Primitive.getGeometryInstanceAttributesnow contains the instance's bounding sphere and repeated calls will always now return the same object instance. - Fixed a bug that caused dynamic geometry outlines widths to not work on implementations that support them.
- The
SelectionIndicatorwidget now works for all entity visualization and uses the center of visualization instead of entity.position. This produces more accurate results, especially for shapes, volumes, and models. - Added
CustomDataSourcewhich makes it easy to create and manage a group of entities without having to manually implement the DataSource interface in a new class. - Added
DataSourceDisplay.defaultDataSourcewhich is an instance ofCustomDataSourceand allows you to easily add custom entities to the display. - Added
Camera.viewBoundingSphereandCamera.flyToBoundingSphere, which as the names imply, sets or flies to a view that encloses the providedBoundingSphere - For constant
Propertyvalues, there is no longer a need to create an instance ofConstantPropertyorConstantPositionProperty, you can now assign a value directly to the corresponding property. The same is true for material images and colors. - All Entity and related classes can now be assigned using anonymous objects as well as be passed template objects. The correct underlying instance is created for you automatically. For a more detailed overview of changes to the Entity API, see this forum thread for details.
1.5 - 2015-01-05
- Breaking changes
- Removed
GeometryPipeline.wrapLongitude, which was deprecated in 1.4. UseGeometryPipeline.splitLongitudeinstead. - Removed
GeometryPipeline.combine, which was deprecated in 1.4. UseGeometryPipeline.combineInstancesinstead.
- Removed
- Deprecated
viewerEntityMixinwas deprecated. It will be removed in Cesium 1.6. Its functionality is now directly part of theViewerwidget.Rectangle.intersectWithwas deprecated. It will be removed in Cesium 1.6. UseRectangle.intersection, which is the same but returnsundefinedwhen two rectangles do not intersect.Rectangle.isEmptywas deprecated. It will be removed in Cesium 1.6.
- Improved GeoJSON, TopoJSON, and general polygon loading performance.
- Added caching to
Modelto save memory and improve loading speed when several models with the same url are created. - Added
ModelNode.showfor per-node show/hide. - Added the following properties to
ViewerandCesiumWidget:imageryLayers,terrainProvider, andcamera. This avoids the need to accessviewer.scenein some cases. - Dramatically improved the quality of font outlines.
- Added
BoxGraphicsandEntity.box. - Added
CorridorGraphicsandEntity.corridor. - Added
CylinderGraphicsandEntity.cylinder. - Fixed imagery providers whose rectangle crosses the IDL. Added
Rectangle.computeWidth,Rectangle.computeHeight,Rectangle.width, andRectangle.height. #2195 ConstantPropertynow acceptsHTMLElementinstances as valid values.BillboardGraphics.imageandImageMaterialProperty.imagenow acceptPropertyinstances that represent anImageorCanvasin addition to a url.- Fixed a bug in
PolylineGeometrythat would cause gaps in the line. #2136 - Fixed
upsampleQuantizedTerrainMeshrounding errors that had occasionally led to missing terrain skirt geometry in upsampled tiles. - Added
Math.modwhich computesm % nbut also works whenmis negative.
1.4 - 2014-12-01
- Breaking changes
- Types implementing
TerrainProviderare now required to implement thegetTileDataAvailablefunction. Backwards compatibility for this was deprecated in Cesium 1.2.
- Types implementing
- Deprecated
- The
sourceUriparameter toGeoJsonDatasource.loadwas deprecated and will be removed in Cesium 1.6 on February 3, 2015 (#2257). Useoptions.sourceUriinstead. GeometryPipeline.wrapLongitudewas deprecated. It will be removed in Cesium 1.5 on January 2, 2015. UseGeometryPipeline.splitLongitude. (#2272)GeometryPipeline.combinewas deprecated. It will be removed in Cesium 1.5. UseGeometryPipeline.combineInstances.
- The
- Added support for touch events on Internet Explorer 11 using the Pointer Events API.
- Added geometry outline width support to the
DataSourcelayer. This is exposed via the newoutlineWidthproperty onEllipseGraphics,EllipsoidGraphics,PolygonGraphics,RectangleGraphics, andWallGraphics. - Added
outlineWidthsupport to CZML geometry packets. - Added
stroke-widthsupport to the GeoJSON simple-style implementation. - Added the ability to specify global GeoJSON default styling. See the documentation for details.
- Added
CallbackPropertyto support lazy property evaluation as well as make custom properties easier to create. - Added an options parameter to
GeoJsonDataSource.load,GeoJsonDataSource.loadUrl, andGeoJsonDataSource.fromUrlto allow for basic per-instance styling. Sandcastle example. - Improved GeoJSON loading performance.
- Improved point visualization performance for all DataSources.
- Improved the performance and memory usage of
EllipseGeometry,EllipseOutlineGeometry,CircleGeometry, andCircleOutlineGeometry. - Added
tileMatrixLabelsoption toWebMapTileServiceImageryProvider. - Fixed a bug in
PolylineGeometrythat would cause the geometry to be split across the IDL for 3D only scenes. #1197 - Added
modelMatrixandculloptions toPrimitiveconstructor. - The
translationparameter toMatrix4.fromRotationTranslationnow defaults toCartesian3.ZERO. - Fixed
ModelNode.matrixwhen a node is targeted for animation. Camera.tiltnow clamps to[-pi / 2, pi / 2]instead of[0, pi / 2].- Fixed an issue that could lead to poor performance on lower-end GPUs like the Intel HD 3000.
- Added
distanceSquaredtoCartesian2,Cartesian3, andCartesian4. - Added
Matrix4.multiplyByMatrix3. - Fixed a bug in
Modelwhere the WebGL shader optimizer in Linux was causing mesh loading to fail.
1.3 - 2014-11-03
- Worked around a shader compilation regression in Firefox 33 and 34 by falling back to a less precise shader on those browsers. #2197
- Added support to the
CesiumTerrainProviderfor terrain tiles with more than 64K vertices, which is common for sub-meter terrain. - Added
Primitive.compressVertices. When true (default), geometry vertices are compressed to save GPU memory. - Added
cultureoption toBingMapsImageryProviderconstructor. - Reduced the amount of GPU memory used by billboards and labels.
- Fixed a bug that caused non-base imagery layers with a limited
rectangleto be stretched to the edges of imagery tiles. #416 - Fixed rendering polylines with duplicate positions. #898
- Fixed a bug in
Globe.pickthat caused it to return incorrect results when using terrain data with vertex normals. The bug manifested itself as strange behavior when navigating around the surface with the mouse as well as incorrect results when usingCamera.viewRectangle. - Fixed a bug in
sampleTerrainthat could cause it to produce undefined heights when sampling for a position very near the edge of a tile. ReferencePropertyinstances now retain their last value if the entity being referenced is removed from the target collection. The reference will be automatically reattached if the target is reintroduced.- Upgraded topojson from 1.6.8 to 1.6.18.
- Upgraded Knockout from version 3.1.0 to 3.2.0.
- Upgraded CodeMirror, used by SandCastle, from 2.24 to 4.6.
1.2 - 2014-10-01
- Deprecated
- Types implementing the
TerrainProviderinterface should now include the newgetTileDataAvailablefunction. The function will be required starting in Cesium 1.4.
- Types implementing the
- Fixed model orientations to follow the same Z-up convention used throughout Cesium. There was also an orientation issue fixed in the online model converter. If you are having orientation issues after updating, try reconverting your models.
- Fixed a bug in
Modelwhere the wrong animations could be used when the model was created from glTF JSON instead of a url to a glTF file. #2078 - Fixed a bug in
GeoJsonDataSourcewhich was causing polygons with height values to be drawn onto the surface. - Fixed a bug that could cause a crash when quickly adding and removing imagery layers.
- Eliminated imagery artifacts at some zoom levels due to Mercator re-projection.
- Added support for the GeoJSON simplestyle specification. (Sandcastle example)
- Added
GeoJsonDataSource.fromUrlto make it easy to add a data source in less code. - Added
PinBuilderclass for easy creation of map pins. (Sandcastle example) - Added
Color.brightenandColor.darkento make it easy to brighten or darker a color instance. - Added a constructor option to
Scene,CesiumWidget, andViewerto disable order independent translucency. - Added support for WKID 102113 (equivalent to 102100) to
ArcGisMapServerImageryProvider. - Added
TerrainProvider.getTileDataAvailableto improve tile loading performance when camera starts near globe. - Added
Globe.showWaterEffectto enable/disable the water effect for supported terrain providers. - Added
Globe.baseColorto set the color of the globe when no imagery is available. - Changed default
GeoJSONPoint feature graphics to useBillboardGraphicswith a blue map pin instead of colorPointGraphics. - Cesium now ships with a version of the maki icon set for use with
PinBuilderand GeoJSON simplestyle support. - Cesium now ships with a default web.config file to simplify IIS deployment.
1.1 - 2014-09-02
- Added a new imagery provider,
WebMapTileServiceImageryProvider, for accessing tiles on a WMTS 1.0.0 server. - Added an optional
pickFeaturesfunction to theImageryProviderinterface. With supporting imagery providers, such asWebMapServiceImageryProvider, it can be used to determine the rasterized features under a particular location. - Added
ImageryLayerCollection.pickImageryLayerFeatures. It determines the rasterized imagery layer features intersected by a given pick ray by querying supporting layers usingImageryProvider.pickFeatures. - Added
tileWidth,tileHeight,minimumLevel, andtilingSchemeparameters to theWebMapServiceImageryProviderconstructor. - Added
idproperty toScenewhich is a readonly unique identifier associated with each instance. - Added
FeatureDetection.supportsWebWorkers. - Greatly improved the performance of time-varying polylines when using DataSources.
viewerEntityMixinnow automatically queries for imagery layer features on click and shows their properties in theInfoBoxpanel.- Fixed a bug in terrain and imagery loading that could cause an inconsistent frame rate when moving around the globe, especially on a faster internet connection.
- Fixed a bug that caused
SceneTransforms.wgs84ToWindowCoordinatesto incorrectly returnundefinedwhen in 2D. - Fixed a bug in
ImageryLayerthat caused layer images to be rendered twice for each terrain tile that existed prior to adding the imagery layer. - Fixed a bug in
Camera.pickEllipsoidthat caused it to return the back side of the ellipsoid when near the surface. - Fixed a bug which prevented
loadWithXhrfrom working with older browsers, such as Internet Explorer 9.
1.0 - 2014-08-01
-
Breaking changes (why so many?)
-
All
Matrix2,Matrix3,Matrix4andQuaternionfunctions that take aresultparameter now require the parameter, except functions starting withfrom. -
Removed
Billboard.imageIndexandBillboardCollection.textureAtlas. Instead, useBillboard.image.-
Code that looked like:
var billboards = new Cesium.BillboardCollection(); var textureAtlas = new Cesium.TextureAtlas({ scene : scene, images : images // array of loaded images }); billboards.textureAtlas = textureAtlas; billboards.add({ imageIndex : 0, position : //... }); -
should now look like:
var billboards = new Cesium.BillboardCollection(); billboards.add({ image : '../images/Cesium_Logo_overlay.png', position : //... });
-
-
Updated the Model Converter and
Modelto support glTF 0.8. See the forum post for full details. -
Modelprimitives are now rotated to beZ-up to match Cesium convention; glTF stores models withYup. -
SimplePolylineGeometryandPolylineGeometrynow curve to follow the ellipsoid surface by default. To disable this behavior, set the optionfollowSurfacetofalse. -
Renamed
DynamicScenelayer toDataSources. The following types were also renamed:DynamicBillboard->BillboardGraphicsDynamicBillboardVisualizer->BillboardVisualizerCompositeDynamicObjectCollection->CompositeEntityCollectionDynamicClock->DataSourceClockDynamicEllipse->EllipseGraphicsDynamicEllipsoid->EllipsoidGraphicsDynamicObject->EntityDynamicObjectCollection->EntityCollectionDynamicObjectView->EntityViewDynamicLabel->LabelGraphicsDynamicLabelVisualizer->LabelVisualizerDynamicModel->ModelGraphicsDynamicModelVisualizer->ModelVisualizerDynamicPath->PathGraphicsDynamicPathVisualizer->PathVisualizerDynamicPoint->PointGraphicsDynamicPointVisualizer->PointVisualizerDynamicPolygon->PolygonGraphicsDynamicPolyline->PolylineGraphicsDynamicRectangle->RectangleGraphicsDynamicWall->WallGraphicsviewerDynamicObjectMixin->viewerEntityMixin
-
Removed
DynamicVectorandDynamicVectorVisualizer. -
Renamed
DataSource.dynamicObjectstoDataSource.entities. -
EntityCollection.getObjects()andCompositeEntityCollection.getObjects()are now properties namedEntityCollection.entitiesandCompositeEntityCollection.entities. -
Renamed
Viewer.trackedObjectandViewer.selectedObjecttoViewer.trackedEntityandViewer.selectedEntitywhen using theviewerEntityMixin. -
Renamed functions for consistency:
BoundingSphere.getPlaneDistances->BoundingSphere.computePlaneDistancesCartesian[2,3,4].getMaximumComponent->Cartesian[2,3,4].maximumComponentCartesian[2,3,4].getMinimumComponent->Cartesian[2,3,4].minimumComponentCartesian[2,3,4].getMaximumByComponent->Cartesian[2,3,4].maximumByComponentCartesian[2,3,4].getMinimumByComponent->Cartesian[2,3,4].minimumByComponentCubicRealPolynomial.realRoots->CubicRealPolynomial.computeRealRootsCubicRealPolynomial.discriminant->CubicRealPolynomial.computeDiscriminantJulianDate.getTotalDays->JulianDate.totalDaysJulianDate.getSecondsDifference->JulianDate.secondsDifferenceJulianDate.getDaysDifference->JulianDate.daysDifferenceJulianDate.getTaiMinusUtc->JulianDate.computeTaiMinusUtcMatrix3.getEigenDecomposition->Matrix3.computeEigenDecompositionOccluder.getVisibility->Occluder.computeVisibilityOccluder.getOccludeePoint->Occluder.computerOccludeePointQuadraticRealPolynomial.discriminant->QuadraticRealPolynomial.computeDiscriminantQuadraticRealPolynomial.realRoots->QuadraticRealPolynomial.computeRealRootsQuarticRealPolynomial.discriminant->QuarticRealPolynomial.computeDiscriminantQuarticRealPolynomial.realRoots->QuarticRealPolynomial.computeRealRootsQuaternion.getAxis->Quaternion.computeAxisQuaternion.getAngle->Quaternion.computeAngleQuaternion.innerQuadrangle->Quaternion.computeInnerQuadrangleRectangle.getSouthwest->Rectangle.southwestRectangle.getNorthwest->Rectangle.northwestRectangle.getSoutheast->Rectangle.southeastRectangle.getNortheast->Rectangle.northeastRectangle.getCenter->Rectangle.centerCullingVolume.getVisibility->CullingVolume.computeVisibility
-
Replaced
PerspectiveFrustum.fovywithPerspectiveFrustum.fovwhich will change the field of view angle in either theXorYdirection depending on the aspect ratio. -
Removed the following from the Cesium API:
Transforms.earthOrientationParameters,EarthOrientationParameters,EarthOrientationParametersSample,Transforms.iau2006XysData,Iau2006XysData,Iau2006XysSample,IauOrientationAxes,TimeConstants,Scene.frameState,FrameState,EncodedCartesian3,EllipsoidalOccluder,TextureAtlas, andFAR. These are still available but are not part of the official API and may change in future versions. -
Removed
DynamicObject.vertexPositions. UseDynamicWall.positions,DynamicPolygon.positions, andDynamicPolyline.positionsinstead. -
Removed
defaultPoint,defaultLine, anddefaultPolygonfromGeoJsonDataSource. -
Removed
Primitive.allow3DOnly. Set theSceneconstructor optionscene3DOnlyinstead. -
SampledPropertyandSampledPositionPropertyno longer extrapolate outside of their sample data time range by default. -
Changed the following functions to properties:
TerrainProvider.hasWaterMaskCesiumTerrainProvider.hasWaterMaskArcGisImageServerTerrainProvider.hasWaterMaskEllipsoidTerrainProvider.hasWaterMaskVRTheWorldTerrainProvider.hasWaterMask
-
Removed
ScreenSpaceCameraController.ellipsoid. The behavior that depended on the ellipsoid is now determined based on the scene state. -
Sandcastle examples now automatically wrap the example code in RequireJS boilerplate. To upgrade any custom examples, copy the code into an existing example (such as Hello World) and save a new file.
-
Removed
CustomSensorVolume,RectangularPyramidSensorVolume,DynamicCone,DynamicConeVisualizerUsingCustomSensor,DynamicPyramidandDynamicPyramidVisualizer. This will be moved to a plugin in early August. #1887 -
If
Primitive.modelMatrixis changed after creation, it only affects primitives with one instance and only in 3D mode. -
ImageryLayerpropertiesalpha,brightness,contrast,hue,saturation, andgammamay no longer be functions. If you need to change these values each frame, consider moving your logic to an event handler forScene.preRender. -
Removed
closeTopandcloseBottomoptions fromRectangleGeometry. -
CZML changes:
- CZML is now versioned using the
<major>.<minor>scheme. For example, any CZML 1.0 implementation will be able to load any1.<minor>document (with graceful degradation). Major version number increases will be reserved for breaking changes. We fully expect these major version increases to happen, as CZML is still in development, but we wanted to give developers a stable target to work with. - A
"1.0"version string is required to be on the document packet, which is required to be the first packet in a CZML file. Previously thedocumentpacket was optional; it is now mandatory. The simplest document packet is:{ "id": "document", "version": "1.0" } - The
vertexPositionsproperty has been removed. There is now apositionsproperty directly on objects that use it, currentlypolyline,polygon, andwall. cone,pyramid, andvectorhave been removed from the core CZML schema. They are now treated as extensions maintained by Analytical Graphics and have been renamed toagi_conicSensor,agi_customPatternSensor, andagi_vectorrespectively.- The
orientationproperty has been changed to match Cesium convention. To update existing CZML documents, conjugate the quaternion values. pixelOffsetnow uses the top-left of the screen as the origin; previously it was the bottom-left. To update existing documents, negate theyvalue.- Removed
color,outlineColor, andoutlineWidthproperties frompolylineandpath. There is a newmaterialproperty that allows you to specify a variety of materials, such assolidColor,polylineOutlineandpolylineGlow. - See the CZML Schema for more details. We plan on greatly improving this document in the coming weeks.
- CZML is now versioned using the
-
-
Added camera collision detection with terrain to the default mouse interaction.
-
Modified the default camera tilt mouse behavior to tilt about the point clicked, taking into account terrain.
-
Modified the default camera mouse behavior to look about the camera's position when the sky is clicked.
-
Cesium can now render an unlimited number of imagery layers, no matter how few texture units are supported by the hardware.
-
Added support for rendering terrain lighting with oct-encoded per-vertex normals. Added
CesiumTerrainProvider.requestVertexNormalsto request per vertex normals. AddedhasVertexNormalsproperty to all terrain providers to indicate whether or not vertex normals are included in the requested terrain tiles. -
Added
Globe.getHeightandGlobe.pickfor finding the terrain height at a given Cartographic coordinate and picking the terrain with a ray. -
Added
scene3DOnlyoptions toViewer,CesiumWidget, andSceneconstructors. This setting optimizes memory usage and performance for 3D mode at the cost of losing the ability to use 2D or Columbus View. -
Added
forwardExtrapolationType,forwardExtrapolationDuration,backwardExtrapolationType, andbackwardExtrapolationDurationtoSampledPropertyandSampledPositionPropertywhich allows the user to specify how a property calculates its value when outside the range of its sample data. -
Prevent primitives from flashing off and on when modifying static DataSources.
-
Added the following methods to
IntersectionTests:rayTriangle,lineSegmentTriangle,raySphere, andlineSegmentSphere. -
Matrix types now have
addandsubtractfunctions. -
Matrix3type now has afromCrossProductfunction. -
Added
CesiumMath.signNotZero,CesiumMath.toSNormandCesiumMath.fromSNormfunctions. -
DataSource & CZML models now default to North-East-Down orientation if none is provided.
-
TileMapServiceImageryProvidernow works with tilesets created by tools that better conform to the TMS specification. In particular, a profile ofglobal-geodeticorglobal-mercatoris now supported (in addition to the previousgeodeticandmercator) and in these profiles it is assumed that the X coordinates of the bounding box correspond to the longitude direction. -
EntityCollectionandCompositeEntityCollectionnow include the array of modified entities as the last parameter to theironCollectionChangedevent. -
RectangleGeometry,RectangleOutlineGeometryandRectanglePrimitivecan cross the international date line.
Beta Releases
b30 - 2014-07-01
-
Breaking changes (why so many?)
-
CZML property references now use a
#symbol to separate identifier from property path.objectId.positionshould now beobjectId#position. -
All
Cartesian2,Cartesian3,Cartesian4,TimeInterval, andJulianDatefunctions that take aresultparameter now require the parameter (except for functions starting withfrom). -
Modified
Transforms.pointToWindowCoordinatesandSceneTransforms.wgs84ToWindowCoordinatesto return window coordinates with origin at the top left corner. -
Billboard.pixelOffsetandLabel.pixelOffsetnow have their origin at the top left corner. -
Replaced
CameraFlightPath.createAnimationwithCamera.flyToand replacedCameraFlightPath.createAnimationRectanglewithCamera.flyToRectangle. Code that looked like:scene.animations.add(Cesium.CameraFlightPath.createAnimation(scene, { destination : Cesium.Cartesian3.fromDegrees(-117.16, 32.71, 15000.0) }));should now look like:
scene.camera.flyTo({ destination : Cesium.Cartesian3.fromDegrees(-117.16, 32.71, 15000.0) }); -
In
Camera.flyToandCamera.flyToRectangle:options.durationis now in seconds, not milliseconds.- Renamed
options.endReferenceFrametooptions.endTransform. - Renamed
options.onCompletetooptions.complete. - Renamed
options.onCanceltooptions.cancel.
-
The following are now in seconds, not milliseconds.
Scene.morphToColumbusView,Scene.morphTo2D, andScene.morphTo3Dparameterduration.HomeButtonconstructor parameteroptions.duration,HomeButtonViewModelconstructor parameterduration, andHomeButtonViewModel.duration.SceneModePickerconstructor parameterduration,SceneModePickerViewModelconstructor parameterduration, andSceneModePickerViewModel.duration.GeocoderandGeocoderViewModelconstructor parameteroptions.flightDurationandGeocoderViewModel.flightDuration.ScreenSpaceCameraController.bounceAnimationTime.FrameRateMonitorconstructor parameteroptions.samplingWindow,options.quietPeriod, andoptions.warmupPeriod.
-
Refactored
JulianDateto be in line with other Core types.- Most functions now take result parameters.
- The default constructor no longer creates a date at the current time, use
JulianDate.now()instead. - Removed
JulianDate.getJulianTimeFractionandJulianDate.compareTo new JulianDate()->JulianDate.now()date.getJulianDayNumber()->date.dayNumberdate.getSecondsOfDay()->secondsOfDaydate.getTotalDays()->JulianDate.getTotalDays(date)date.getSecondsDifference(arg1, arg2)->JulianDate.getSecondsDifference(arg2, arg1)(Note, order of arguments flipped)date.getDaysDifference(arg1, arg2)->JulianDate.getDaysDifference(arg2, arg1)(Note, order of arguments flipped)date.getTaiMinusUtc()->JulianDate.getTaiMinusUtc(date)date.addSeconds(seconds)->JulianDate.addSeconds(date, seconds)date.addMinutes(minutes)->JulianDate.addMinutes(date, minutes)date.addHours(hours)->JulianDate.addHours(date, hours)date.addDays(days)->JulianDate.addDays(date, days)date.lessThan(right)->JulianDate.lessThan(left, right)date.lessThanOrEquals(right)->JulianDate.lessThanOrEquals(left, right)date.greaterThan(right)->JulianDate.greaterThan(left, right)date.greaterThanOrEquals(right)->JulianDate.greaterThanOrEquals(left, right)
-
Refactored
TimeIntervalto be in line with other Core types.-
The constructor no longer requires parameters and now takes a single options parameter. Code that looked like:
new TimeInterval(startTime, stopTime, true, true, data);
should now look like:
new TimeInterval({ start : startTime, stop : stopTime, isStartIncluded : true, isStopIncluded : true, data : data });-
TimeInterval.fromIso8601now takes a single options parameter. Code that looked like:TimeInterval.fromIso8601(intervalString, true, true, data);
should now look like:
TimeInterval.fromIso8601({ iso8601 : intervalString, isStartIncluded : true, isStopIncluded : true, data : data });interval.intersect(otherInterval)->TimeInterval.intersect(interval, otherInterval)interval.contains(date)->TimeInterval.contains(interval, date)
-
-
Removed
TimeIntervalCollection.intersectInterval. -
TimeIntervalCollection.findIntervalnow takes a single options parameter instead of individual parameters. Code that looked like:intervalCollection.findInterval(startTime, stopTime, false, true);should now look like:
intervalCollection.findInterval({ start : startTime, stop : stopTime, isStartIncluded : false, isStopIncluded : true }); -
TimeIntervalCollection.emptywas renamed toTimeIntervalCollection.isEmpty -
Removed
Scene.animationsandAnimationCollectionfrom the public Cesium API. -
Replaced
color,outlineColor, andoutlineWidthinDynamicPathwith amaterialproperty. -
ModelAnimationCollection.addandModelAnimationCollection.addAllrenamedoptions.startOffsettooptions.delay. Also renamedModelAnimation.startOffsettoModelAnimation.delay. -
Replaced
Scene.scene2D.projectionproperty with read-onlyScene.mapProjection. Set this with themapProjectionoption for theViewer,CesiumWidget, orSceneconstructors. -
Moved Fresnel, Reflection, and Refraction materials to the Materials Pack Plugin.
-
Renamed
Simon1994PlanetaryPositionsfunctionsComputeSunPositionInEarthInertialFrameandComputeMoonPositionInEarthInertialFrametocomputeSunPositionInEarthInertialFrameandcomputeMoonPositionInEarthInertialFrame, respectively. -
Sceneconstructor function now takes anoptionsparameter instead of individual parameters. -
CesiumWidget.showErrorPanelnow takes amessageparameter in between the previoustitleanderrorparameters. -
Removed
Camera.createCorrectPositionAnimation. -
Moved
LeapSecond.leapSecondstoJulianDate.leapSeconds. -
Event.removeEventListenerno longer throwsDeveloperErrorif thelistenerdoes not exist; it now returnsfalse. -
Enumeration values of
SceneModehave better correspondence with mode names to help with debugging. -
The build process now requires Node.js to be installed on the system.
-
-
Cesium now supports Internet Explorer 11.0.9 on desktops. For the best results, use the new IE Developer Channel for development.
-
ReferencePropertycan now handle sub-properties, for example,myObject#billboard.scale. -
DynamicObject.idcan now include period characters. -
Added
PolylineGlowMaterialPropertywhich enables data sources to use the PolylineGlow material. -
Fixed support for embedded resources in glTF models.
-
Added
HermitePolynomialApproximation.interpolatefor performing interpolation when derivative information is available. -
SampledPropertyandSampledPositionPropertycan now store derivative information for each sample value. This allows for more accurate interpolation when usingHermitePolynomialApproximation. -
Added
FrameRateMonitorto monitor the frame rate achieved by aSceneand to raise alowFrameRateevent when it falls below a configurable threshold. -
Added
PerformanceWatchdogwidget andviewerPerformanceWatchdogMixin. -
ViewerandCesiumWidgetnow provide more user-friendly error messages when an initialization or rendering error occurs. -
ViewerandCesiumWidgetnow take a new optional parameter,creditContainer. -
Viewercan now optionally be constructed with aDataSourceCollection. Previously, it always created one itself internally. -
Fixed a problem that could rarely lead to the camera's
tiltproperty beingNaN. -
GeoJsonDataSourceno longer uses thenameortitleproperty of the feature as the dynamic object's name if the value of the property is null. -
Added
TimeIntervalCollection.isStartIncludedandTimeIntervalCollection.isStopIncluded. -
Added
Cesium.VERSIONto the combinedCesium.jsfile. -
Made general improvements to the reference documentation.
-
Updated third-party Tween.js from r7 to r13.
-
Updated third-party JSDoc 3.3.0-alpha5 to 3.3.0-alpha9.
-
The development web server has been rewritten in Node.js, and is now included as part of each release.
b29 - 2014-06-02
-
Breaking changes (why so many?)
-
Replaced
Scene.createTextureAtlaswithnew TextureAtlas. -
Removed
CameraFlightPath.createAnimationCartographic. Code that looked like:var flight = CameraFlightPath.createAnimationCartographic(scene, { destination : cartographic }); scene.animations.add(flight);should now look like:
var flight = CameraFlightPath.createAnimation(scene, { destination : ellipsoid.cartographicToCartesian(cartographic) }); scene.animations.add(flight); -
Removed
CesiumWidget.onRenderLoopErrorandViewer.renderLoopError. They have been replaced byScene.renderError. -
Renamed
CompositePrimitivetoPrimitiveCollectionand added anoptionsparameter to the constructor function. -
Removed
Shapes.compute2DCircle,Shapes.computeCircleBoundaryandShapes.computeEllipseBoundary. Instead, useCircleOutlineGeometryandEllipseOutlineGeometry. See the tutorial. -
Removed
PolylinePipeline,PolygonPipeline,Tipsify,FrustumCommands, and allRenderertypes (except noted below) from the public Cesium API. These are still available but are not part of the official API and may change in future versions.Renderertypes in particular are likely to change. -
For AMD users only:
- Moved
PixelFormatfromRenderertoCore. - Moved the following from
RenderertoScene:TextureAtlas,TextureAtlasBuilder,BlendEquation,BlendFunction,BlendingState,CullFace,DepthFunction,StencilFunction, andStencilOperation. - Moved the following from
ScenetoCore:TerrainProvider,ArcGisImageServerTerrainProvider,CesiumTerrainProvider,EllipsoidTerrainProvider,VRTheWorldTerrainProvider,TerrainData,HeightmapTerrainData,QuantizedMeshTerrainData,TerrainMesh,TilingScheme,GeographicTilingScheme,WebMercatorTilingScheme,sampleTerrain,TileProviderError,Credit.
- Moved
-
Removed
TilingScheme.createRectangleOfLevelZeroTiles,GeographicTilingScheme.createLevelZeroTilesandWebMercatorTilingScheme.createLevelZeroTiles. -
Removed
CameraColumbusViewMode. -
Removed
Enumeration.
-
-
Added new functions to
Cartesian3:fromDegrees,fromRadians,fromDegreesArray,fromRadiansArray,fromDegreesArray3DandfromRadiansArray3D. AddedfromRadianstoCartographic. -
Fixed dark lighting in 3D and Columbus View when viewing a primitive edge on. (#592)
-
Improved Internet Explorer 11.0.8 support including workarounds for rendering labels, billboards, and the sun.
-
Improved terrain and imagery rendering performance when very close to the surface.
-
Added
preRenderandpostRenderevents toScene. -
Added
Viewer.targetFrameRateandCesiumWidget.targetFrameRateto allow for throttling of the requestAnimationFrame rate. -
Added
Viewer.resolutionScaleandCesiumWidget.resolutionScaleto allow the scene to be rendered at a resolution other than the canvas size. -
Camera.transformnow works consistently across scene modes. -
Fixed a bug that prevented
sampleTerrainfrom working with STK World Terrain in Firefox. -
sampleTerrainno longer fails when used with aTerrainProviderthat is not yet ready. -
Fixed problems that could occur when using
ArcGisMapServerImageryProviderto access a tiled MapServer of non-global extent. -
Added
interleaveoption toPrimitiveconstructor. -
Upgraded JSDoc from 3.0 to 3.3.0-alpha5. The Cesium reference documentation now has a slightly different look and feel.
-
Upgraded Dojo from 1.9.1 to 1.9.3. NOTE: Dojo is only used in Sandcastle and not required by Cesium.
b28 - 2014-05-01
- Breaking changes (why so many?):
- Renamed and moved
Scene.primitives.centralBodymoved toScene.globe. - Removed
CesiumWidget.centralBodyandViewer.centralBody. UseCesiumWidget.scene.globeandViewer.scene.globe. - Renamed
CentralBodytoGlobe. - Replaced
Model.computeWorldBoundingSpherewithModel.boundingSphere. - Refactored visualizers, removing
setDynamicObjectCollection,getDynamicObjectCollection,getScene, andremoveAllPrimitiveswhich are all superfluous after the introduction ofDataSourceDisplay. The affected classes are:DynamicBillboardVisualizerDynamicConeVisualizerUsingCustomSensorDynamicLabelVisualizerDynamicModelVisualizerDynamicPathVisualizerDynamicPointVisualizerDynamicPyramidVisualizerDynamicVectorVisualizerGeometryVisualizer
- Renamed Extent to Rectangle
Extent->RectangleExtentGeometry->RectangleGeomtryExtentGeometryOutline->RectangleGeometryOutlineExtentPrimitive->RectanglePrimitiveBoundingRectangle.fromExtent->BoundingRectangle.fromRectangleBoundingSphere.fromExtent2D->BoundingSphere.fromRectangle2DBoundingSphere.fromExtentWithHeights2D->BoundingSphere.fromRectangleWithHeights2DBoundingSphere.fromExtent3D->BoundingSphere.fromRectangle3DEllipsoidalOccluder.computeHorizonCullingPointFromExtent->EllipsoidalOccluder.computeHorizonCullingPointFromRectangleOccluder.computeOccludeePointFromExtent->Occluder.computeOccludeePointFromRectangleCamera.getExtentCameraCoordinates->Camera.getRectangleCameraCoordinatesCamera.viewExtent->Camera.viewRectangleCameraFlightPath.createAnimationExtent->CameraFlightPath.createAnimationRectangleTilingScheme.extentToNativeRectangle->TilingScheme.rectangleToNativeRectangleTilingScheme.tileXYToNativeExtent->TilingScheme.tileXYToNativeRectangleTilingScheme.tileXYToExtent->TilingScheme.tileXYToRectangle
- Converted
DataSourceget methods into properties.getName->namegetClock->clockgetChangedEvent->changedEventgetDynamicObjectCollection->dynamicObjectsgetErrorEvent->errorEvent
BaseLayerPickerhas been extended to support terrain selection (#1607).- The
BaseLayerPickerconstructor function now takes the container element and an options object instead of a CentralBody and ImageryLayerCollection. - The
BaseLayerPickerViewModelconstructor function now takes an options object instead of aCentralBodyandImageryLayerCollection. ImageryProviderViewModel->ProviderViewModelBaseLayerPickerViewModel.selectedName->BaseLayerPickerViewModel.buttonTooltipBaseLayerPickerViewModel.selectedIconUrl->BaseLayerPickerViewModel.buttonImageUrlBaseLayerPickerViewModel.selectedItem->BaseLayerPickerViewModel.selectedImageryBaseLayerPickerViewModel.imageryLayershas been removed and replaced withBaseLayerPickerViewModel.centralBody
- The
- Renamed
TimeIntervalCollection.cleartoTimeIntervalCollection.removeAll Contextis now private.- Removed
Scene.context. Instead, useScene.drawingBufferWidth,Scene.drawingBufferHeight,Scene.maximumAliasedLineWidth, andScene.createTextureAtlas. Billboard.computeScreenSpacePosition,Label.computeScreenSpacePosition,SceneTransforms.clipToWindowCoordinatesandSceneTransforms.clipToDrawingBufferCoordinatestake aSceneparameter instead of aContext.Cameraconstructor takesSceneas parameter instead ofContext
- Removed
- Types implementing the
ImageryProviderinterface arenow require ahasAlphaChannelproperty. - Removed
checkForChromeFramesince Chrome Frame is no longer supported by Google. See Google's official announcement. - Types implementing
DataSourceno longer need to implementgetIsTimeVarying.
- Renamed and moved
- Added a
NavigationHelpButtonwidget that, when clicked, displays information about how to navigate around the globe with the mouse. The new button is enabled by default in theViewerwidget. - Added
Model.minimumPixelSizeproperty so models remain visible when the viewer zooms out. - Added
DynamicRectangleto support DataSource providedRectangleGeometry. - Added
DynamicWallto support DataSource providedWallGeometry. - Improved texture upload performance and reduced memory usage when using
BingMapsImageryProviderand other imagery providers that return false fromhasAlphaChannel. - Added the ability to offset the grid in the
GridMaterial. GeometryVisualizernow creates geometry asynchronously to prevent locking up the browser.- Add
Clock.canAnimateto prevent time from advancing, even while the clock is animating. Viewernow prevents time from advancing if asynchronous geometry is being processed in order to avoid showing an incomplete picture. This can be disabled via theViewer.allowDataSourcesToSuspendAnimationsettings.- Added ability to modify glTF material parameters using
Model.getMaterial,ModelMaterial, andModelMesh.material. - Added
asynchronousandreadyproperties toModel. - Added
Cartesian4.fromColorandColor.fromCartesian4. - Added
getScaleandgetMaximumScaletoMatrix2,Matrix3, andMatrix4. - Upgraded Knockout from version 3.0.0 to 3.1.0.
- Upgraded TopoJSON from version 1.1.4 to 1.6.8.
b27 - 2014-04-01
-
Breaking changes:
-
All
CameraControllerfunctions have been moved up to theCamera. RemovedCameraController. For example, code that looked like:scene.camera.controller.viewExtent(extent);should now look like:
scene.camera.viewExtent(extent); -
Finished replacing getter/setter functions with properties:
ImageryLayergetImageryProvider->imageryProvidergetExtent->extent
Billboard,LabelgetShow,setShow->showgetPosition,setPosition->positiongetPixelOffset,setPixelOffset->pixelOffsetgetTranslucencyByDistance,setTranslucencyByDistance->translucencyByDistancegetPixelOffsetScaleByDistance,setPixelOffsetScaleByDistance->pixelOffsetScaleByDistancegetEyeOffset,setEyeOffset->eyeOffsetgetHorizontalOrigin,setHorizontalOrigin->horizontalOrigingetVerticalOrigin,setVerticalOrigin->verticalOrigingetScale,setScale->scalegetId->id
BillboardgetScaleByDistance,setScaleByDistance->scaleByDistancegetImageIndex,setImageIndex->imageIndexgetColor,setColor->colorgetRotation,setRotation->rotationgetAlignedAxis,setAlignedAxis->alignedAxisgetWidth,setWidth->widthgetHeightsetHeight->height
LabelgetText,setText->textgetFont,setFont->fontgetFillColor,setFillColor->fillColorgetOutlineColor,setOutlineColor->outlineColorgetOutlineWidth,setOutlineWidth->outlineWidthgetStyle,setStyle->style
PolygongetPositions,setPositions->positions
PolylinegetShow,setShow->showgetPositions,setPositions->positionsgetMaterial,setMeterial->materialgetWidth,setWidth->widthgetLoop,setLoop->loopgetId->id
OccludergetPosition->positiongetRadius->radiussetCameraPosition->cameraPosition
LeapSecondgetLeapSeconds,setLeapSeconds->leapSeconds
FullscreengetFullscreenElement->elementgetFullscreenChangeEventName->changeEventNamegetFullscreenErrorEventName->errorEventNameisFullscreenEnabled->enabledisFullscreen->fullscreen
EventgetNumberOfListeners->numberOfListeners
EllipsoidGeodesicgetSurfaceDistance->surfaceDistancegetStart->startgetEnd->endgetStartHeading->startHeadinggetEndHeading->endHeading
AnimationCollectiongetAll->all
CentralBodySurfacegetTerrainProvider,setTerrainProvider->terrainProvider
CreditgetText->textgetImageUrl->imageUrlgetLink->link
TerrainData,HightmapTerrainData,QuanitzedMeshTerrainDatagetWaterMask->waterMask
TilegetChildren->children
BuffergetSizeInBytes->sizeInBytesgetUsage->usagegetVertexArrayDestroyable,setVertexArrayDestroyable->vertexArrayDestroyable
CubeMapgetPositiveX->positiveXgetNegativeX->negativeXgetPositiveY->positiveYgetNegativeY->negativeYgetPositiveZ->positiveZgetNegativeZ->negativeZ
CubeMap,TexturegetSampler,setSampler->samplergetPixelFormat->pixelFormatgetPixelDatatype->pixelDatatypegetPreMultiplyAlpha->preMultiplyAlphagetFlipY->flipYgetWidth->widthgetHeight->height
CubeMapFacegetPixelFormat->pixelFormatgetPixelDatatype->pixelDatatype
FramebuffergetNumberOfColorAttachments->numberOfColorAttachmentsgetDepthTexture->depthTexturegetDepthRenderbuffer->depthRenderbuffergetStencilRenderbuffer->stencilRenderbuffergetDepthStencilTexture->depthStencilTexturegetDepthStencilRenderbuffer->depthStencilRenderbufferhasDepthAttachment->hasdepthAttachment
RenderbuffergetFormat->formatgetWidth->widthgetHeight->height
ShaderProgramgetVertexAttributes->vertexAttributesgetNumberOfVertexAttributes->numberOfVertexAttributesgetAllUniforms->allUniformsgetManualUniforms->manualUniforms
TexturegetDimensions->dimensions
TextureAtlasgetBorderWidthInPixels->borderWidthInPixelsgetTextureCoordinates->textureCoordinatesgetTexture->texturegetNumberOfImages->numberOfImagesgetGUID->guid
VertexArraygetNumberOfAttributes->numberOfAttributesgetIndexBuffer->indexBuffer
-
Finished removing prototype functions. (Use 'static' versions of these functions instead):
BoundingRectangleunion,expand
BoundingSphereunion,expand,getPlaneDistances,projectTo2D
PlanegetPointDistance
RaygetPoint
Sphericalnormalize
Extentvalidate,getSouthwest,getNorthwest,getNortheast,getSoutheast,getCenter,intersectWith,contains,isEmpty,subsample
-
DataSourcenow has additional required properties,isLoadingandloadingEventas well as a new optionalupdatemethod which will be called each frame. -
Renamed
Stripematerial uniformslightColoranddarkColortoevenColorandoddColor. -
Replaced
SceneTransitionerwith new functions and properties on theScene:morphTo2D,morphToColumbusView,morphTo3D,completeMorphOnUserInput,morphStart,morphComplete, andcompleteMorph. -
Removed
TexturePool.
-
-
Improved visual quality for translucent objects with Weighted Blended Order-Independent Transparency.
-
Fixed extruded polygons rendered in the southern hemisphere. #1490
-
Fixed Primitive picking that have a closed appearance drawn on the surface. #1333
-
Added
StripeMaterialPropertyfor supporting theStripematerial in DynamicScene. -
loadArrayBuffer,loadBlob,loadJson,loadText, andloadXMLnow support loading data from data URIs. -
The
debugShowBoundingVolumeproperty on primitives now works across all scene modes. -
Eliminated the use of a texture pool for Earth surface imagery textures. The use of the pool was leading to mipmapping problems in current versions of Google Chrome where some tiles would show imagery from entirely unrelated parts of the globe.
b26 - 2014-03-03
- Breaking changes:
- Replaced getter/setter functions with properties:
ScenegetCanvas->canvasgetContext->contextgetPrimitives->primitivesgetCamera->cameragetScreenSpaceCameraController->screenSpaceCameraControllergetFrameState->frameStategetAnimations->animations
CompositePrimitivegetCentralBody,setCentralBody->centralBodygetLength->length
EllipsoidgetRadii->radiigetRadiiSquared->radiiSquaredgetRadiiToTheFourth->radiiToTheFourthgetOneOverRadii->oneOverRadiigetOneOverRadiiSquared->oneOverRadiiSquaredgetMinimumRadius->minimumRadiusgetMaximumRadius->maximumRadius
CentralBodygetEllipsoid->ellipsoidgetImageryLayers->imageryLayers
EllipsoidalOccludergetEllipsoid->ellipsoidgetCameraPosition,setCameraPosition->cameraPosition
EllipsoidTangentPlanegetEllipsoid->ellipsoidgetOrigin->origin
GeographicProjectiongetEllipsoid->ellipsoid
WebMercatorProjectiongetEllipsoid->ellipsoid
SceneTransitionergetScene->scenegetEllipsoid->ellipsoid
ScreenSpaceCameraControllergetEllipsoid,setEllipsoid->ellipsoid
SkyAtmospheregetEllipsoid->ellipsoid
TilingScheme,GeographicTilingScheme,WebMercatorTilingShemegetEllipsoid->ellipsoidgetExtent->extentgetProjection->projection
ArcGisMapServerImageryProvider,BingMapsImageryProvider,GoogleEarthImageryProvider,GridImageryProvider,OpenStreetMapImageryProvider,SingleTileImageryProvider,TileCoordinatesImageryProvider,TileMapServiceImageryProvider,WebMapServiceImageryProvidergetProxy->proxygetTileWidth->tileWidthgetTileHeight->tileHeightgetMaximumLevel->maximumLevelgetMinimumLevel->minimumLevelgetTilingScheme->tilingSchemegetExtent->extentgetTileDiscardPolicy->tileDiscardPolicygetErrorEvent->errorEventisReady->readygetCredit->credit
ArcGisMapServerImageryProvider,BingMapsImageryProvider,GoogleEarthImageryProvider,OpenStreetMapImageryProvider,SingleTileImageryProvider,TileMapServiceImageryProvider,WebMapServiceImageryProvidergetUrl->url
ArcGisMapServerImageryProviderisUsingPrecachedTiles- >usingPrecachedTiles
BingMapsImageryProvidergetKey->keygetMapStyle->mapStyle
GoogleEarthImageryProvidergetPath->pathgetChannel->channelgetVersion->versiongetRequestType->requestType
WebMapServiceImageryProvidergetLayers->layers
CesiumTerrainProvider,EllipsoidTerrainProvider,ArcGisImageServerTerrainProvider,VRTheWorldTerrainProvidergetErrorEvent->errorEventgetCredit->creditgetTilingScheme->tilingSchemeisReady->ready
TimeIntervalCollectiongetChangedEvent->changedEventgetStart->startgetStop->stopgetLength->lengthisEmpty->empty
DataSourceCollection,ImageryLayerCollection,LabelCollection,PolylineCollection,SensorVolumeCollectiongetLength->length
BillboardCollectiongetLength->lengthgetTextureAtlas,setTextureAtlas->textureAtlasgetDestroyTextureAtlas,setDestroyTextureAtlas->destroyTextureAtlas
- Removed
Scene.getUniformState(). Usescene.context.getUniformState(). - Visualizers no longer create a
dynamicObjectproperty on the primitives they create. Instead, they set theidproperty that is standard for all primitives. - The
propertyChangedon DynamicScene objects has been renamed todefinitionChanged. Also, the event is now raised in the case of an existing property being modified as well as having a new property assigned (previously only property assignment would raise the event). - The
visualizerTypesparameter to theDataSouceDisplayhas been changed to a callback function that creates an array of visualizer instances. DynamicDirectionsPropertyandDynamicVertexPositionsPropertywere both removed, they have been superseded byPropertyArrayandPropertyPositionArray, which make it easy for DataSource implementations to create time-dynamic arrays.VisualizerCollectionhas been removed. It is superseded byDataSourceDisplay.DynamicEllipsoidVisualizer,DynamicPolygonVisualizer, andDynamicPolylineVisualizerhave been removed. They are superseded byGeometryVisualizerand correspondingGeometryUpdaterimplementations;EllipsoidGeometryUpdater,PolygonGeometryUpdater,PolylineGeometryUpdater.- Modified
CameraFlightPathfunctions to take place in the camera's current reference frame. The arguments to the function now need to be given in world coordinates and an optional reference frame can be given when the flight is completed. PixelDatatypeproperties are now JavaScript numbers, notEnumerationinstances.combinenow takes two objects instead of an array, and defaults to copying shallow references. TheallowDuplicatesparameter has been removed. In the event of duplicate properties, the first object's properties will be used.- Removed
FeatureDetection.supportsCrossOriginImagery. This check was only useful for very old versions of WebKit.
- Replaced getter/setter functions with properties:
- Added
Modelfor drawing 3D models using glTF. See the tutorial and Sandcastle example. - DynamicScene now makes use of Geometry and Appearances, which provides a tremendous improvements to DataSource visualization (CZML, GeoJSON, etc..). Extruded geometries are now supported and in many use cases performance is an order of magnitude faster.
- Added new
SelectionIndicatorandInfoBoxwidgets toViewer, activated byviewerDynamicObjectMixin. CesiumTerrainProvidernow supports mesh-based terrain like the tiles created by STK Terrain Server.- Fixed rendering artifact on translucent objects when zooming in or out.
- Added
CesiumInspectorwidget for graphics debugging. In Cesium Viewer, it is enabled by using the query parameterinspector=true. Also see the Sandcastle example. - Improved compatibility with Internet Explorer 11.
DynamicEllipse,DynamicPolygon, andDynamicEllipsoidnow have properties matching their geometry counterpart, i.e.EllipseGeometry,EllipseOutlineGeometry, etc. These properties are also available in CZML.- Added a
definitionChangedevent to thePropertyinterface as well as mostDynamicSceneobjects. This makes it easy for a client to observe when new data is loaded into a property or object. - Added an
isConstantproperty to thePropertyinterface. Constant properties do not change in regards to simulation time, i.e.Property.getValuewill always return the same result for all times. ConstantPropertyis now mutable; it's value can be updated viaConstantProperty.setValue.- Improved the quality of imagery near the poles when the imagery source uses a
GeographicTilingScheme. OpenStreetMapImageryProvidernow supports imagery with a minimum level.BingMapsImageryProvidernow uses HTTPS by default for metadata and tiles when the document is loaded over HTTPS.- Added the ability for imagery providers to specify view-dependent attribution to be display in the
CreditDisplay. - View-dependent imagery source attribution is now added to the
CreditDisplayby theBingMapsImageryProvider. - Fixed viewing an extent. #1431
- Fixed camera tilt in ICRF. #544
- Fixed developer error when zooming in 2D. If the zoom would create an invalid frustum, nothing is done. #1432
- Fixed
WallGeometrybug that failed by removing positions that were less close together by less than 6 decimal places. #1483 - Fixed
EllipsoidGeometrytexture coordinates. #1454 - Added a loop property to
Polylines to join the first and last point. #960 - Use
performance.now()instead ofDate.now(), when available, to limit time spent loading terrain and imagery tiles. This results in more consistent frame rates while loading tiles on some systems. RequestErrorEventnow includes the headers that were returned with the error response.- Added
AssociativeArray, which is a helper class for maintaining a hash of objects that also needs to be iterated often. - Added
TimeIntervalCollection.getChangedEventwhich returns an event that will be raised whenever intervals are updated. - Added a second parameter to
Material.fromTypeto override default uniforms. #1522 - Added
Intersections2Dclass containing operations on 2D triangles. - Added
czm_inverseViewProjectionandczm_inverseModelViewProjectionautomatic GLSL uniform.
b25 - 2014-02-03
- Breaking changes:
- The
Viewerconstructor argumentoptions.fullscreenElementnow matches theFullscreenButtondefault ofdocument.body, it was previously theViewercontainer itself. - Removed
Viewer.objectTrackedevent;Viewer.trackedObjectis now an ES5 Knockout observable that can be subscribed to directly. - Replaced
PerformanceDisplaywithScene.debugShowFramesPerSecond. Asphalt,Blob,Brick,Cement,Erosion,Facet,Grass,TieDye, andWoodmaterials were moved to the Materials Pack Plugin.- Renamed
GeometryPipeline.createAttributeIndicestoGeometryPipeline.createAttributeLocations. - Renamed
attributeIndicesproperty toattributeLocationswhen callingContext.createVertexArrayFromGeometry. PerformanceDisplayrequires a DOM element as a parameter.
- The
- Fixed globe rendering in the current Canary version of Google Chrome.
Viewernow monitors the clock settings of the first addedDataSourcefor changes, and also now has a constructor optionautomaticallyTrackFirstDataSourceClockwhich will turn off this behavior.- The
DynamicObjectCollectioncreated byCzmlDataSourcenow sends a singlecollectionChangedevent after CZML is loaded; previously it was sending an event every time an object was created or removed during the load process. - Added
ScreenSpaceCameraController.enableInputsto fix issue with inputs not being restored after overlapping camera flights. - Fixed picking in 2D with rotated map. #1337
TileMapServiceImageryProvidercan now handle casing differences in tilemapresource.xml.OpenStreetMapImageryProvidernow supports imagery with a minimum level.- Added
Quaternion.fastSlerpandQuaternion.fastSquad. - Upgraded Tween.js to version r12.
b24 - 2014-01-06
-
Breaking changes:
-
Added
allowTextureFilterAnisotropic(default:true) andfailIfMajorPerformanceCaveat(default:true) properties to thecontextOptionsproperty passed toViewer,CesiumWidget, andSceneconstructors and moved the existing properties to a newwebglsub-property. For example, code that looked like:var viewer = new Viewer('cesiumContainer', { contextOptions : { alpha : true } });should now look like:
var viewer = new Viewer('cesiumContainer', { contextOptions : { webgl : { alpha : true } } }); -
The read-only
Cartesian3objects must now be cloned to camera properties instead of assigned. For example, code that looked like:camera.up = Cartesian3.UNIT_Z;should now look like:
Cartesian3.clone(Cartesian3.UNIT_Z, camera.up); -
The CSS files for individual widgets, e.g.
BaseLayerPicker.css, no longer import other CSS files. Most applications should importwidgets.css(and optionallylighter.css). -
SvgPathhas been replaced by a Knockout binding:cesiumSvgPath. -
DynamicObject.availabilityis now aTimeIntervalCollectioninstead of aTimeInterval. -
Removed prototype version of
BoundingSphere.transform. -
Matrix4.multiplyByPointnow returns aCartesian3instead of aCartesian4.
-
-
The minified, combined
Cesium.jsfile now omits certainDeveloperErrorchecks, to increase performance and reduce file size. When developing your application, we recommend using the unminified version locally for early error detection, then deploying the minified version to production. -
Fixed disabling
CentralBody.enableLighting. -
Fixed
Geocoderflights when following an object. -
The
Viewerwidget now clearsGeocoderinput when the user clicks the home button. -
The
Geocoderinput type has been changed tosearch, which improves usability (particularly on mobile devices). There were also some other minor styling improvements. -
Added
CentralBody.maximumScreenSpaceError. -
Added
translateEventTypes,zoomEventTypes,rotateEventTypes,tiltEventTypes, andlookEventTypesproperties toScreenSpaceCameraControllerto change the default mouse inputs. -
Added
Billboard.setPixelOffsetScaleByDistance,Label.setPixelOffsetScaleByDistance,DynamicBillboard.pixelOffsetScaleByDistance, andDynamicLabel.pixelOffsetScaleByDistanceto control minimum/maximum pixelOffset scaling based on camera distance. -
Added
BoundingSphere.transformsWithoutScale. -
Added
fromArrayfunction toMatrix2,Matrix3andMatrix4. -
Added
Matrix4.multiplyTransformation,Matrix4.multiplyByPointAsVector.
b23 - 2013-12-02
-
Breaking changes:
-
Changed the
CatmullRomSplineandHermiteSplineconstructors from taking an array of structures to a structure of arrays. For example, code that looked like:var controlPoints = [ { point: new Cartesian3(1235398.0, -4810983.0, 4146266.0), time: 0.0}, { point: new Cartesian3(1372574.0, -5345182.0, 4606657.0), time: 1.5}, { point: new Cartesian3(-757983.0, -5542796.0, 4514323.0), time: 3.0}, { point: new Cartesian3(-2821260.0, -5248423.0, 4021290.0), time: 4.5}, { point: new Cartesian3(-2539788.0, -4724797.0, 3620093.0), time: 6.0} ]; var spline = new HermiteSpline(controlPoints);should now look like:
var spline = new HermiteSpline({ times : [ 0.0, 1.5, 3.0, 4.5, 6.0 ], points : [ new Cartesian3(1235398.0, -4810983.0, 4146266.0), new Cartesian3(1372574.0, -5345182.0, 4606657.0), new Cartesian3(-757983.0, -5542796.0, 4514323.0), new Cartesian3(-2821260.0, -5248423.0, 4021290.0), new Cartesian3(-2539788.0, -4724797.0, 3620093.0) ] }); -
loadWithXhrnow takes an options object, and allows specifying HTTP method and data to send with the request. -
Renamed
SceneTransitioner.onTransitionStarttoSceneTransitioner.transitionStart. -
Renamed
SceneTransitioner.onTransitionCompletetoSceneTransitioner.transitionComplete. -
Renamed
CesiumWidget.onRenderLoopErrortoCesiumWidget.renderLoopError. -
Renamed
SceneModePickerViewModel.onTransitionStarttoSceneModePickerViewModel.transitionStart. -
Renamed
Viewer.onRenderLoopErrortoViewer.renderLoopError. -
Renamed
Viewer.onDropErrortoViewer.dropError. -
Renamed
CesiumViewer.onDropErrortoCesiumViewer.dropError. -
Renamed
viewerDragDropMixin.onDropErrortoviewerDragDropMixin.dropError. -
Renamed
viewerDynamicObjectMixin.onObjectTrackedtoviewerDynamicObjectMixin.objectTracked. -
PixelFormat,PrimitiveType,IndexDatatype,TextureWrap,TextureMinificationFilter, andTextureMagnificationFilterproperties are now JavaScript numbers, notEnumerationinstances. -
Replaced
sizeInBytesproperties onIndexDatatypewithIndexDatatype.getSizeInBytes.
-
-
Added
perPositionHeightoption toPolygonGeometryandPolygonOutlineGeometry. -
Added
QuaternionSplineandLinearSpline. -
Added
Quaternion.log,Quaternion.exp,Quaternion.innerQuadrangle, andQuaternion.squad. -
Added
Matrix3.inverseandMatrix3.determinant. -
Added
ObjectOrientedBoundingBox. -
Added
Ellipsoid.transformPositionFromScaledSpace. -
Added
Math.nextPowerOfTwo. -
Renamed our main website from cesium.agi.com to cesiumjs.org.
b22 - 2013-11-01
-
Breaking changes:
- Reversed the rotation direction of
Matrix3.fromQuaternionto be consistent with graphics conventions. Mirrored change inQuaternion.fromRotationMatrix. - The following prototype functions were removed:
- From
Matrix2,Matrix3, andMatrix4:toArray,getColumn,setColumn,getRow,setRow,multiply,multiplyByVector,multiplyByScalar,negate, andtranspose. - From
Matrix4:getTranslation,getRotation,inverse,inverseTransformation,multiplyByTranslation,multiplyByUniformScale,multiplyByPoint. For example, code that previously looked likematrix.toArray();should now look likeMatrix3.toArray(matrix);.
- From
- Replaced
DynamicPolylinecolor,outlineColor, andoutlineWidthproperties with a singlematerialproperty. - Renamed
DynamicBillboard.nearFarScalartoDynamicBillboard.scaleByDistance. - All data sources must now implement
DataSource.getName, which returns a user-readable name for the data source. - CZML
documentobjects are no longer added to theDynamicObjectCollectioncreated byCzmlDataSource. Use theCzmlDataSourceinterface to access the data instead. TimeInterval.equals, andTimeInterval.equalsEpsilonnow compare interval data as well.- All SVG files were deleted from
Widgets/Imagesand replaced by a newSvgPathclass. - The toolbar widgets (Home, SceneMode, BaseLayerPicker) and the fullscreen button now depend on
CesiumWidget.cssfor global Cesium button styles. - The toolbar widgets expect their
containerto be the toolbar itself now, no need for separate containers for each widget on the bar. Propertyimplementations are now required to implement a prototypeequalsfunction.ConstantPropertyandTimeIntervalCollectionPropertyno longer take aclonefunction and instead require objects to implement prototypecloneandequalsfunctions.- The
SkyBoxconstructor now takes anoptionsargument with asourcesproperty, instead of directly takingsources. - Replaced
SkyBox.getSourceswithSkyBox.sources. - The
bearingproperty ofDynamicEllipseis now calledrotation. - CZML
ellipse.bearingproperty is nowellipse.rotation.
- Reversed the rotation direction of
-
Added a
Geocoderwidget that allows users to enter an address or the name of a landmark and zoom to that location. It is enabled by default in applications that use theViewerwidget. -
Added
GoogleEarthImageryProvider. -
Added
Moonfor drawing the moon, andIauOrientationAxesfor computing the Moon's orientation. -
Added
Material.translucentproperty. Set this property orAppearance.translucentfor correct rendering order. Translucent geometries are rendered after opaque geometries. -
Added
enableLighting,lightingFadeOutDistance, andlightingFadeInDistanceproperties toCentralBodyto configure lighting. -
Added
Billboard.setTranslucencyByDistance,Label.setTranslucencyByDistance,DynamicBillboard.translucencyByDistance, andDynamicLabel.translucencyByDistanceto control minimum/maximum translucency based on camera distance. -
Added
PolylineVolumeGeometryandPolylineVolumeGeometryOutline. -
Added
Shapes.compute2DCircle. -
Added
Appearancestab to Sandcastle with an example for each geometry appearance. -
Added
Scene.drillPickto return list of objects each containing 1 primitive at a screen space position. -
Added
PolylineOutlineMaterialPropertyfor use withDynamicPolyline.material. -
Added the ability to use
ArrayandJulianDateobjects as custom CZML properties. -
Added
DynamicObject.nameand corresponding CZML support. This is a non-unique, user-readable name for the object. -
Added
DynamicObject.parentand corresponding CZML support. This allows forDataSourceobjects to present data hierarchically. -
Added
DynamicPoint.scaleByDistanceto control minimum/maximum point size based on distance from the camera. -
The toolbar widgets (Home, SceneMode, BaseLayerPicker) and the fullscreen button can now be styled directly with user-supplied CSS.
-
Added
skyBoxto theCesiumWidgetandViewerconstructors for changing the default stars. -
Added
Matrix4.fromTranslationQuaternionRotationScaleandMatrix4.multiplyByScale. -
Added
Matrix3.getEigenDecomposition. -
Added utility function
getFilenameFromUri, which given a URI with or without query parameters, returns the last segment of the URL. -
Added prototype versions of
equalsandequalsEpsilonmethod back toCartesian2,Cartesian3,Cartesian4, andQuaternion. -
Added prototype equals function to
NearFarScalar, andTimeIntervalCollection. -
Added
FrameState.events. -
Added
Primitive.allowPickingto save memory when picking is not needed. -
Added
debugShowBoundingVolume, for debugging primitive rendering, toPrimitive,Polygon,ExtentPrimitive,EllipsoidPrimitive,BillboardCollection,LabelCollection, andPolylineCollection. -
Added
DebugModelMatrixPrimitivefor debugging primitive'smodelMatrix. -
Added
optionsargument to theEllipsoidPrimitiveconstructor. -
Upgraded Knockout from version 2.3.0 to 3.0.0.
-
Upgraded RequireJS to version 2.1.9, and Almond to 0.2.6.
-
Added a user-defined
idto all primitives for use with picking. For example:primitives.add(new Polygon({ id : { // User-defined object returned by Scene.pick }, // ... })); // ... var p = scene.pick(/* ... */); if (defined(p) && defined(p.id)) { // Use properties and functions in p.id }
b21 - 2013-10-01
-
Breaking changes:
-
Cesium now prints a reminder to the console if your application uses Bing Maps imagery and you do not supply a Bing Maps key for your application. This is a reminder that you should create a Bing Maps key for your application as soon as possible and prior to deployment. You can generate a Bing Maps key by visiting https://www.bingmapsportal.com/. Set the
BingMapsApi.defaultKeyproperty to the value of your application's key before constructing theCesiumWidgetor any other types that use the Bing Maps API.BingMapsApi.defaultKey = 'my-key-generated-with-bingmapsportal.com'; -
Scene.picknow returns an object with aprimitiveproperty, not the primitive itself. For example, code that looked like:var primitive = scene.pick(/* ... */); if (defined(primitive)) { // Use primitive }should now look like:
var p = scene.pick(/* ... */); if (defined(p) && defined(p.primitive)) { // Use p.primitive } -
Removed
getViewMatrix,getInverseViewMatrix,getInverseTransform,getPositionWC,getDirectionWC,getUpWCandgetRightWCfromCamera. Instead, use theviewMatrix,inverseViewMatrix,inverseTransform,positionWC,directionWC,upWC, andrightWCproperties. -
Removed
getProjectionMatrixandgetInfiniteProjectionMatrixfromPerspectiveFrustum,PerspectiveOffCenterFrustumandOrthographicFrustum. Instead, use theprojectionMatrixandinfiniteProjectionMatrixproperties. -
The following prototype functions were removed:
- From
Quaternion:conjugate,magnitudeSquared,magnitude,normalize,inverse,add,subtract,negate,dot,multiply,multiplyByScalar,divideByScalar,getAxis,getAngle,lerp,slerp,equals,equalsEpsilon - From
Cartesian2,Cartesian3, andCartesian4:getMaximumComponent,getMinimumComponent,magnitudeSquared,magnitude,normalize,dot,multiplyComponents,add,subtract,multiplyByScalar,divideByScalar,negate,abs,lerp,angleBetween,mostOrthogonalAxis,equals, andequalsEpsilon. - From
Cartesian3:cross
Code that previously looked like
quaternion.magnitude();should now look likeQuaternion.magnitude(quaternion);. - From
-
DynamicObjectCollectionandCompositeDynamicObjectCollectionhave been largely re-written, see the documentation for complete details. Highlights include:getObjecthas been renamedgetById.removeObjecthas been renamedremoveById.collectionChangedevent added for notification of objects being added or removed.
-
DynamicScenegraphics object (DynamicBillboard, etc...) have had their staticmergePropertiesandcleanfunctions removed. -
UniformState.updatenow takes a context as its first parameter. -
Cameraconstructor now takes a context instead of a canvas. -
SceneTransforms.clipToWindowCoordinatesnow takes a context instead of a canvas. -
Removed
canvasDimensionsfromFrameState. -
Removed
contextoption fromMaterialconstructor and parameter fromMaterial.fromType. -
Renamed
TextureWrap.CLAMPtoTextureWrap.CLAMP_TO_EDGE.
-
-
Added
Geometriestab to Sandcastle with an example for each geometry type. -
Added
CorridorOutlineGeometry. -
Added
PolylineGeometry,PolylineColorAppearance, andPolylineMaterialAppearance. -
Added
colorsoption toSimplePolylineGeometryfor per vertex or per segment colors. -
Added proper support for browser zoom.
-
Added
propertyChangedevent toDynamicScenegraphics objects for receiving change notifications. -
Added prototype
cloneandmergefunctions toDynamicScenegraphics objects. -
Added
width,height, andnearFarScalarproperties toDynamicBillboardfor controlling the image size. -
Added
headingandtiltproperties toCameraController. -
Added
Scene.sunBloomto enable/disable the bloom filter on the sun. The bloom filter should be disabled for better frame rates on mobile devices. -
Added
getDrawingBufferWidthandgetDrawingBufferHeighttoContext. -
Added new built-in GLSL functions
czm_getLambertDiffuseandczm_getSpecular. -
Added support for EXT_frag_depth.
-
Improved graphics performance.
- An Everest terrain view went from 135-140 to over 150 frames per second.
- Rendering over a thousand polylines in the same collection with different materials went from 20 to 40 frames per second.
-
Improved runtime generation of GLSL shaders.
-
Made sun size accurate.
-
Fixed bug in triangulation that fails on complex polygons. Instead, it makes a best effort to render what it can. #1121
-
Fixed geometries not closing completely. #1093
-
Fixed
EllipsoidTangentPlane.projectPointOntoPlanefor tangent planes on an ellipsoid other than the unit sphere. -
CompositePrimitive.addnow returns the added primitive. This allows us to write more concise code.var p = new Primitive(/* ... */); primitives.add(p); return p;becomes
return primitives.add(new Primitive(/* ... */));
b20 - 2013-09-03
This releases fixes 2D and other issues with Chrome 29.0.1547.57 (#1002 and #1047).
-
Breaking changes:
-
The
CameraFlightPathfunctionscreateAnimation,createAnimationCartographic, andcreateAnimationExtentnow takesceneas their first parameter instead offrameState. -
Completely refactored the
DynamicSceneproperty system to vastly improve the API. See #1080 for complete details.- Removed
CzmlBoolean,CzmlCartesian2,CzmlCartesian3,CzmlColor,CzmlDefaults,CzmlDirection,CzmlHorizontalOrigin,CzmlImage,CzmlLabelStyle,CzmlNumber,CzmlPosition,CzmlString,CzmlUnitCartesian3,CzmlUnitQuaternion,CzmlUnitSpherical, andCzmlVerticalOriginsince they are no longer needed. - Removed
DynamicProperty,DynamicMaterialProperty,DynamicDirectionsProperty, andDynamicVertexPositionsProperty; replacing them with an all new system of properties.Property- base interface for all properties.CompositeProperty- a property composed of other properties.ConstantProperty- a property whose value never changes.SampledProperty- a property whose value is interpolated from a set of samples.TimeIntervalCollectionProperty- a property whose value changes based on time interval.MaterialProperty- base interface for all material properties.CompositeMaterialProperty- aCompositePropertyfor materials.ColorMaterialProperty- a property that maps to a color material. (replacesDynamicColorMaterial)GridMaterialProperty- a property that maps to a grid material. (replacesDynamicGridMaterial)ImageMaterialProperty- a property that maps to an image material. (replacesDynamicImageMaterial)PositionProperty- base interface for all position properties.CompositePositionProperty- aCompositePropertyfor positions.ConstantPositionProperty- aPositionPropertywhose value does not change in respect to theReferenceFramein which is it defined.SampledPositionProperty- aSampledPropertyfor positions.TimeIntervalCollectionPositionProperty- ATimeIntervalCollectionPropertyfor positions.
- Removed
-
Removed
processCzml, useCzmlDataSourceinstead. -
Source/Widgets/Viewer/lighter.csswas deleted, useSource/Widgets/lighter.cssinstead. -
Replaced
ExtentGeometryparameters for extruded extent to make them consistent with other geometries.options.extrudedOptions.height->options.extrudedHeightoptions.extrudedOptions.closeTop->options.closeBottomoptions.extrudedOptions.closeBottom->options.closeTop
-
Geometry constructors no longer compute vertices or indices. Use the type's
createGeometrymethod. For example, code that looked like:var boxGeometry = new BoxGeometry({ minimumCorner : min, maximumCorner : max, vertexFormat : VertexFormat.POSITION_ONLY });should now look like:
var box = new BoxGeometry({ minimumCorner : min, maximumCorner : max, vertexFormat : VertexFormat.POSITION_ONLY }); var geometry = BoxGeometry.createGeometry(box); -
Removed
createTypedArrayandcreateArrayBufferViewfrom each of theComponentDatatypeenumerations. Instead, useComponentDatatype.createTypedArrayandComponentDatatype.createArrayBufferView. -
DataSourceDisplaynow requires aDataSourceCollectionto be passed into its constructor. -
DeveloperErrorandRuntimeErrorno longer contain anerrorproperty. CalltoString, or check thestackproperty directly instead. -
Replaced
createPickFragmentShaderSourcewithcreateShaderSource. -
Renamed
PolygonPipeline.earClip2DtoPolygonPipeline.triangulate.
-
-
Added outline geometries. #1021.
-
Added
CorridorGeometry. -
Added
Billboard.scaleByDistanceandNearFarScalarto control billboard minimum/maximum scale based on camera distance. -
Added
EllipsoidGeodesic. -
Added
PolylinePipeline.scaleToSurface. -
Added
PolylinePipeline.scaleToGeodeticHeight. -
Added the ability to specify a
minimumTerrainLevelandmaximumTerrainLevelwhen constructing anImageryLayer. The layer will only be shown for terrain tiles within the specified range. -
Added
Math.setRandomNumberSeedandMath.nextRandomNumberfor generating repeatable random numbers. -
Added
Color.fromRandomto generate random and partially random colors. -
Added an
onCancelcallback toCameraFlightPathfunctions that will be executed if the flight is canceled. -
Added
Scene.debugShowFrustumsandScene.debugFrustumStatisticsfor rendering debugging. -
Added
PackableandPackableForInterpolationinterfaces to aid interpolation and in-memory data storage. Also made most core Cesium types implement them. -
Added
InterpolationAlgorithminterface to codify the base interface already being used byLagrangePolynomialApproximation,LinearApproximation, andHermitePolynomialApproximation. -
Improved the performance of polygon triangulation using an O(n log n) algorithm.
-
Improved geometry batching performance by moving work to a web worker.
-
Improved
WallGeometryto follow the curvature of the earth. -
Improved visual quality of closed translucent geometries.
-
Optimized polyline bounding spheres.
-
Viewernow automatically sets its clock to that of the first addedDataSource, regardless of how it was added to theDataSourceCollection. Previously, this was only done for dropped files byviewerDragDropMixin. -
CesiumWidgetandViewernow display an HTML error panel if an error occurs while rendering, which can be disabled with a constructor option. -
CameraFlightPathnow automatically disables and restores mouse input for the flights it generates. -
Fixed broken surface rendering in Columbus View when using the
EllipsoidTerrainProvider. -
Fixed triangulation for polygons that cross the international date line.
-
Fixed
EllipsoidPrimitiverendering for some oblate ellipsoids. #1067. -
Fixed Cesium on Nexus 4 with Android 4.3.
-
Upgraded Knockout from version 2.2.1 to 2.3.0.
b19 - 2013-08-01
- Breaking changes:
- Replaced tessellators and meshes with geometry. In particular:
- Replaced
CubeMapEllipsoidTessellatorwithEllipsoidGeometry. - Replaced
BoxTessellatorwithBoxGeometry. - Replaced
ExtentTessleatorwithExtentGeometry. - Removed
PlaneTessellator. It was incomplete and not used. - Renamed
MeshFilterstoGeometryPipeline. - Renamed
MeshFilters.toWireframeInPlacetoGeometryPipeline.toWireframe. - Removed
MeshFilters.mapAttributeIndices. It was not used. - Renamed
Context.createVertexArrayFromMeshtoContext.createVertexArrayFromGeometry. Likewise, renamedmeshconstructor property togeometry.
- Replaced
- Renamed
ComponentDatatype.*.toTypedArraytoComponentDatatype.*.createTypedArray. - Removed
Polygon.configureExtent. UseExtentPrimitiveinstead. - Removed
Polygon.bufferUsage. It is no longer needed. - Removed
heightandtextureRotationAnglearguments fromPolygonsetPositionsandconfigureFromPolygonHierarchyfunctions. UsePolygonheightandtextureRotationAngleproperties. - Renamed
PolygonPipeline.cleanUptoPolygonPipeline.removeDuplicates. - Removed
PolygonPipeline.wrapLongitude. UseGeometryPipeline.wrapLongitudeinstead. - Added
surfaceHeightparameter toBoundingSphere.fromExtent3D. - Added
surfaceHeightparameter toExtent.subsample. - Renamed
pointInsideTriangle2DtopointInsideTriangle. - Renamed
getLogotogetCreditforImageryProviderandTerrainProvider.
- Replaced tessellators and meshes with geometry. In particular:
- Added Geometry and Appearances #911.
- Added property
intersectionWidthtoDynamicCone,DynamicPyramid,CustomSensorVolume, andRectangularPyramidSensorVolume. - Added
ExtentPrimitive. - Added
PolylinePipeline.removeDuplicates. - Added
barycentricCoordinatesto compute the barycentric coordinates of a point in a triangle. - Added
BoundingSphere.fromEllipsoid. - Added
BoundingSphere.projectTo2D. - Added
Extent.fromDegrees. - Added
czm_tangentToEyeSpaceMatrixbuilt-in GLSL function. - Added debugging aids for low-level rendering:
DrawCommand.debugShowBoundingVolumeandScene.debugCommandFilter. - Added extrusion to
ExtentGeometry. - Added
CreditandCreditDisplayfor displaying credits on the screen. - Improved performance and visual quality of
CustomSensorVolumeandRectangularPyramidSensorVolume. - Improved the performance of drawing polygons created with
configureFromPolygonHierarchy.
b18 - 2013-07-01
- Breaking changes:
- Removed
CesiumViewerWidgetand replaced it with a newViewerwidget with mixin architecture. This new widget does not depend on Dojo and is part of the combined Cesium.js file. It is intended to be a flexible base widget for easily building robust applications. (#838) - Changed all widgets to use ECMAScript 5 properties. All public observable properties now must be accessed and assigned as if they were normal properties, instead of being called as functions. For example:
clockViewModel.shouldAnimate()->clockViewModel.shouldAnimateclockViewModel.shouldAnimate(true);->clockViewModel.shouldAnimate = true;
ImageryProviderViewModel.fromConstantshas been removed. Use theImageryProviderViewModelconstructor directly.- Renamed the
transitionerproperty onCesiumWidget,HomeButton, andScreenModePickertosceneTransitionerto be consistent with property naming convention. ImageryProvider.loadImagenow requires that the calling imagery provider instance be passed as its first parameter.- Removed the Dojo-based
checkForChromeFramefunction, and replaced it with a new standalone version that returns a promise to signal when the asynchronous check has completed. - Removed
Assets/Textures/NE2_LR_LC_SR_W_DR_2048.jpg. If you were previously using this image withSingleTileImageryProvider, consider instead usingTileMapServiceImageryProviderwith a URL ofAssets/Textures/NaturalEarthII. - The
Client CZMLSandCastle demo has been removed, largely because it is redundant with the Simple CZML demo. - The
Two Viewer WidgetsSandCastle demo has been removed. We will add back a multi-scene example when we have a good architecture for it in place. - Changed static
clonefunctions in all objects such that if the object being cloned is undefined, the function will return undefined instead of throwing an exception.
- Removed
- Fix resizing issues in
CesiumWidget(#608, #834). - Added initial support for GeoJSON and TopoJSON. (#890, #906)
- Added rotation, aligned axis, width, and height properties to
Billboards. - Improved the performance of "missing tile" checking, especially for Bing imagery.
- Improved the performance of terrain and imagery refinement, especially when using a mixture of slow and fast imagery sources.
TileMapServiceImageryProvidernow supports imagery with a minimum level. This improves compatibility with tile sets generated by MapTiler or gdal2tiles.py using their default settings.- Added
Context.getAntialias. - Improved test robustness on Mac.
- Upgraded RequireJS to version 2.1.6, and Almond to 0.2.5.
- Fixed artifacts that showed up on the edges of imagery tiles on a number of GPUs.
- Fixed an issue in
BaseLayerPickerwhere destroy wasn't properly cleaning everything up. - Added the ability to unsubscribe to
Timelineupdate event. - Added a
screenSpaceEventHandlerproperty toCesiumWidget. Also added asceneModeoption to the constructor to set the initial scene mode. - Added
useDefaultRenderLoopproperty toCesiumWidgetthat allows the default render loop to be disabled so that a custom render loop can be used. - Added
CesiumWidget.onRenderLoopErrorwhich is anEventthat is raised if an exception is generated inside of the default render loop. ImageryProviderViewModel.creationCommandcan now return an array of ImageryProvider instances, which allows adding multiple layers when a single item is selected in theBaseLayerPickerwidget.
b17 - 2013-06-03
- Breaking changes:
- Replaced
Uniform.getFrameNumberandUniform.getTimewithUniform.getFrameState, which returns the full frame state. - Renamed
Widgets/Fullscreenfolder toWidgets/FullscreenButtonalong with associated objects/files.FullscreenWidget->FullscreenButtonFullscreenViewModel->FullscreenButtonViewModel
- Removed
addAttribute,removeAttribute, andsetIndexBufferfromVertexArray. They were not used.
- Replaced
- Added support for approximating local vertical, local horizontal (LVLH) reference frames when using
DynamicObjectViewin 3D. The object automatically selects LVLH or EastNorthUp based on the object's velocity. - Added support for CZML defined vectors via new
CzmlDirection,DynamicVector, andDynamicVectorVisualizerobjects. - Added
SceneTransforms.wgs84ToWindowCoordinates. #746. - Added
fromElementstoCartesian2,Cartesian3, andCartesian4. - Added
DrawCommand.cullto avoid redundant visibility checks. - Added
czm_morphTimeautomatic GLSL uniform. - Added support for OES_vertex_array_object, which improves rendering performance.
- Added support for floating-point textures.
- Added
IntersectionTests.trianglePlaneIntersection. - Added
computeHorizonCullingPoint,computeHorizonCullingPointFromVertices, andcomputeHorizonCullingPointFromExtentmethods toEllipsoidalOccluderand used them to build a more accurate horizon occlusion test for terrain rendering. - Added sun visualization. See
SunandScene.sun. - Added a new
HomeButtonwidget for returning to the default view of the current scene mode. - Added
Command.beforeExecuteandCommand.afterExecuteevents to enable additional processing when a command is executed. - Added rotation parameter to
Polygon.configureExtent. - Added camera flight to extents. See new methods
CameraController.getExtentCameraCoordinatesandCameraFlightPath.createAnimationExtent. - Improved the load ordering of terrain and imagery tiles, so that relevant detail is now more likely to be loaded first.
- Improved appearance of the Polyline arrow material.
- Fixed polyline clipping artifact. #728.
- Fixed polygon crossing International Date Line for 2D and Columbus view. #99.
- Fixed issue for camera flights when
frameState.mode === SceneMode.MORPHING. - Fixed ISO8601 date parsing when UTC offset is specified in the extended format, such as
2008-11-10T14:00:00+02:30.
b16 - 2013-05-01
-
Breaking changes:
-
Removed the color, outline color, and outline width properties of polylines. Instead, use materials for polyline color and outline properties. Code that looked like:
var polyline = polylineCollection.add({ positions : positions, color : new Color(1.0, 1.0, 1.0, 1.0), outlineColor : new Color(1.0, 0.0, 0.0, 1.0), width : 1.0, outlineWidth : 3.0 });should now look like:
var outlineMaterial = Material.fromType(context, Material.PolylineOutlineType); outlineMaterial.uniforms.color = new Color(1.0, 1.0, 1.0, 1.0); outlineMaterial.uniforms.outlineColor = new Color(1.0, 0.0, 0.0, 1.0); outlineMaterial.uniforms.outlinewidth = 2.0; var polyline = polylineCollection.add({ positions : positions, width : 3.0, material : outlineMaterial }); -
CzmlCartographichas been removed and all cartographic values are converted to Cartesian internally during CZML processing. This improves performance and fixes interpolation of cartographic source data. The Cartographic representation can still be retrieved if needed. -
Removed
ComplexConicSensorVolume, which was not documented and did not work on most platforms. It will be brought back in a future release. This does not affect CZML, which uses a custom sensor to approximate a complex conic. -
Replaced
computeSunPositionwithSimon1994PlanetaryPosition, which has functions to calculate the position of the sun and the moon more accurately. -
Removed
Context.createClearState. These properties are now part ofClearCommand. -
RenderStateobjects returned fromContext.createRenderStateare now immutable. -
Removed
positionMCfromczm_materialInput. It is no longer used by any materials.
-
-
Added wide polylines that work with and without ANGLE.
-
Polylines now use materials to describe their surface appearance. See the Fabric wiki page for more details on how to create materials.
-
Added new
PolylineOutline,PolylineGlow,PolylineArrow, andFadematerials. -
Added
czm_pixelSizeInMetersautomatic GLSL uniform. -
Added
AnimationViewModel.snapToTicks, which when set to true, causes the shuttle ring on the Animation widget to snap to the defined tick values, rather than interpolate between them. -
Added
Color.toRgbaandColor.fromRgbato convert to/from numeric unsigned 32-bit RGBA values. -
Added
GridImageryProviderfor custom rendering effects and debugging. -
Added new
Gridmaterial. -
Made
EllipsoidPrimitivedouble-sided. -
Improved rendering performance by minimizing WebGL state calls.
-
Fixed an error in Web Worker creation when loading Cesium.js from a different origin.
-
Fixed
EllipsoidPrimitivepicking and picking objects with materials that have transparent parts. -
Fixed imagery smearing artifacts on mobile devices and other devices without high-precision fragment shaders.
b15 - 2013-04-01
- Breaking changes:
Billboard.computeScreenSpacePositionnow takesContextandFrameStatearguments instead of aUniformStateargument.- Removed
clampToPixelproperty fromBillboardCollectionandLabelCollection. This option is no longer needed due to overall LabelCollection visualization improvements. - Removed
Widgets/Dojo/CesiumWidgetand replaced it withWidgets/CesiumWidget, which has no Dojo dependencies. destroyObjectno longer deletes properties from the object being destroyed.darker.cssfiles have been deleted and thedarkertheme is now the default style for widgets. The original theme is now known aslighterand is in correspondinglighter.cssfiles.- CSS class names have been standardized to avoid potential collisions. All widgets now follow the same pattern,
cesium-<widget>-<className>. - Removed
view2D,view3D, andviewColumbusproperties fromCesiumViewerWidget. Use thesceneTransitionerproperty instead.
- Added
BoundingSphere.fromCornerPoints. - Added
fromArrayanddistancefunctions toCartesian2,Cartesian3, andCartesian4. - Added
DynamicPath.resolutionproperty for setting the maximum step size, in seconds, to take when sampling a position for path visualization. - Added
TileCoordinatesImageryProviderthat renders imagery with tile X, Y, Level coordinates on the surface of the globe. This is mostly useful for debugging. - Added
DynamicEllipseandDynamicObject.ellipseproperty to render CZML ellipses on the globe. - Added
sampleTerrainfunction to sample the terrain height of a list ofCartographicpositions. - Added
DynamicObjectCollection.removeObjectand handling of the new CZMLdeleteproperty. - Imagery layers with an
alphaof exactly 0.0 are no longer rendered. Previously these invisible layers were rendered normally, which was a waste of resources. Unlike theshowproperty, imagery tiles in a layer with analphaof 0.0 are still downloaded, so the layer will become visible more quickly when itsalphais increased. - Added
onTransitionStartandonTransitionCompleteevents toSceneModeTransitioner. - Added
SceneModePicker; a new widget for morphing between scene modes. - Added
BaseLayerPicker; a new widget for switching among pre-configured base layer imagery providers.
b14 - 2013-03-01
- Breaking changes:
- Major refactoring of both animation and widgets systems as we move to an MVVM-like architecture for user interfaces.
- New
Animationwidget for controlling playback. - AnimationController.js has been deleted.
ClockStep.SYSTEM_CLOCK_DEPENDENTwas renamed toClockStep.SYSTEM_CLOCK_MULTIPLIER.ClockStep.SYSTEM_CLOCKwas added to have the clock always match the system time.ClockRange.LOOPwas renamed toClockRange.LOOP_STOPand now only loops in the forward direction.Clock.reverseTickwas removed, simply negateClock.multiplierand pass it toClock.tick.Clock.shouldAnimatewas added to indicate ifClock.tickshould actually advance time.- The Timeline widget was moved into the Widgets/Timeline subdirectory.
Dojo/TimelineWidgetwas removed. You should use the non-toolkit specific Timeline widget directly.
- New
- Removed
CesiumViewerWidget.fullScreenElement, instead use theCesiumViewerWidget.fullscreen.viewModel.fullScreenElementobservable property. IntersectionTests.rayPlanenow takes the newPlanetype instead of separateplaneNormalandplaneDarguments.- Renamed
ImageryProviderErrortoTileProviderError.
- Major refactoring of both animation and widgets systems as we move to an MVVM-like architecture for user interfaces.
- Added support for global terrain visualization via
CesiumTerrainProvider,ArcGisImageServerTerrainProvider, andVRTheWorldTerrainProvider. See the Terrain Tutorial for more information. - Added
FullscreenWidgetwhich is a simple, single-button widget that toggles fullscreen mode of the specified element. - Added interactive extent drawing to the
PickingSandcastle example. - Added
HeightmapTessellatorto create a mesh from a heightmap. - Added
JulianDate.equals. - Added
Planefor representing the equation of a plane. - Added a line segment-plane intersection test to
IntersectionTests. - Improved the lighting used in 2D and Columbus View modes. In general, the surface lighting in these modes should look just like it does in 3D.
- Fixed an issue where a
PolylineCollectionwith a model matrix other than the identity would be incorrectly rendered in 2D and Columbus view. - Fixed an issue in the
ScreenSpaceCameraControllerwhere disabled mouse events can cause the camera to be moved after being re-enabled.
b13 - 2013-02-01
- Breaking changes:
- The combined
Cesium.jsfile and other required files are now created inBuild/CesiumandBuild/CesiumUnminifiedfolders. - The Web Worker files needed when using the combined
Cesium.jsfile are now in aWorkerssubdirectory. - Removed
erosionproperty fromPolygon,ComplexConicSensorVolume,RectangularPyramidSensorVolume, andComplexConicSensorVolume. Use the newErosionmaterial. See the Sandbox Animation example. - Removed
setRectangleandgetRectanglemethods fromViewportQuad. Use the newrectangleproperty. - Removed
timeparameter fromScene.initializeFrame. Instead, pass the time toScene.render.
- The combined
- Added new
RimLightingandErosionmaterials. See the Fabric wiki page. - Added
hueandsaturationproperties toImageryLayer. - Added
czm_hueandczm_saturationto adjust the hue and saturation of RGB colors. - Added
JulianDate.getDaysDifferencemethod. - Added
Transforms.computeIcrfToFixedMatrixandcomputeFixedToIcrfMatrix. - Added
EarthOrientationParameters,EarthOrientationParametersSample,Iau2006XysData, andIau2006XysDataSampleclasses toCore. - CZML now supports the ability to specify positions in the International Celestial Reference Frame (ICRF), and inertial reference frame.
- Fixed globe rendering on the Nexus 4 running Google Chrome Beta.
ViewportQuadnow supports the material system. See the Fabric wiki page.- Fixed rendering artifacts in
EllipsoidPrimitive. - Fixed an issue where streaming CZML would fail when changing material types.
- Updated Dojo from 1.7.2 to 1.8.4. Reminder: Cesium does not depend on Dojo but uses it for reference applications.
b12a - 2013-01-18
-
Breaking changes:
-
Renamed the
serverproperty tourlwhen constructing aBingMapsImageryProvider. Likewise, renamedBingMapsImageryProvider.getServertoBingMapsImageryProvider.getUrl. Code that looked likevar bing = new BingMapsImageryProvider({ server : 'dev.virtualearth.net' });should now look like:
var bing = new BingMapsImageryProvider({ url : 'http://dev.virtualearth.net' }); -
Renamed
toCSSColortotoCssColorString. -
Moved
minimumZoomDistanceandmaximumZoomDistancefrom theCameraControllerto theScreenSpaceCameraController.
-
-
Added
fromCssColorStringtoColorto create aColorinstance from any CSS value. -
Added
fromHsltoColorto create aColorinstance from H, S, L values. -
Added
Scene.backgroundColor. -
Added
textureRotationAngleparameter toPolygon.setPositionsandPolygon.configureFromPolygonHierarchyto rotate textures on polygons. -
Added
Matrix3.fromRotationX,Matrix3.fromRotationY,Matrix3.fromRotationZ, andMatrix2.fromRotation. -
Added
fromUniformScaletoMatrix2,Matrix3, andMatrix4. -
Added
fromScaletoMatrix2. -
Added
multiplyByUniformScaletoMatrix4. -
Added
flipYproperty when callingContext.createTexture2DandContext.createCubeMap. -
Added
MeshFilters.encodePositionandEncodedCartesian3.encode. -
Fixed jitter artifacts with polygons.
-
Fixed camera tilt close to the
minimumZoomDistance. -
Fixed a bug that could lead to blue tiles when zoomed in close to the North and South poles.
-
Fixed a bug where removing labels would remove the wrong label and ultimately cause a crash.
-
Worked around a bug in Firefox 18 preventing typed arrays from being transferred to or from Web Workers.
-
Upgraded RequireJS to version 2.1.2, and Almond to 0.2.3.
-
Updated the default Bing Maps API key.
b12 - 2013-01-03
- Breaking changes:
- Renamed
EventHandlertoScreenSpaceEventHandler. - Renamed
MouseEventTypetoScreenSpaceEventType. - Renamed
MouseEventType.MOVEtoScreenSpaceEventType.MOUSE_MOVE. - Renamed
CameraEventHandlertoCameraEventAggregator. - Renamed all
*MouseActionto*InputAction(including get, set, remove, etc). - Removed
Camera2DController,CameraCentralBodyController,CameraColumbusViewController,CameraFlightController,CameraFreeLookController,CameraSpindleController, andCameraControllerCollection. Common ways to modify the camera are through theCameraControllerobject of theCameraand will work in all scene modes. The default camera handler is theScreenSpaceCameraControllerobject on theScene. - Changed default Natural Earth imagery to a 2K version of Natural Earth II with Shaded Relief, Water, and Drainages. The previously used version did not include lakes and rivers. This replaced
Source/Assets/Textures/NE2_50M_SR_W_2048.jpgwithSource/Assets/Textures/NE2_LR_LC_SR_W_DR_2048.jpg.
- Renamed
- Added pinch-zoom, pinch-twist, and pinch-tilt for touch-enabled browsers (particularly mobile browsers).
- Improved rendering support on Nexus 4 and Nexus 7 using Firefox.
- Improved camera flights.
- Added Sandbox example using NASA's new Black Marble night imagery.
- Added constrained z-axis by default to the Cesium widgets.
- Upgraded Jasmine from version 1.1.0 to 1.3.0.
- Added
JulianDate.toIso8601, which creates an ISO8601 compliant representation of a JulianDate. - The
Timelinewidget now properly displays leap seconds.
b11 - 2012-12-03
- Breaking changes:
- Widget render loop now started by default. Startup code changed, see Sandcastle examples.
- Changed
Timeline.makeLabelto take aJulianDateinstead of a JavaScript date parameter. - Default Earth imagery has been moved to a new package
Assets. Images used bySandcastleexamples have been moved to the Sandcastle folder, and images used by the Dojo widgets are now self-contained in theWidgetspackage. positionToEyeECinczm_materialInputis no longer normalized by default.FullScreenand related functions have been renamed toFullscreento match the W3C standard name.Fullscreen.isFullscreenEnabledwas incorrectly implemented in certain browsers.isFullscreenEnablednow correctly determines whether the browser will allow an element to go fullscreen. A newisFullscreenfunction is available to determine if the browser is currently in fullscreen mode.Fullscreen.getFullScreenChangeEventNameandFullscreen.getFullScreenChangeEventNamenow return the proper event name, suitable for use with theaddEventListenerAPI, instead prefixing them with "on".- Removed
Scene.setSunPositionandScene.getSunPosition. The sun position used for lighting is automatically computed based on the scene's time. - Removed a number of rendering options from
CentralBody, including the ground atmosphere, night texture, specular map, cloud map, cloud shadows, and bump map. These features weren't really production ready and had a disproportionate cost in terms of shader complexity and compilation time. They may return in a more polished form in a future release. - Removed
affectedByLightingproperty fromPolygon,EllipsoidPrimitive,RectangularPyramidSensorVolume,CustomSensorVolume, andComplexConicSensorVolume. - Removed
DistanceIntervalMaterial. This was not documented. Matrix2.getElementIndex,Matrix3.getElementIndex, andMatrix4.getElementIndexfunctions have had their parameters swapped and now take row first and column second. This is consistent with other class constants, such as Matrix2.COLUMN1ROW2.- Replaced
CentralBody.showSkyAtmospherewithScene.skyAtmosphereandSkyAtmosphere. This has no impact for those using the Cesium widget.
- Improved lighting in Columbus view and on polygons, ellipsoids, and sensors.
- Fixed atmosphere rendering artifacts and improved Columbus view transition.
- Fixed jitter artifacts with billboards and polylines.
- Added
TileMapServiceImageryProvider. See the Imagery LayersSandcastleexample. - Added
Watermaterial. See the MaterialsSandcastleexample. - Added
SkyBoxto draw stars. AddedCesiumWidget.showSkyBoxandCesiumViewerWidget.showSkyBox. - Added new
Matrix4functions:Matrix4.multiplyByTranslation,multiplyByPoint, andMatrix4.fromScale. AddedMatrix3.fromScale. - Added
EncodedCartesian3, which is used to eliminate jitter when drawing primitives. - Added new automatic GLSL uniforms:
czm_frameNumber,czm_temeToPseudoFixed,czm_entireFrustum,czm_inverseModel,czm_modelViewRelativeToEye,czm_modelViewProjectionRelativeToEye,czm_encodedCameraPositionMCHigh, andczm_encodedCameraPositionMCLow. - Added
czm_translateRelativeToEyeandczm_luminanceGLSL functions. - Added
shininesstoczm_materialInput. - Added
QuadraticRealPolynomial,CubicRealPolynomial, andQuarticRealPolynomialfor finding the roots of quadratic, cubic, and quartic polynomials. - Added
IntersectionTests.grazingAltitudeLocationfor finding a point on a ray nearest to an ellipsoid. - Added
mostOrthogonalAxisfunction toCartesian2,Cartesian3, andCartesian4. - Changed CesiumViewerWidget default behavior so that zooming to an object now requires a single left-click, rather than a double-click.
- Updated third-party Tween.js.
b10 - 2012-11-02
- Breaking changes:
- Renamed
Texture2DPooltoTexturePool. - Renamed
BingMapsTileProvidertoBingMapsImageryProvider. - Renamed
SingleTileProvidertoSingleTileImageryProvider. - Renamed
ArcGISTileProvidertoArcGisMapServerImageryProvider. - Renamed
EquidistantCylindricalProjectiontoGeographicProjection. - Renamed
MercatorProjectiontoWebMercatorProjection. CentralBody.dayTileProviderhas been removed. Instead, add one or more imagery providers to the collection returned byCentralBody.getImageryLayers().- The
description.generateTextureCoordsparameter passed toExtentTessellator.computeis now calleddescription.generateTextureCoordinates. - Renamed
bringForward,sendBackward,bringToFront, andsendToBackmethods onCompositePrimitivetoraise,lower,raiseToTop, andlowerToBottom, respectively. CacheandCachePolicyare no longer used and have been removed.- Fixed problem with Dojo widget startup, and removed "postSetup" callback in the process. See Sandcastle examples and update your startup code.
- Renamed
CentralBodynow allows imagery from multiple sources to be layered and alpha blended on the globe. See the newImagery LayersandMap ProjectionsSandcastle examples.- Added
WebMapServiceImageryProvider. - Improved middle mouse click behavior to always tilt in the same direction.
- Added
getElementIndextoMatrix2,Matrix3, andMatrix4.
b9 - 2012-10-01
- Breaking changes:
- Removed the
renderandrenderForPickfunctions of primitives. The primitiveupdatefunction updates a list of commands for the renderer. For more details, see the Data Driven Renderer. - Removed
Context.getViewportandContext.setViewport. The viewport defaults to the size of the canvas if a primitive does not override the viewport property in the render state. shallowEqualshas been removed.- Passing
undefinedto any of the set functions onBillboardnow throws an exception. - Passing
undefinedto any of the set functions onPolylinenow throws an exception. PolygonPipeline.scaleToGeodeticHeightnow takes ellipsoid as the last parameter, instead of the first. It also now defaults toEllipsoid.WGS84if no parameter is provided.
- Removed the
- The new Sandcastle live editor and demo gallery replace the Sandbox and Skeleton examples.
- Improved picking performance and accuracy.
- Added EllipsoidPrimitive for visualizing ellipsoids and spheres. Currently, this is only supported in 3D, not 2D or Columbus view.
- Added
DynamicEllipsoidandDynamicEllipsoidVisualizerwhich use the newEllipsoidPrimitiveto implement ellipsoids in CZML. Extentfunctions now take optional result parameters. Also addedgetCenter,intersectWith, andcontainsfunctions.- Add new utility class,
DynamicObjectViewfor tracking a DynamicObject with the camera across scene modes; also hooked up CesiumViewerWidget to use it. - Added
enableTranslate,enableZoom, andenableRotateproperties toCamera2DControllerto selectively toggle camera behavior. All values default totrue. - Added
Camera2DController.setPositionCartographicto simplify moving the camera programmatically when in 2D mode. - Improved near/far plane distances and eliminated z-fighting.
- Added
Matrix4.multiplyByTranslation,Matrix4.fromScale, andMatrix3.fromScale.
b8 - 2012-09-05
-
Breaking changes:
-
Materials are now created through a centralized Material class using a JSON schema called Fabric. For example, change:
polygon.material = new BlobMaterial({repeat : 10.0});to:
polygon.material = Material.fromType(context, 'Blob'); polygon.material.repeat = 10.0;or:
polygon.material = new Material({ context : context, fabric : { type : 'Blob', uniforms : { repeat : 10.0 } } }); -
Label.computeScreenSpacePositionnow requires the current scene state as a parameter. -
Passing
undefinedto any of the set functions onLabelnow throws an exception. -
Renamed
agi_prefix on GLSL identifiers toczm_. -
Replaced
ViewportQuadpropertiesvertexShaderandfragmentShaderwith optional constructor arguments. -
Changed the GLSL automatic uniform
czm_viewportfrom anivec4to avec4to reduce casting. -
Billboardnow defaults to an image index of-1indicating no texture, previously billboards defaulted to0indicating the first texture in the atlas. For example, change:billboards.add({ position : { x : 1.0, y : 2.0, z : 3.0 }, });to:
billboards.add({ position : { x : 1.0, y : 2.0, z : 3.0 }, imageIndex : 0 }); -
Renamed
SceneStatetoFrameState. -
SunPositionwas changed from a static object to a functioncomputeSunPosition; which now returns aCartesian3with the computed position. It was also optimized for performance and memory pressure. For example, change:var result = SunPosition.compute(date); var position = result.position; to: var position = computeSunPosition(date);
-
-
All
Quaternionoperations now have static versions that work with any objects exposingx,y,zandwproperties. -
Added support for nested polygons with holes. See
Polygon.configureFromPolygonHierarchy. -
Added support to the renderer for view frustum and central body occlusion culling. All built-in primitives, such as
BillboardCollection,Polygon,PolylineCollection, etc., can be culled. See the advanced examples in the Sandbox for details. -
Added
writeTextToCanvasfunction which handles sizing the resulting canvas to fit the desired text. -
Added support for CZML path visualization via the
DynamicPathandDynamicPathVisualizerobjects. See the CZML wiki for more details. -
Added support for WEBGL_depth_texture. See
Framebuffer.setDepthTexture. -
Added
CesiumMath.isPowerOfTwo. -
Added
affectedByLightingtoComplexConicSensorVolume,CustomSensorVolume, andRectangularPyramidSensorVolumeto turn lighting on/off for these objects. -
CZML
Polygon,Cone, andPyramidobjects are no longer affected by lighting. -
Added
czm_viewRotationandczm_viewInverseRotationautomatic GLSL uniforms. -
Added a
clampToPixelproperty toBillboardCollectionandLabelCollection. When true, it aligns all billboards and text to a pixel in screen space, providing a crisper image at the cost of jumpier motion. -
Ellipsoidfunctions now take optional result parameters.
b7 - 2012-08-01
-
Breaking changes:
-
Removed keyboard input handling from
EventHandler. -
TextureAtlastakes an object literal in its constructor instead of separate parameters. Code that previously looked like:context.createTextureAtlas(images, pixelFormat, borderWidthInPixels);should now look like:
context.createTextureAtlas({images : images, pixelFormat : pixelFormat, borderWidthInPixels : borderWidthInPixels}); -
Camera.pickEllipsoidreturns the picked position in world coordinates and the ellipsoid parameter is optional. Prefer the newScene.pickEllipsoidmethod. For example, changevar position = camera.pickEllipsoid(ellipsoid, windowPosition);to:
var position = scene.pickEllipsoid(windowPosition, ellipsoid); -
Camera.getPickRaynow returns the newRaytype instead of an object with position and direction properties. -
Camera.viewExtentnow takes anExtentargument instead of west, south, east and north arguments. PreferScene.viewExtentoverCamera.viewExtent.Scene.viewExtentwill work in anySceneMode. For example, changecamera.viewExtent(ellipsoid, west, south, east, north);to:
scene.viewExtent(extent, ellipsoid); -
CameraSpindleController.mouseConstrainedZAxishas been removed. Instead, useCameraSpindleController.constrainedAxis. Code that previously looked like:spindleController.mouseConstrainedZAxis = true;should now look like:
spindleController.constrainedAxis = Cartesian3.UNIT_Z; -
The
Camera2DControllerconstructor andCameraControllerCollection.add2Dnow require a projection instead of an ellipsoid. -
Chainhas been removed.whenis now included as a more complete CommonJS Promises/A implementation. -
Jobs.downloadImagewas replaced withloadImageto provide a promise that will asynchronously load an image. -
jsonpnow returns a promise for the requested data, removing the need for a callback parameter. -
JulianDate.getTimeStandard() has been removed, dates are now always stored internally as TAI.
-
LeapSeconds.setLeapSeconds now takes an array of LeapSecond instances instead of JSON.
-
TimeStandard.convertUtcToTai and TimeStandard.convertTaiToUtc have been removed as they are no longer needed.
-
Cartesian3.prototype.getXY()was replaced withCartesian2.fromCartesian3. Code that previously looked likecartesian3.getXY();should now look likeCartesian2.fromCartesian3(cartesian3);. -
Cartesian4.prototype.getXY()was replaced withCartesian2.fromCartesian4. Code that previously looked likecartesian4.getXY();should now look likeCartesian2.fromCartesian4(cartesian4);. -
Cartesian4.prototype.getXYZ()was replaced withCartesian3.fromCartesian4. Code that previously looked likecartesian4.getXYZ();should now look likeCartesian3.fromCartesian4(cartesian4);. -
Math.angleBetweenwas removed because it was a duplicate ofCartesian3.angleBetween. Simply replace calls of the former to the later. -
Cartographic3was renamed toCartographic. -
Cartographic2was removed; useCartographicinstead. -
Ellipsoid.toCartesianwas renamed toEllipsoid.cartographicToCartesian. -
Ellipsoid.toCartesianswas renamed toEllipsoid.cartographicArrayToCartesianArray. -
Ellipsoid.toCartographic2was renamed toEllipsoid.cartesianToCartographic. -
Ellipsoid.toCartographic2swas renamed toEllipsoid.cartesianArrayToCartographicArray. -
Ellipsoid.toCartographic3was renamed toEllipsoid.cartesianToCartographic. -
Ellipsoid.toCartographic3swas renamed toEllipsoid.cartesianArrayToCartographicArray. -
Ellipsoid.cartographicDegreesToCartesianwas removed. Code that previously looked likeellipsoid.cartographicDegreesToCartesian(new Cartographic(45, 50, 10))should now look likeellipsoid.cartographicToCartesian(Cartographic.fromDegrees(45, 50, 10)). -
Math.cartographic3ToRadians,Math.cartographic2ToRadians,Math.cartographic2ToDegrees, andMath.cartographic3ToDegreeswere removed. These functions are no longer needed because Cartographic instances are always represented in radians. -
All functions starting with
multiplyWithnow start withmultiplyByto be consistent with functions starting withdivideBy. -
The
multiplyWithMatrixfunction on eachMatrixtype was renamed tomultiply. -
All three Matrix classes have been largely re-written for consistency and performance. The
valuesproperty has been eliminated and Matrices are no longer immutable. Code that previously looked likematrix = matrix.setColumn0Row0(12);now looks likematrix[Matrix2.COLUMN0ROW0] = 12;. Code that previously looked likematrix.setColumn3(cartesian3);now looked likematrix.setColumn(3, cartesian3, matrix). -
'Polyline' is no longer externally creatable. To create a 'Polyline' use the 'PolylineCollection.add' method.
Polyline polyline = new Polyline();to
PolylineCollection polylineCollection = new PolylineCollection(); Polyline polyline = polylineCollection.add();
-
-
All
Cartesian2operations now have static versions that work with any objects exposingxandyproperties. -
All
Cartesian3operations now have static versions that work with any objects exposingx,y, andzproperties. -
All
Cartesian4operations now have static versions that work with any objects exposingx,y,zandwproperties. -
All
Cartographicoperations now have static versions that work with any objects exposinglongitude,latitude, andheightproperties. -
All
Matrixclasses are now indexable like arrays. -
All
Matrixoperations now have static versions of all prototype functions and anywhere we take a Matrix instance as input can now also take an Array or TypedArray. -
All
Matrix,Cartesian, andCartographicoperations now take an optional result parameter for object re-use to reduce memory pressure. -
Added
Cartographic.fromDegreesto make creating Cartographic instances from values in degrees easier. -
Added
addImagetoTextureAtlasso images can be added to a texture atlas after it is constructed. -
Added
Scene.pickEllipsoid, which picks either the ellipsoid or the map depending on the currentSceneMode. -
Added
Event, a new utility class which makes it easy for objects to expose event properties. -
Added
TextureAtlasBuilder, a new utility class which makes it easy to build a TextureAtlas asynchronously. -
Added
Clock, a simple clock for keeping track of simulated time. -
Added
LagrangePolynomialApproximation,HermitePolynomialApproximation, andLinearApproximationinterpolation algorithms. -
Added
CoordinateConversions, a new static class where most coordinate conversion methods will be stored. -
Added
Sphericalcoordinate type -
Added a new DynamicScene layer for time-dynamic, data-driven visualization. This include CZML processing. For more details see https://github.com/CesiumGS/cesium/wiki/Architecture and https://github.com/CesiumGS/cesium/wiki/CZML-in-Cesium.
-
Added a new application, Cesium Viewer, for viewing CZML files and otherwise exploring the globe.
-
Added a new Widgets directory, to contain common re-usable Cesium related controls.
-
Added a new Timeline widget to the Widgets directory.
-
Added a new Widgets/Dojo directory, to contain dojo-specific widgets.
-
Added new Timeline and Cesium dojo widgets.
-
Added
CameraCentralBodyControlleras the new default controller to handle mouse input.- The left mouse button rotates around the central body.
- The right mouse button and mouse wheel zoom in and out.
- The middle mouse button rotates around the point clicked on the central body.
-
Added
computeTemeToPseudoFixedMatrixfunction toTransforms. -
Added 'PolylineCollection' to manage numerous polylines. 'PolylineCollection' dramatically improves rendering speed when using polylines.
b6a - 2012-06-20
- Breaking changes:
- Changed
Tipsify.tipsifyandTipsify.calculateACMRto accept an object literal instead of three separate arguments. Supplying a maximum index and cache size is now optional. CentralBodyno longer requires a camera as the first parameter.
- Changed
- Added
CentralBody.northPoleColorandCentralBody.southPoleColorto fill in the poles if they are not covered by a texture. - Added
Polygon.configureExtentto create a polygon defined by west, south, east, and north values. - Added functions to
Camerato provide position and directions in world coordinates. - Added
showThroughEllipsoidtoCustomSensorVolumeandRectangularPyramidSensorVolumeto allow sensors to draw through Earth. - Added
affectedByLightingtoCentralBodyandPolygonto turn lighting on/off for these objects.
b5 - 2012-05-15
-
Breaking changes:
-
Renamed Geoscope to Cesium. To update your code, change all
Geoscope.*references toCesium.*, and reference Cesium.js instead of Geoscope.js. -
CompositePrimitive.addGroundwas removed; useCompositePrimitive.addinstead. For example, changeprimitives.addGround(polygon);to:
primitives.add(polygon); -
Moved
eastNorthUpToFixedFrameandnorthEastDownToFixedFramefunctions fromEllipsoidto a newTransformsobject. For example, changevar m = ellipsoid.eastNorthUpToFixedFrame(p);to:
var m = Cesium.Transforms.eastNorthUpToFixedFrame(p, ellipsoid); -
Label properties
fillStyleandstrokeStylewere renamed tofillColorandoutlineColor; they are also now color objects instead of strings. The labelColorproperty has been removed.For example, change
label.setFillStyle("red"); label.setStrokeStyle("#FFFFFFFF");to:
label.setFillColor({ red : 1.0, blue : 0.0, green : 0.0, alpha : 1.0 }); label.setOutlineColor({ red : 1.0, blue : 1.0, green : 1.0, alpha : 1.0 }); -
Renamed
Tipsify.TipsifytoTipsify.tipsify. -
Renamed
Tipsify.CalculateACMRtoTipsify.calculateACMR. -
Renamed
LeapSecond.CompareLeapSecondDatetoLeapSecond.compareLeapSecondDate. -
Geoscope.JSONP.getis nowCesium.jsonp.Cesium.jsonpnow takes a url, a callback function, and an options object. The previous 2nd and 4th parameters are now specified using the options object. -
TWEENis no longer globally defined, and is instead available asCesium.Tween. -
Chain.js functions such as
runare now moved toCesium.Chain.run, etc. -
Geoscope.CollectionAlgorithms.binarySearchis nowCesium.binarySearch. -
Geoscope.ContainmentTests.pointInsideTriangle2Dis nowCesium.pointInsideTriangle2D. -
Static constructor methods prefixed with "createFrom", now start with "from":
Matrix2.createfromColumnMajorArraybecomes
Matrix2.fromColumnMajorArray -
The
JulianDateconstructor no longer takes aDateobject, use the new from methods instead:new JulianDate(new Date());becomes
JulianDate.fromDate(new Date("January 1, 2011 12:00:00 EST")); JulianDate.fromIso8601("2012-04-24T18:08Z"); JulianDate.fromTotalDays(23452.23); -
JulianDate.getDateis nowJulianDate.toDate()and returns a new instance each time. -
CentralBody.logoOffsetXandlogoOffsetYhave been replaced withCentralBody.logoOffset, aCartesian2. -
TileProviders now take a proxy object instead of a string, to allow more control over how proxy URLs are built. Construct a DefaultProxy, passing the previous proxy URL, to get the previous behavior.
-
Ellipsoid.getScaledWgs84()has been removed since it is not needed. -
getXXX()methods which returned a new instance of what should really be a constant are now exposed as frozen properties instead. This should improve performance and memory pressure.Cartsian2/3/4.getUnitX()->Cartsian2/3/4.UNIT_XCartsian2/3/4.getUnitY()->Cartsian2/3/4.UNIT_YCartsian2/3/4.getUnitZ()->Cartsian3/4.UNIT_ZCartsian2/3/4.getUnitW()->Cartsian4.UNIT_WMatrix/2/3/4.getIdentity()->Matrix/2/3/4.IDENTITYQuaternion.getIdentity()->Quaternion.IDENTITYEllipsoid.getWgs84()->Ellipsoid.WGS84Ellipsoid.getUnitSphere()->Ellipsoid.UNIT_SPHERECartesian2/3/4/Cartographic.getZero()->Cartesian2/3/4/Cartographic.ZERO
-
-
Added
PerformanceDisplaywhich can be added to a scene to display frames per second (FPS). -
Labels now correctly allow specifying fonts by non-pixel CSS units such as points, ems, etc.
-
Added
Shapes.computeEllipseBoundaryand updatedShapes.computeCircleBoundaryto compute boundaries using arc-distance. -
Added
fileExtensionandcreditproperties toOpenStreetMapTileProviderconstruction. -
Night lights no longer disappear when
CentralBody.showGroundAtmosphereistrue.
b4 - 2012-03-01
-
Breaking changes:
-
Replaced
Geoscope.SkyFromSpaceobject withCentralBody.showSkyAtmosphereproperty. -
For mouse click and double click events, replaced
event.xandevent.ywithevent.position. -
For mouse move events, replaced
movement.startXandstartYwithmovement.startPosition. Replacedmovement.endXandmovement.endYwithmovement.endPosition. -
Scene.Picknow takes aCartesian2with the origin at the upper-left corner of the canvas. For example, code that looked like:scene.pick(movement.endX, scene.getCanvas().clientHeight - movement.endY);becomes:
scene.pick(movement.endPosition);
-
-
Added
SceneTransitionerto switch between 2D and 3D views. See the new Skeleton 2D example. -
Added
CentralBody.showGroundAtmosphereto show an atmosphere on the ground. -
Added
Camera.pickEllipsoidto get the point on the globe under the mouse cursor. -
Added
Polygon.heightto draw polygons at a constant altitude above the ellipsoid.
b3 - 2012-02-06
- Breaking changes:
- Replaced
Geoscope.ConstantsandGeoscope.TrigwithGeoscope.Math. Polygon- Replaced
setColorandgetColorwith amaterial.colorproperty. - Replaced
setEllipsoidandgetEllipsoidwith anellipsoidproperty. - Replaced
setGranularityandgetGranularitywith agranularityproperty.
- Replaced
Polyline- Replaced
setColor/getColorandsetOutlineColor/getOutlineColorwithcolorandoutlineproperties. - Replaced
setWidth/getWidthandsetOutlineWidth/getOutlineWidthwithwidthandoutlineWidthproperties.
- Replaced
- Removed
Geoscope.BillboardCollection.bufferUsage. It is now automatically determined. - Removed
Geoscope.Labelset/get functions forshadowOffset,shadowBlur,shadowColor. These are no longer supported. - Renamed
Scene.getTransitionstoScene.getAnimations. - Renamed
SensorCollectiontoSensorVolumeCollection. - Replaced
ComplexConicSensorVolume.materialwith separate materials for each surface:outerMaterial,innerMaterial, andcapMaterial. - Material renames
TranslucentSensorVolumeMaterialtoColorMaterial.DistanceIntervalSensorVolumeMaterialtoDistanceIntervalMaterial.TieDyeSensorVolumeMaterialtoTieDyeMaterial.CheckerboardSensorVolumeMaterialtoCheckerboardMaterial.PolkaDotSensorVolumeMaterialtoDotMaterial.FacetSensorVolumeMaterialtoFacetMaterial.BlobSensorVolumeMaterialtoBlobMaterial.
- Added new materials:
VerticalStripeMaterialHorizontalStripeMaterialDistanceIntervalMaterial
- Added polygon material support via the new
Polygon.materialproperty. - Added clock angle support to
ConicSensorVolumevia the newmaximumClockAngleandminimumClockAngleproperties. - Added a rectangular sensor,
RectangularPyramidSensorVolume. - Changed custom sensor to connect direction points using the sensor's radius; previously, points were connected with a line.
- Improved performance and memory usage of
BillboardCollectionandLabelCollection. - Added more mouse events.
- Added Sandbox examples for new features.
- Replaced
b2 - 2011-12-01
- Added complex conic and custom sensor volumes, and various materials to change their appearance. See the new Sensor folder in the Sandbox.
- Added modelMatrix property to primitives to render them in a local reference frame. See the polyline example in the Sandbox.
- Added eastNorthUpToFixedFrame() and northEastDownToFixedFrame() to Ellipsoid to create local reference frames.
- Added CameraFlightController to zoom smoothly from one point to another. See the new camera examples in the Sandbox.
- Added row and column assessors to Matrix2, Matrix3, and Matrix4.
- Added Scene, which reduces the amount of code required to use Geoscope. See the Skeleton. We recommend using this instead of explicitly calling update() and render() for individual or composite primitives. Existing code will need minor changes:
- Calls to Context.pick() should be replaced with Scene.pick().
- Primitive constructors no longer require a context argument.
- Primitive update() and render() functions now require a context argument. However, when using the new Scene object, these functions do not need to be called directly.
- TextureAtlas should no longer be created directly; instead, call Scene.getContext().createTextureAtlas().
- Other breaking changes:
-
Camera get/set functions, e.g., getPosition/setPosition were replaced with properties, e.g., position.
-
Replaced CompositePrimitive, Polygon, and Polyline getShow/setShow functions with a show property.
-
Replaced Polyline, Polygon, BillboardCollection, and LabelCollection getBufferUsage/setBufferUsage functions with a bufferUsage property.
-
Changed colors used by billboards, labels, polylines, and polygons. Previously, components were named r, g, b, and a. They are now red, green, blue, and alpha. Previously, each component's range was
[0, 255]. The range is now[0, 1]floating point. For example,color : { r : 0, g : 255, b : 0, a : 255 }becomes:
color : { red : 0.0, green : 1.0, blue : 0.0, alpha : 1.0 }
-
b1 - 2011-09-19
-
Added
Shapes.computeCircleBoundaryto compute circles. See the Sandbox. -
Changed the
EventHandlerconstructor function to take the Geoscope canvas, which ensures the mouse position is correct regardless of the canvas' position on the page. Code that previously looked like:var handler = new Geoscope.EventHandler();should now look like:
var handler = new Geoscope.EventHandler(canvas); -
Context.Pick no longer requires clamping the x and y arguments. Code that previously looked like:
var pickedObject = context.pick(primitives, us, Math.max(x, 0.0), Math.max(context.getCanvas().clientHeight - y, 0.0));can now look like:
var pickedObject = context.pick(primitives, us, x, context.getCanvas().clientHeight - y); -
Changed Polyline.setWidth and Polyline.setOutlineWidth to clamp the width to the WebGL implementation limit instead of throwing an exception. Code that previously looked like:
var maxWidth = context.getMaximumAliasedLineWidth(); polyline.setWidth(Math.min(5, maxWidth)); polyline.setOutlineWidth(Math.min(10, maxWidth));can now look like:
polyline.setWidth(5); polyline.setOutlineWidth(10); -
Improved the Sandbox:
- Code in the editor is now evaluated as you type for quick prototyping.
- Highlighting a Geoscope type in the editor and clicking the doc button in the toolbar now brings up the reference help for that type.
-
BREAKING CHANGE: The
Contextconstructor-function now takes an element instead of an ID. Code that previously looked like:var context = new Geoscope.Context("glCanvas"); var canvas = context.getCanvas();should now look like:
var canvas = document.getElementById("glCanvas"); var context = new Geoscope.Context(canvas);
b0 - 2011-08-31
- Added new Sandbox and Skeleton examples. The sandbox contains example code for common tasks. The skeleton is a bare-bones application for building upon. Most sandbox code examples can be copy and pasted directly into the skeleton.
- Added
Geoscope.Polygonfor drawing polygons on the globe. - Added
Context.pickto pick objects in one line of code. - Added
bringForward,bringToFront,sendBackward, andsendToBackfunctions toCompositePrimitiveto control the render-order for ground primitives. - Added
getShow/setShowfunctions toPolylineandCompositePrimitive. - Added new camera control and event types including
CameraFreeLookEventHandler,CameraSpindleEventHandler, andEventHandler. - Replaced
Ellipsoid.toCartesian3withEllipsoid.toCartesian. - update and
updateForPickfunctions no longer require aUniformStateargument.
Alpha Releases
a6 - 2011-08-05
- Added support for lines using
Geoscope.Polyline. See the Sandbox example. - Made
CompositePrimitive,LabelCollection, andBillboardCollectionhave consistent function names, including a newcontains()function. - Improved reference documentation layout.
a5 - 2011-07-22
- Flushed out
CompositePrimitive,TimeStandard, andLeapSecondtypes. - Improved support for browsers using ANGLE (Windows Only).
a4 - 2011-07-15
- Added
Geoscope.TimeStandardfor handling TAI and UTC time standards. - Added
Geoscope.Quaternion, which is a foundation for future camera control. - Added initial version of
Geoscope.PrimitiveCollectionto simplify rendering. - Prevented billboards/labels near the surface from getting cut off by the globe.
- See the Sandbox for example code.
- Added more reference documentation for labels.
a3 - 2011-07-08
- Added
Geoscope.LabelCollectionfor drawing text. - Added
Geoscope.JulianDateandGeoscope.TimeConstantsfor proper time handling. - See the Sandbox example for how to use the new labels and Julian date.
a2 - 2011-07-01
- Added
Geoscope.ViewportQuadandGeoscope.Rectangle(foundations for 2D map). - Improved the visual quality of cloud shadows.
a1 - 2011-06-24
- Added
SunPositiontype to compute the sun position for a julian date. - Simplified picking. See the mouse move event in the Sandbox example.
Cartographic2andCartographic3are now mutable types.- Added reference documentation for billboards.
a0 - 2011-06-17
- Initial Release.