MPBuildingCollection
class MPBuildingCollection
Holds every MPBuilding in the loaded solution and provides spatial lookups against them.
Lookups exposed by this class:
By id / administrative id / venue id
.getBuilding — point-in-bounding-box test
.getBuildingsInBounds — buildings whose AABB intersects a region, largest-overlap first
.getBuildingClosestToCameraTarget and the floor-aware overload — picks the building that should be highlighted given the current map view
Functions
Link copied to clipboard
Returns a building where the given point is inside. If no such building exists it will return null instead.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
This will select the building which bounding box "wraps" the camera target
Link copied to clipboard
Returns a list of all the buildings for the current solution
Link copied to clipboard
Builds up a list of visible buildings (their AABB intersects with the given bounds).