Type alias CameraForBoundsOptions

CameraForBoundsOptions: CameraOptions & {
    maxZoom?: number;
    offset?: PointLike;
    padding?: number | RequireAtLeastOne<PaddingOptions>;
}

A options object for the Map#cameraForBounds method

Type declaration

  • Optional maxZoom?: number

    The maximum zoom level to allow when the camera would transition to the specified bounds.

  • Optional offset?: PointLike

    The center of the given bounds relative to the map's center, measured in pixels.

    Default Value

    [0, 0]
    
  • Optional padding?: number | RequireAtLeastOne<PaddingOptions>

    The amount of padding in pixels to add to the given bounds.