Object Manager
ObjectManager is responsible for storing the 3D Map Elements
ObjectManager is intended to be used for Read-Only operations, never try to change the values.
Retrieving Objects
Site
You can access the SiteObject using:
adsumRnMap.objectManager.site;
Buildings
Get all Buildings
You can access the BuildingObjects using:
// returns Map<int, BuildingObject>
adsumRnMap.objectManager.buildings;
You can also access them using SiteObject#buildings property
Get a Building by id
If you want to retrieve a specific BuildingObject by its id, you can use:
// returns BuildingObject or null
adsumRnMap.objectManager.getBuilding(id);
Floors
Get all Floors
You can access the FloorObjects using:
// returns Map<int, FloorObject>
adsumRnMap.objectManager.floors;
Get all Floors from a Building
You can access them using BuildingObject#floors property
// returns Promise<FloorObject[], Error>
await buildingObject.getFloors();
This is asynchronous
Get a Floor by id
If you want to retrieve a specific FloorObject by its id, you can use:
// returns FloorObject or null
adsumRnMap.objectManager.getFloor(id);
Spaces
Get all Spaces
You can access the SpaceObjects using:
// returns Map<int, SpaceObject>
adsumRnMap.objectManager.spaces;
Get all Spaces on a Floor
You can access them using FloorObject#spaces property
// returns Promise<SpaceObject[], Error>
await floorObject.getSpaces();
This is asynchronous
Get all Spaces on the Site
You can access them using SiteObject#spaces property
// returns Promise<SpaceObject[], Error>
await siteObject.getSpaces();
This is asynchronous
Get a Space by id
If you want to retrieve a specific SpaceObject by its id, you can use:
// returns SpaceObject or null
adsumRnMap.objectManager.getSpace(id);
Labels
Get all Labels
You can access the LabelObjects using:
// returns Map<int, LabelObject>
adsumRnMap.objectManager.labels;
Get all Labels on a Floor
You can access them using FloorObject#spaces property
// returns Promise<LabelObject[], Error>
await floorObject.getLabels();
This is asynchronous
Get all Labels on a Space
You can access them using SpaceObject#spaces property
// returns Promise<LabelObject[], Error>
await spaceObject.getLabels();
This is asynchronous
Get all Labels on a Building
You can access them using BuildingObject#spaces property
// returns Promise<LabelObject[], Error>
await buildingObject.getLabels();
This is asynchronous
Get all Labels on the Site
You can access them using SiteObject#spaces property
// returns Promise<LabelObject[], Error>
await siteObject.getLabels();
This is asynchronous
Get a Label by id
If you want to retrieve a specific LabelObject by its id, you can use:
// returns LabelObject or null
adsumRnMap.objectManager.getLabel(id);
Get By AdsumLocation
await adsumWebMap.objectManager.getByAdsumLocation(adsumLocation);