BIS_fnc_mapGridSize

From Bohemia Interactive Community
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Hover & click on the images for description

Description

Description:
Returns the size of map grid square at current zoom level.
This function caches config lookup result on the first use and for the duration of the mission, making subsequent access 2-3 times faster.
Execution:
call
Groups:
Map and Markers

Syntax

Syntax:
[map] call BIS_fnc_mapGridSize
Parameters:
map: Control - (Optional, default main mission map (findDisplay 12 displayCtrl 51)) map control
Return Value:
Number - map grid size

Examples

Example 1:
private _gridSize = [] call BIS_fnc_mapGridSize;

Additional Information

See also:
BIS_fnc_mapSize

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note