On this page

Type Alias CameraForBoundsOptions

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

A options object for the Map.cameraForBounds method

Type Declaration

  • OptionalmaxZoom?: number

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

  • Optionaloffset?: PointLike

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

    [0, 0]
    
  • Optionalpadding?: number | PaddingOptions

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

Was this helpful?
SDK JS
Reference
CameraForBoundsOptions