XRAnchor: anchorSpace property
WebXR Device API
WebXR Device API
The read-only **`anchorSpace`** property of the XRAnchor interface returns an XRSpace object to locate the anchor relative to other `XRSpace` objects. It can be passed to XRFrame.getPose() subsequently.
## Value
An XRSpace object.
## Examples
### Updating anchors
```js
for (const anchor of frame.trackedAnchors) {
const pose = frame.getPose(anchor.anchorSpace, referenceSpace);
}
```
## Specifications
## Browser compatibility
source: MDN Web Docs mirror · page
Cite this
"XRAnchor: anchorSpace property". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/XRAnchor/anchorSpace JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy