mvt点图层,selectedEntity.pickResult 无法获取
let selectedEntity = viewer.scene.pick(e.message.position) || viewer.selectedEntity;
console.log('selectedEntity', Json.parse(selectedEntity));
//console.log('mvtProperties', selectedEntity.mvtProperties);
//console.log('selectedEntity.pickResult', selectedEntity.pickResult);
if (Cesium.defined(selectedEntity) && Cesium.defined(selectedEntity.pickResult)) {
console.log('selectedEntity.pickResult', selectedEntity.pickResult);
let obj = null;
for (var key in selectedEntity.pickResult) {
obj = selectedEntity.pickResult[key];
break;
}
let feature = obj[0].feature;
console.log(feature.properties)
this.showAttrabute = true;
}