Closed bearsworth closed 5 months ago
interface FlyToOptions extends AnimationOptions, CameraOptions
center and zoom are part of CameraOptions. Have you tried just typing these options?
How do I get flyTo similar to the current version of mapbox?
Please follow the instructions when you open an issue.
Description
Initially I had issues with flyTo but realized I could only use jumpTo. Jumpto kind of works as expected. For some reason though my flyTo looks like this:
flyTo(options: mapboxgl.FlyToOptions, eventData?: mapboxgl.EventData): this;
export interface FlyToOptions extends AnimationOptions, CameraOptions { curve?: number | undefined; minZoom?: number | undefined; speed?: number | undefined; screenSpeed?: number | undefined; maxDuration?: number | undefined; }
The current mapbox version has centering and zoom, etc.
Expected Behavior
How do I get flyTo similar to the current version of mapbox?
Steps to Reproduce
I am using the default app with minimal settings.
mapRef.current?.jumpTo({ center: [lng, lat], zoom: 10, });
But I would really like to use flyTo similar to the current version of mapbox.
Maybe someone has found this error before.
Environment
Logs
No response