# Heading

## setHeading

Takes an angle value (in degree) and sets "heading" (focal point) to rotate the map in the desired direction or angle. The default is 0 degree (North)

```
mapInstance.setHeading(value);
```

### Parameter

| Required Parameter | Description                   | Type    |
| ------------------ | ----------------------------- | ------- |
| value              | Angle in degree from 0 to 360 | Numeric |

### Example

```
mapInstance.setHeading(90);
```

## getHeading

Gets the current focal point (heading) value in angle.

```javascript
mapInstance.getHeading();
```

### Return

The angle in degree.

### Example

```javascript
mapInstance.getHeading();
return : 90
```


---

# 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://nostramap-doc.fatos.biz/fatos-api/map/map-control/heading.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.
