Skip to content

Instantly share code, notes, and snippets.

@wgrzr
Created February 11, 2022 09:00
Show Gist options
  • Save wgrzr/095f18254863d98ca6bfd6398428d1c3 to your computer and use it in GitHub Desktop.
Save wgrzr/095f18254863d98ca6bfd6398428d1c3 to your computer and use it in GitHub Desktop.
Marzipano click window for yaw and pitch
// this outputs coordinates of yaw/pitch on click
document.addEventListener('click', (e) => {
let view = viewer.view()
let x = e.clientX
let y = e.clientY
console.log(view.screenToCoordinates({ x, y }))
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment