-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Open
Description
When creating an entity at (0,0,0), it crashes with
TypeError: Cannot read properties of undefined (reading 'longitude')
Sandcastle:
It's pretty simple:
const viewer = new Cesium.Viewer("cesiumContainer");
viewer.entities.add({
position: new Cesium.Cartesian3(0, 0, 0),
box: {
dimensions: new Cesium.Cartesian3(1, 1, 1)
},
});
This is caused here:
cesium/packages/engine/Source/Scene/Primitive.js
Line 1530 in 89d15af
const cartographic = ellipsoid.cartesianToCartographic( |
The cartesianToCartographic
function is returning undefined
when receiving the center.
(I'll just put it at (0, 0, 1e-15) for now...)