---
name: "ctrlMapWorldToScreen"
type: command
status: ok
groups: ["GUI Control - Map"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/ctrlMapWorldToScreen
revid: 379409
updated: 2026-10-31T00:02:41Z
---

# ctrlMapWorldToScreen

*Command · GUI Control - Map · Arma 3 v0.50 · introduced in Armed Assault v1.05*

## Description

Converts world coordinates into map screen coordinates. This command is identical to [posWorldToScreen](../commands/posWorldToScreen.md).

## Syntax

```sqf
control ctrlMapWorldToScreen position
```

**Parameters:**

- `control` : [Control](../topics/Control.md) - map control
- `position` : [Position2D](../topics/Position.md#introduction) or [Position3D](../topics/Position.md#introduction) - world position

**Returns:** [Position2D](../topics/Position.md#introduction) - screen coordinates in format [x, y]

## Examples

### Example 1

```sqf
_screenCoord = _control ctrlMapWorldToScreen _worldCoord;
```

### Example 2

```sqf
_screenCoord = _control ctrlMapWorldToScreen position player;
```

## See also

[ctrlMapScreenToWorld](../commands/ctrlMapScreenToWorld.md) · [posWorldToScreen](../commands/posWorldToScreen.md)

## Community notes

**.kju** — 2010-06-16

This command returns a 2D array with the position on the active map display. Say the return [0.5.0.5] would mean that your input 3d world position, like [500,1000], is currently at the center of the active map display.\
In other words you can make the actual world position (of an object for example), relative to your active map display.

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