flyTo

Description

Set the longitude, latitude, map size to zoom, and speed to fly. Combinatino the set values and flies as if they were flying to the specified coordinates.

Parameter

options

Name Description Parameter Optional
lat Set the latitude. number must
lng Set the longitude. number must
zoom Set the map's zoom level. number must
speed Set the flying speed. number optional Default 2.5

Example

     map.flyTo ({
         lat: 37.553749,
         lng: 126.808706,
         zoom: 15,
         speed: 4
     })