{"name":"BIS_fnc_zoomOnArea","title":"BIS fnc zoomOnArea","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_zoomOnArea","revid":322348,"updated":"2022-05-31T21:47:12Z","groups":["Map and Markers"],"status":"ok","games":{"arma3":"1.78"},"since":"arma3 1.78","arma3_since":"1.78","description":"Map will zoom on the given area. Function always takes the longer side of the area to zoom on.","syntaxes":[{"syntax":"[area, center, time, handler, forceCam] call BIS_fnc_zoomOnArea","params":[{"name":"area","type":"Array","description":"area to zoom on","type_expr":"Array"},{"name":"center","type":"Array","description":"coordinates of the center","type_expr":"Array"},{"name":"time","type":"Number","optional":true,"default":"1","description":"time of the zoom operation","type_expr":"Number","text":"time: Number - (Optional, default 1) time of the zoom operation"},{"name":"handler","type":"Control","optional":true,"default":"nil","description":"handler to the map display control (you can pass one if already exists, if not, handler is created)","type_expr":"Control","text":"handler: Control - (Optional, default nil) handler to the map display control (you can pass one if already exists, if not, handler is created)"},{"name":"forceCam","type":"Boolean","optional":true,"default":"false","description":"whether to force the camera in position after the zoom.","type_expr":"Boolean","text":"forceCam: Boolean - (Optional, default false) whether to force the camera in position after the zoom."}],"returns":{"type":"Number","type_expr":"Number","description":"zoom level"}}],"examples":[{"code":["openMap true;\n[markerSize \"BIS_areaMarker\", markerPos \"BIS_areaMarker\", 5] call BIS_fnc_zoomOnArea;"]}],"see_also":["BIS_fnc_zoomLock","BIS_fnc_zoomUnlock"]}