let handler = new Cesium.ScreenSpaceEventHandler(scene.canvas);
let handler2 = new Cesium.ScreenSpaceEventHandler(scene.canvas);
handler.setInputAction(function (movement) {
let mousePosition = movement.position;
let pickedObjects = scene.drillPick(mousePosition);
}, Cesium.ScreenSpaceEventType.LEFT_CLICK);
handler2.setInputAction(function (movement) {
let mousePosition = movement.position;
//后绑定的,如果使用pick就拿不到任何信息,如果使用和handler中一样的drillPick()就可以拿到对象
let pickedObjects = scene.pick(mousePosition);
}, Cesium.ScreenSpaceEventType.LEFT_CLICK);
请问这是为什么?
我使用的是最新版本的supermap webgl