BuildingsVisibility
Represents the visibility state of buildings on the screen. Fields can be populated at different points in time as the object is passed around.
Parameters
The current zoom level of the map.
List of buildings currently visible on the screen.
Whether or not the building visibility was triggered from a map interaction
Constructors
Properties
A set of building IDs involved in active routing (e.g., navigation paths). Can be modified dynamically as routing changes.
The building ID representing the currently selected point of interest (POI). Default is -1 to indicate that no POI is currently selected.
The building ID representing a single focused building, if any. Default is -1 to indicate that no solo building is currently set.
The building ID representing the user's position. Default is -1 to indicate that no user position is currently assigned.
Functions
Computes and returns a set of buildings that should be forcibly visible. This includes user position, selected POI, solo building, and any buildings in the routing set.