For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Type Alias FlyToOptions
curve?: number;
maxDuration?: number;
minZoom?: number;
padding?: number | PaddingOptions;
screenSpeed?: number;
speed?: number;
}
Type Declaration
Optionalcurve?: numberThe zooming "curve" that will occur along the flight path. A high value maximizes zooming for an exaggerated animation, while a low value minimizes zooming for an effect closer to Map.easeTo. 1.42 is the average value selected by participants in the user study discussed in van Wijk (2003). A value of
Math.pow(6, 0.25)would be equivalent to the root mean squared average velocity. A value of 1 would produce a circular motion.OptionalmaxDuration?: numberThe animation's maximum duration, measured in milliseconds. If duration exceeds maximum duration, it resets to 0.
OptionalminZoom?: numberThe minimum zoom level that the flight arc may reach. The animation will not zoom out beyond this level. If the natural flight arc stays within this boundary, the arc is unchanged. This acts as a ceiling on zoom-out even when
options.curveis also specified.Optionalpadding?: number | PaddingOptionsThe amount of padding in pixels to add to the given bounds.
OptionalscreenSpeed?: numberThe average speed of the animation measured in screenfulls per second, assuming a linear timing curve. If
options.speedis specified, this option is ignored.Optionalspeed?: numberThe average speed of the animation defined in relation to
options.curve. A speed of 1.2 means that the map appears to move along the flight path by 1.2 timesoptions.curvescreenfulls every second. A screenfull is the map's visible span. It does not correspond to a fixed physical distance, but varies by zoom level.
The Map.flyTo options object