Animated focus to a location
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
zoom
Zoom level of the map
speed (optional)
Determines flying animation speed
The default value: 2.5
mapInstance.flyTo ({ lat: 37.553749, lng: 126.808706, zoom: 15, speed: 4 })
Last updated 5 years ago