---
name: "markerShape"
type: command
status: ok
groups: ["Markers"]
arma3_since: "0.50"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/markerShape
revid: 378609
updated: 2026-05-13T15:29:58Z
---

# markerShape

*Command · Markers · Arma 3 v0.50 · introduced in Arma 2 v1.00*

Locality: arguments **global**

## Description

Returns the shape of given marker. markerShape#Example_2

> [!NOTE]
> This command can be used as a fast way to check if a marker exists. See [#Example 2](../commands/markerShape.md#example-2).

## Syntax

```sqf
markerShape name
```

**Parameters:**

- `name`: [String](../topics/String.md) - name of the marker

**Returns:** [String](../topics/String.md) - shape of given marker. Can be return:
- `""` - if the marker does not exist
- `"ICON"`
- `"RECTANGLE"`
- `"ELLIPSE"`
- Arma 3 v1.60 `"POLYLINE"` - hand drawn markers
- Arma 3 v2.20 `"TRIANGLE"`
- Arma 3 v2.20 `"PENTAGON"`
- Arma 3 v2.20 `"HEXAGON"`
- Arma 3 v2.20 `"HEPTAGON"`
- Arma 3 v2.20 `"OCTAGON"`
- Arma 3 v2.20 `"NONAGON"`
- Arma 3 v2.20 `"DECAGON"`

## Examples

### Example 1

```sqf
if (markerShape "Marker1" == "RECTANGLE") then { hint "Marker1 is a rectangle!" };
```

### Example 2

```sqf
if (markerShape "Marker1" == "") then { hint "Marker1 does not exist!" };
```

## See also

[setMarkerShape](../commands/setMarkerShape.md) · [setMarkerShapeLocal](../commands/setMarkerShapeLocal.md)

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