MPBuildingCollection

open class MPBuildingCollection

Functions

Link copied to clipboard
open fun getBuilding(@NonNull point: MPLatLng): MPBuilding
Returns a building where the given point is inside.
Link copied to clipboard
open fun getBuildingByAdminId(@Nullable buildingAdministrativeId: String): MPBuilding
Link copied to clipboard
open fun getBuildingById(@Nullable buildingId: String): MPBuilding
Link copied to clipboard
open fun getBuildingClosestToCameraTarget(@Nullable cameraTarget: MPLatLng, @Nullable buildingsInView: List<MPBuilding>): MPBuilding
Link copied to clipboard
open fun getBuildingInBounds(@NonNull bounds: MPLatLngBounds): MPBuilding
This will select the building which bounding box "wraps" the camera target
Link copied to clipboard
open fun getBuildingsInBounds(@NonNull bounds: MPLatLngBounds): List<MPBuilding>
Builds up a list of visible buildings (their AABB intersects with the given bounds).
Link copied to clipboard
open fun intersectionArea(@NonNull latLngBoundsA: MPLatLngBounds, @NonNull latLngBoundsB: MPLatLngBounds): Double
open fun intersectionArea(@NonNull bbox: Array<Double>, @NonNull latLngBounds: MPLatLngBounds): Double

Properties

Link copied to clipboard
@get:NonNull
val buildings: List<MPBuilding>