Interface MapGLTransitionOptions

Set of options to configure the transition when the user click on a result on MapLibre or Mapbox.

const transition = {
type: 'hybrid',
flyCurve: 1.42,
flySpeed: 1.2,
}
interface MapGLTransitionOptions {
    flyCurve?: number;
    flySpeed?: number;
    type?: "none" | "hybrid" | "fly" | "jump";
}

Hierarchy (View Summary)

Properties

flyCurve?: number

The zooming "curve" that will occur along the flight path.

1.42
flySpeed?: number

The average speed of the animation defined in relation to curve.

1.2
type?: "none" | "hybrid" | "fly" | "jump"

Type of camera move on result selection.

  • jump: change the position of the camera without animation
  • fly: animating camera transition along curve that evokes flight
  • hybrid: use fly when the camera is near the point and jump otherwise