vue2中使用supermap iclient3D for cesium 生成热力图时需要获取屏幕坐标。
const cartesian = Cesium.Cartesian3.fromDegrees(
Number(item.x),
Number(item.y),
);
const projected = Cesium.SceneTransforms.wgs84ToWindowCoordinates(viewer.scene, cartesian);
console.log(cartesian,projected)
打印projected是undefined。直接将点添加到viewer.entities 是可以正常落点的