OptionalidUnique identifier for the map layer. Useful when you have multiple Canvas components.
OptionalbeforeID of an existing layer to insert this layer before. Use this to control the rendering order of multiple Canvas layers.
OptionalframeloopControls when the scene re-renders.
"always": Continuously render (default)"demand": Only render when invalidate() is calledOptionaloverlayWhen true, renders on a separate canvas overlay instead of the map's WebGL context.
Use this if:
react-postprocessing and have issues clearing the screenCaveats:
react-postprocessing won't work if you also use <Coordinates> componentsThe longitude coordinate in degrees. Valid range: -180 to 180
The latitude coordinate in degrees. Valid range: -90 to 90
OptionalaltitudeThe altitude in meters above sea level.
Props for the Canvas component that renders a React Three Fiber scene inside a map.
Extends the standard
@react-three/fiberRenderProps with geographic positioning.Example