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