Maptitude GISDK Help |
Gets a list of all layers in the system.
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 layer name strings.
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.
The list of layers includes layers that appear in any open map or dataview, and layers that are in the workspace but not in a map.
If there are no layers in the current application, GetLayerNames() returns null.
lyrs = GetLayerNames({"Point"})
ShowArray(lyrs)
Function |
Summary |
Gets information on layers in the system and the current layer |
|
Get the type of a layer |
|
Gets a list of the layers in a map |
|
Adds a layer to an application without it appearing in a map or dataview |
©2025 Caliper Corporation | www.caliper.com |