Description
Map will zoom on the given area. Function always takes the longer side of the area to zoom on.
Syntax
[area, center, time, handler, forceCam] call BIS_fnc_zoomOnArea
Parameters:
area: Array - area to zoom oncenter: Array - coordinates of the centertime: Number - (Optional, default 1) time of the zoom operationhandler: Control - (Optional, default nil) handler to the map display control (you can pass one if already exists, if not, handler is created)forceCam: Boolean - (Optional, default false) whether to force the camera in position after the zoom.
Returns: Number - zoom level
Examples
Example 1
openMap true;
[markerSize "BIS_areaMarker", markerPos "BIS_areaMarker", 5] call BIS_fnc_zoomOnArea;