首页 / 浏览问题 / 三维GIS / 问题详情
超图FAQ:【WebGL】如何注册和注销鼠标点击事件?
43,901EXP 2023年09月22日
【WebGL】如何注册和注销鼠标点击事件?

1个回答

【解决办法】注册鼠标左键单击事件: var handler = new Cesium.ScreenSpaceEventHandler(scene.canvas); handler.setInputAction(function (e) { console.log(e) }, Cesium.ScreenSpaceEventType.LEFT_CLICK); 注销鼠标左键单击事件: handler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK);
43,901EXP 2023年09月22日
热门文章
关注我们
...