# Flyto

## 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) | <p>Determines flying animation speed</p><p>The default value: 2.5</p> | Numeric |

### Example

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