Maptitude GISDK Help |
Gets information on layers in the system and the current layer.
In Version 2018 added the optional array of types.
layer_array = GetLayers(opt array types)
Argument |
Contents |
types |
An optional array of strings with one or more layer types |
An array of three elements:
Element |
Type |
Contents |
1 |
Array |
An array of the names of layers in the system (strings) |
2 |
Integer |
The index of the current layer in the list of names |
3 |
String |
The name of the current layer |
The array of types is an optional argument.
The array of types, if provided, restricts the layer types. For a description of the types, see IsLayer.
If no layers are present, the return value is null. If there is no current layer, the second array element is -1 and the third is null.
lyr_info = GetLayers()
if lyr_info[3] = null then SetLayer(lyr_info[1][1])
lyrs = GetLayers({"Point"})
ShowArray(lyrs[1])
Function |
Summary |
Copies the settings for a layer from one map to another |
|
Gets a list of all layers in the system |
|
Gets the name of the current layer, if any |
|
Gets the name of the current layer in a map |
©2025 Caliper Corporation | www.caliper.com |