onCompassDisplayChange Method

Change notification for when the compass is shown or hidden. Used to hide the viewport controls when the compass is no longer displayed.

onCompassDisplayChange(state: "show" | "hide"): void

Parameter Type Description
state "show" | "hide"  

Returns - void

Defined in

Last Updated: 05 February, 2025