Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.19

Description

Description:Creates a new layer, and makes it active.

Syntax

Syntax:map newLayer [name, config]
Parameters:
  • map: Control - Map control.
  • name: Control - Name of the new layer.
  • config: Control - Layer configuration (always: configFile>>"CfgEditorOverlayTypes">>"Layer")
Return Value:Number - Index of the new layer.

Examples

Examples:
_idx = _map newLayer ["MyNewLayer",configFile>>"CfgEditorOverlayTypes">>"Layer"]

Additional Information

See also: 
Multiplayer: 
Problems: 

Notes