You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Renders a compass overlay that rotates to indicate north based on the camera orientation relative
154
+
* to the tileset ellipsoid. Must be a child of TilesRenderer. Remaining props are passed to the
155
+
* root group element.
156
+
* @component
157
+
* @param {Object} props
158
+
* @param {string} [props.mode='3d'] - Rotation mode: `'3d'` tracks full camera orientation, `'2d'` tracks yaw only.
159
+
* @param {number} [props.scale=35] - Size of the compass in pixels.
160
+
* @param {number|Array} [props.margin=10] - Margin from the bottom-right corner in pixels. Pass `[x, y]` to set each axis independently.
161
+
* @param {boolean} [props.visible=true] - Whether the compass is rendered.
162
+
* @param {boolean} [props.overrideRenderLoop] - If true, renders the main scene before drawing the compass overlay.
163
+
* @param {ReactNode} [props.children] - Custom compass graphic replacing the default. Should fit within a -0.5 to 0.5 unit cube with +Y pointing north and +X pointing east.
0 commit comments