files/en-us/web/api/xrequirectlayer/index.md
{{securecontext_header}}{{APIRef("WebXR Device API")}}{{SeeCompatTable}}
The XREquirectLayer interface of the WebXR Device API is a layer that maps equirectangular coded data onto the inside of a sphere.
XREquirectLayer requires the layers feature to be enabled for the {{domxref("XRSession")}}. You can request it in {{domxref("XRSystem.requestSession()")}}.
To create a new XREquirectLayer, call either:
To present layers to the XR device, add them to the layers render state using {{domxref("XRSession.updateRenderState()")}}.
{{InheritanceDiagram}}
Inherits properties from its parent, {{domxref("XRCompositionLayer")}}.
space.Inherits methods from its parents, {{domxref("XRCompositionLayer")}} and {{domxref("EventTarget")}}.
XREquirectLayer object when the underlying resources of the layer are lost or when the XR Compositor can no longer reproject the layer. If this event is sent, authors should redraw the content of the layer in the next XR animation frame.{{Specifications}}
{{Compat}}