Skip to main content
←API Reference ←NSDK

NSDKMapStorage


Declaration​

final class NSDKMapStorage

Summary​

A storage system for managing device-generated maps. The map storage feature provides capabilities for capturing, storing, and managing map data from AR sessions. This data can be persisted and used for Visual Positioning System (VPS) localization and map updates.


Methods​

NameTypeSummary
addMapvoid
Adds previously serialized map data to the map storage.
clearvoid
Clears the map storage.
This method removes all stored map data and localization data
createRootAnchorString?
Creates an anchor on the existing map located at the origin of the current AR session, if possible.
The root anchor represents the origin point of the map coordinate system and can be
used with VPS for localization.
extractMapMetadataMapMetadata?
Extracts metadata from a map relative to a specified anchor.
Render the feature points in the metadata relative to the specified anchor to visualize the map.
This is only possible when the anchor is linked directly to the map's node(s), or if
the anchor's nodes are reachable to the map's nodes from the currently active
transform graph.
mapDataNSDKBuffer?
Gets the complete map data.
This function returns all the map data accumulated during the AR session, serialized as a
DeviceMap protobuf. This data can be saved, shared, and/or used for localization.
mapUpdateNSDKBuffer?
Gets the latest map update data.
This method returns the incremental map changes (new nodes and edges) that have been added
since the last update.
mergeMapUpdateNSDKBuffer
Merges a map update into an existing map.
This method combines incremental map updates with a base map to produce
a merged map buffer containing the complete map data.