Flyto
Animated focus to a location

flyTo

Takes a JSON object as a parameter that contains latitude, longitude, zoom, and optional speed. Displays a location that matches the parameters with flying animation.
Parameter
Description
Type
lat
Latitude
Numeric
lng
Longitude
Numeric
zoom
Zoom level of the map
Numeric
speed (optional)
Determines flying animation speed
The default value: 2.5
Numeric

Example

mapInstance.flyTo ({
lat: 37.553749,
lng: 126.808706,
zoom: 15,
speed: 4
})
Last modified 1yr ago
Copy link
On this page
flyTo
Example