const viewer = new Cesium.Viewer("cesiumContainer"); //关闭双击事件 viewer.cesiumWidget.screenSpaceEventHandler.removeInputAction( Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK ); // 倾斜视图 鼠标左键旋转 viewer.scene.screenSpaceCameraController.tiltEventTypes = [ Cesium.CameraEventType.RIGHT_DRAG, ]; // 缩放设置 重新设置缩放成员 viewer.scene.screenSpaceCameraController.zoomEventTypes = [ Cesium.CameraEventType.MIDDLE_DRAG, Cesium.CameraEventType.WHEEL, Cesium.CameraEventType.PINCH, ]; // 平移 添加鼠标右键 鼠标右键平移 viewer.scene.screenSpaceCameraController.rotateEventTypes = [ Cesium.CameraEventType.LEFT_DRAG, ];
标签:视角,CameraEventType,screenSpaceCameraController,viewer,scene,Cesium,右键,cesium From: https://www.cnblogs.com/dullfish/p/16996927.html