getBuildings
Returns the list of buildings.
Example
Usage
const buildings = viewer2d.getBuildings();Return Value
The list of buildings.
Type |
|---|
Array[Building] |
Building
Name | Type | Description |
|---|---|---|
guid | String | Guid of the building |
id | String | Id of the building |
name | String | Name of the building |
modelName | String | Name of the model building belongs to |
modelId | String | Id of the model building belongs to |
Example
[
{
id: "0.yv0ntfpcrbs",
guid: "3eM8WbY_56HH6TDWry5aRU",
modelId: "my-model-id",
modelName: "My model",
name: "Building 1"
}
];