Hello Mathew/Patrick,
we have a scenario where we need to enable certain operations on tilt of the camera,
for the same i tried using EVENTS CameraEventType :
CameraEventType.MIDDLE_DRAG and CameraEventType.WHEEL as given below .
var WheelHandler = new Cesium.ScreenSpaceEventHandler(scene.canvas);
WheelHandler.setInputAction(
function (event) {
console.log(‘hi’);
var mousePosition = scene.camera.position;
var height = ellipsoid.cartesianToCartographic(mousePosition).height;
console.log("Zoom: " + event + " | Height: " + height);
}, Cesium.CameraEventType.MIDDLE_DRAG);
but the above code snippet in sandcastle is not working for any of the cameraEventTypes excepting for LEFT_DRAG, is there anything that i am missing out on.
it would be great if u could guide us through the same.
also i have seen scene.screenSpaceCameraController.tiltEventTypes in screenSpaceController.js, is that of any help to us in handling the tilt events.
thank u so much.
thanks and regards
chandrika