---
name: "ctrlMapDir"
type: command
status: ok
groups: ["GUI Control - Map"]
arma3_since: "2.14"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/ctrlMapDir
revid: 347213
updated: 2023-09-05T16:49:02Z
---

# ctrlMapDir

*Command · GUI Control - Map · Arma 3 v2.14*

## Description

Returns the current orientation angle of the map control in degrees.

## Syntax

```sqf
ctrlMapDir ctrl
```

**Parameters:**

- `ctrl`: [Control](../topics/Control.md)

**Returns:** [Number](../topics/Number.md)

## Examples

### Example 1

```sqf
private _mapControl = findDisplay 12 displayCtrl 51; // get the map
private _dir = ctrlMapDir _mapControl; // returns 0 as the main map does not autorotate
```

## See also

[ctrlMapScale](../commands/ctrlMapScale.md)

<sub>Source: [BI Community Wiki — ctrlMapDir](https://community.bistudio.com/wiki/ctrlMapDir) (revision 347213).</sub>
