> For the complete documentation index, see [llms.txt](https://nostramap-doc.fatos.biz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nostramap-doc.fatos.biz/fatos-api/map/map-control/heading.md).

# 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
```
