Type Alias TFocusOnOptions

TFocusOnOptions: TCameraAnimationOptions & {
    bearing?: number;
    maxZoomLevel?: number;
    minZoomLevel?: number;
    pitch?: number;
    screenOffsets?: {
        bottom: number;
        left: number;
        right: number;
        top: number;
    };
}

Options for focusing the Camera on a target.

Type declaration

  • Optionalbearing?: number

    Camera bearing when focusing on a target, in degrees.

  • 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?: {
        bottom: number;
        left: number;
        right: number;
        top: number;
    }

    Screen offsets for the camera focus.

    • bottom: number
    • left: number
    • right: number
    • top: number