Ellipse drawing problem

Hi,

When I draw a float ellipse in 2D and columbus mode and fit the specific condition, the drawing result is wrong. I think this is a bug. :slight_smile:

The following is the sample code:

var viewer = new Cesium.Viewer(‘cesiumContainer’, {
sceneMode : Cesium.SceneMode.SCENE2D
});

var redEllipse = viewer.entities.add({
position: new Cesium.Cartesian3.fromDegrees(-166.2117, 32.5805, 823373),
ellipse : {
semiMinorAxis : 1426124.013,
semiMajorAxis : 1426124.013,
material : Cesium.Color.DARKORANGE.withAlpha(0.1),
outline : true,
outlineColor : Cesium.Color.YELLOW.withAlpha(0.8),
height: 823373
}
});

viewer.zoomTo(viewer.entities);

Hello,

Thanks for reporting this and including a code sample! This is a bug caused by the ellipse crossing the international date line. For some reason, the ellipse is correct when it has a height of zero, but does weird things with a larger height.

I’ve created an issue on our GitHub so we can look into it: https://github.com/AnalyticalGraphicsInc/cesium/issues/4234

Best,

Hannah