The CompassButton shows a bearing arrow which points to the north. It optionally tilts the arrow to reflect the current pitch.
CompassButton
The current map ViewState must be passed to this control.
<CompassButton skin={DarkSkin} {...this.state.viewState} x={40} y={500} hint={<>Reset bearing to north</>} visualizePitch contrastTip />
Generated using TypeDoc
The
CompassButton
shows a bearing arrow which points to the north. It optionally tilts the arrow to reflect the current pitch.The current map ViewState must be passed to this control.
Example