BIS fnc mapGridSize: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| +(x[0-9]|p[0-9]{1,2}|descr|game[0-9]|version[0-9]|s[0-9]|exec|r[0-9]|arg|eff|branch|serverExec|gr[0-9]|mp|pr|seealso) *=" to " |$1=")
m (Some wiki formatting)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{RV|type=function
{{RV|type=function


| arma3
|game1= arma3
 
|version1= 1.92
|1.92


|gr1= Map and Markers
|gr1= Map and Markers


| Returns the size of map grid square at current zoom level.{{Feature | Informative | This function caches config lookup result on the first use and for the duration of the mission, making subsequent access 2-3 times faster.}}
|descr= Returns the size of map grid square at current zoom level.
{{Feature|informative|This function caches config lookup result on the first use and for the duration of the mission, making subsequent access 2-3 times faster.}}


| [map] call [[BIS_fnc_mapGridSize]]
|s1= [map] call [[BIS_fnc_mapGridSize]]


|p1= [map]: [[Array]]
|p1= map: [[Control]] - (Optional, default main mission map ([[findDisplay]] 12 [[displayCtrl]] 51)) map control
|p2= map (Optional): [[Control]] - map control. Default: main mission map ([[findDisplay]] 12 [[displayCtrl]] 51)


|r1= [[Number]] - map grid size
|r1= [[Number]] - map grid size


|x1= <code>_gridSize = [] [[call]] [[BIS_fnc_mapGridSize]];</code>
|x1= <sqf>private _gridSize = [] call BIS_fnc_mapGridSize;</sqf>


|seealso= [[BIS_fnc_mapSize]]
|seealso= [[BIS_fnc_mapSize]]
}}
}}

Latest revision as of 19:13, 3 May 2022

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