# 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.&#x20;

| 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
})
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://fatos-doc.fatos.biz/fatos-api/map/map-control/flyto.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
