handler.setInputAction((mvt) => {
var f = viewer.scene.pick(mvt.position)
var e = viewer.selectedEntity
console.log("selected entity is ", e)
console.log("selected feature is ", f)
}, Cesium.ScreenSpaceEventType.RIGHT_CLICK)
上面是我的代码,我想右键的时候获取管井信息,我看图形上已经是选中状态,为什么打印出来是undefined?