On this page

Type Alias FitBoundsOptions

FitBoundsOptions: FlyToOptions & {
    linear?: boolean;
    maxZoom?: number;
    offset?: PointLike;
}

Options for Map.fitBounds method

Type Declaration

  • Optionallinear?: boolean

    If true, the map transitions using Map.easeTo. If false, the map transitions using Map.flyTo. See those functions and AnimationOptions for information about options available.

    false
    
  • OptionalmaxZoom?: number

    The maximum zoom level to allow when the map view transitions to the specified bounds.

  • Optionaloffset?: PointLike

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

    [0, 0]
    
Was this helpful?
SDK JS
Reference
FitBoundsOptions