ZoomToRectInsets

data class ZoomToRectInsets(val left: Float = 0.1f, val right: Float = 0.1f, val top: Float = 0.05f, val bottom: Float = 0.05f)

Fractional insets applied when fitting a geographic bounding box (e.g., a route) within the visible area of the Android Auto map surface.

These insets shrink the target rectangle inward from the visible area edges, preventing the route from being hidden behind template UI overlays (action strips, route list panel, navigation turn cards).

Each value is a fraction of the visible area dimension (0.0 = no inset, 0.10 = 10% inset).

Parameters

left

Inset from the left edge. Accounts for the map action strip (zoom/recenter buttons). Default: 0.10 (10% of visible width).

right

Inset from the right edge. Accounts for the route list panel on route preview. Default: 0.10 (10% of visible width).

top

Inset from the top edge. Breathing room from navigation chrome. Default: 0.05 (5% of visible height).

bottom

Inset from the bottom edge. Breathing room from bottom edge. Default: 0.05 (5% of visible height).

Constructors

Link copied to clipboard
constructor(left: Float = 0.1f, right: Float = 0.1f, top: Float = 0.05f, bottom: Float = 0.05f)

Properties

Link copied to clipboard
Link copied to clipboard
val left: Float
Link copied to clipboard
Link copied to clipboard
val top: Float