---
name: "BIS_fnc_mapAnimAdd"
type: function
status: ok
groups: ["Map and Markers"]
arma3_since: "1.00"
locality: {"argument": "local", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_mapAnimAdd
revid: 323161
updated: 2022-07-01T10:31:36Z
---

# BIS_fnc_mapAnimAdd

*Function · Map and Markers · Arma 3 v1.00*

Locality: arguments **local** · effect **local**

## Description

Similar to [mapAnimAdd](../commands/mapAnimAdd.md), yet it provides additional parameters to allow for a non-linear zoom and various position interpolation modes.

## Syntax

```sqf
[duration, toZoom, toPosition, interpModeZoom, interpModePosition, fromZoom, fromPosition] call BIS_fnc_mapAnimAdd
```

**Parameters:**

- `duration`: [Number](../topics/Number.md) - (Optional, default 1.0) the animation duration in seconds
- `toZoom`: [Number](../topics/Number.md) - (Optional, default 0.05) the zoom at the end of the animation, ranging from 0.01 (max. zoom) to 1 (zoomed out)
- `toPosition`: [Position](../topics/Position.md) - (Optional, default [0, 0, 0]) the position vector
- `interpModeZoom`: [Number](../topics/Number.md) - (Optional, default 12) the interpolation mode for the zoom
- `interpModePosition`: [Number](../topics/Number.md) - (Optional, default 12) the interpolation mode for the position
- `fromZoom`: [Number](../topics/Number.md) - (Optional, default current map zoom) the zoom at the begnning of the animation, ranging from 0.01 (max. zoom) to 1 (zoomed out)
- `fromPosition`: [Array](../topics/Array.md) format [Position](../topics/Position.md) - (Optional, default current map position) the position vector from which to start the animation

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

## Examples

### Example 1

```sqf
openMap true; // the function will not work if the map is not open
[2.0, 0.05, getPosASL player] call BIS_fnc_mapAnimAdd;
```

## See also

[BIS_fnc_mapAnimClear](../functions/BIS_fnc_mapAnimClear.md) · [BIS_fnc_mapAnimDone](../functions/BIS_fnc_mapAnimDone.md) · [mapAnimAdd](../commands/mapAnimAdd.md) · [mapAnimClear](../commands/mapAnimClear.md) · [mapAnimCommit](../commands/mapAnimCommit.md) · [mapAnimDone](../commands/mapAnimDone.md) · [ctrlMapAnimAdd](../commands/ctrlMapAnimAdd.md) · [ctrlMapAnimClear](../commands/ctrlMapAnimClear.md) · [ctrlMapAnimCommit](../commands/ctrlMapAnimCommit.md) · [ctrlMapAnimDone](../commands/ctrlMapAnimDone.md)

<sub>Source: [BI Community Wiki — BIS fnc mapAnimAdd](https://community.bistudio.com/wiki/BIS_fnc_mapAnimAdd) (revision 323161).</sub>
