Atlaslog
Atlaslog / MapLibre GL JS / API / easeTo
MapLibre GL JS · API reference

easeTo

Quick answer

easeTo ( options : EaseToOptions , eventData? : any ): this

Last verified 2026-11-03 · MapLibre GL JS 4.x · Cite this page
Runnable examplesChinese noteAll API topics
easeTo()

easeTo(options: EaseToOptions, eventData?: any): this

Defined in: ui/map.ts:1503

Changes any combination of center, zoom, bearing, pitch, roll, and padding with an animated transition between old and new values. The map will retain its current values for any details not specified in options.

Reduced Motion

The transition will happen instantly if the user has enabled the reduced motion accessibility feature enabled in their operating system, unless options includes essential: true.

Triggers the following events: movestart, move, moveend, zoomstart, zoom, zoomend, pitchstart, pitch, pitchend, rollstart, roll, rollend, and rotate.

Parameters

Parameter Type Description
options EaseToOptions Options describing the destination and animation of the transition. Accepts CameraOptions and AnimationOptions.
eventData? any Additional properties to be added to event objects of events triggered by this method.

Returns

this

See

Navigate the map with game-like controls


TutorialsAPI index
English reference text adapted from the official MapLibre GL JS documentation, © MapLibre contributors, licensed under BSD-3-Clause.
Original page: https://maplibre.org/maplibre-gl-js/docs/API/classes/Map/ · Chinese note: /maplibre/api/ease-to.html
Cite this page

Atlaslog (2026). easeTo. https://www.jingweizhi.com/en/maplibre/api/ease-to.html (accessed 2026-11-03).