collisionBoxes

@MapboxExperimental
open fun collisionBoxes(@Nullable collisionBoxes: List<ScreenBox>): ViewAnnotationOptions.Builder

Sub-element collision boxes relative to the root view annotation's top-left corner. When provided and non-empty, each box is tested independently for collision instead of using the full annotation bounding box. This allows finer-grained collision detection for annotations with distinct visual elements (e.g. icon + text). On Android and iOS use `UIView.mbxCollisionBox` and `View.mbxCollisionBox` to mark views inside of the view annotation as collision boxes. Their collision boxes will be automatially used as collision boxes. When not provided or empty, the full annotation bounding box is used (default behavior).