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
Returns a building where the given point is inside. If no such building exists it will return null instead.
Returns the building that point is inside, judged on the floor the point is on.
This will select the building which bounding box "wraps" the camera target
Returns a list of all the buildings for the current solution
Builds up a list of visible buildings (their AABB intersects with the given bounds).