Type Alias TFocusOnOptions

TFocusOnOptions: TCameraAnimationOptions & {
    bearing?: number;
    maxZoomLevel?: number;
    minZoomLevel?: number;
    pitch?: number;
    screenOffsets?: InsetPaddingOption;
}

Options for focusing the Camera on a target.

Type declaration

  • Optionalbearing?: number

    Camera bearing when focusing on a target in degrees clockwise from North. 0 degrees is North, 90 degrees is East, 180 degrees is South, and 270 degrees is West.

  • OptionalmaxZoomLevel?: number

    Maximum zoom level when focusing on a target in mercator zoom levels.

  • OptionalminZoomLevel?: number

    Minimum zoom level when focusing on a target in mercator zoom levels.

  • Optionalpitch?: number

    Camera pitch when focusing on a target, in degrees.

  • OptionalscreenOffsets?: InsetPaddingOption

    Screen offsets for the camera focus.