---
name: "ctrlMapPosition"
type: command
status: ok
groups: ["GUI Control - Map"]
arma3_since: "2.08"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/ctrlMapPosition
revid: 377802
updated: 2026-01-03T04:03:42Z
---

# ctrlMapPosition

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

## Description

A getter for [ctrlMapSetPosition](../commands/ctrlMapSetPosition.md). Returns map position in format [x, y, w, h]. If map is inside a Controls Group, the x and y position is relative to the Controls Group top left corner.

## Syntax

```sqf
ctrlMapPosition map
```

**Parameters:**

- `map`: [Control](../topics/Control.md) - Map control

**Returns:** [Array](../topics/Array.md) with [x, y, w, h]
- x: [Number](../topics/Number.md) - position in x
- y: [Number](../topics/Number.md) - position in y
- w: [Number](../topics/Number.md) - width of the map control
- h: [Number](../topics/Number.md) - height of the map control

## Examples

### Example 1

```sqf
ctrlMapPosition _map;
```

## See also

[ctrlMapSetPosition](../commands/ctrlMapSetPosition.md) · [ctrlCreate](../commands/ctrlCreate.md)

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