Clipped Point Primitives on dateline in 2d mode

Point Primitives get clipped on the IDL in 2d mode. Is there a workaround for this?

Sandcastle code:

var viewer = new Cesium.Viewer(‘cesiumContainer’, {

sceneMode: Cesium.SceneMode.SCENE2D,

});

viewer.camera.setView({

destination: Cesium.Cartesian3.fromDegrees(179, 20, 35000000)

});

viewer.entities.add({

position : Cesium.Cartesian3.fromDegrees(179, 40),

point : {

    pixelSize : 10,

    color : Cesium.Color.YELLOW

}

});

var points = viewer.scene.primitives.add(new Cesium.PointPrimitiveCollection());

points.add({

position: Cesium.Cartesian3.fromDegrees(-179, 30),

color: Cesium.Color.RED,

pixelSize: 10,

});

``

Thanks for including the code sample! This looks like a bug, I’ve written up an issue on our GitHub so we can look into it: https://github.com/AnalyticalGraphicsInc/cesium/issues/4179
Sorry, but I don’t think there is any easy workaround.

Thanks for reporting this!

Hannah