GetMapCurrentLayer()
Summary
Gets the name of the current layer in a map.
Syntax
curr_layer = GetMapCurrentLayer(string map_name)
| Argument | Contents |
|---|---|
| map_name | The name of the map, or null for the current map |
Returns
A string with the name of the current layer in the map
Notes
-
GetMapCurrentLayer() returns the current layer in the current map, regardless of whether a map window is the current window.
-
Each map stores its own current layer.
Example
curr_layer = GetMapCurrentLayer()
ShowMessage("The current layer is " + curr_layer)
See Also
| Function | Summary |
|---|---|
| GetLayer() | Gets the name of the current layer, if any |
| GetLayers() | Gets information on layers in the system and the current layer |
| GetMapLayers() | Gets a list of the layers in a map |