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



Introduced in

Version:1.19

Description

Description:Makes a specified layer active (editable).

Syntax

Syntax:map switchLayer [index, exclusive]
Parameters:
  • map: Control - Map control.
  • index: Number - Index of layer to check (corresponds to array returned by getLayers), -1 switches to the base layer.
  • exclusive: Boolean - If true, then only the selected layer can be edited. If false, then every layer that is being switched to can be edited at the same time.
Return Value:Nothing

Examples

Examples:
_map switchLayer [1,true]

Additional Information

See also:
Multiplayer:
Problems:

Notes