Accessing mapID and mapName on the spatialmap example

0 votes
asked Mar 1, 2023 by evocative (160 points)
Hi I'm trying to access the map name and map id of the spatial map currently opened in the sparsespatialmap Edit tab.

Essentially after clicking the edit button on the sparsespatialmap template I would like to access the mapid and name of the chosen map to be edited in the EditViewController.cs file. I have tried to find where they are stored searching through mapdata and mapdata.meta but havent succeded so far.

2 Answers

0 votes
answered Mar 24, 2023 by kenn (18,750 points)
The file you referenced is just a piece of sample code. Please find the plugin API description in the documents.
0 votes
answered Mar 27, 2023 by evocative (160 points)

Current opened Map ID can be accessed using

mapData = session.Maps[0];

mapData.Meta.Map.ID

Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...