Maptitude GISDK Help |
Sets the current layer (and the current view).
SetLayer(string layer_name)
Argument |
Contents |
layer_name |
The name of the layer |
old_layer = GetLayer()
SetLayer("U.S. States")
// Do some stuff on the States layer...
SetLayer(old_layer)
SetLayer() also sets the current view to match the current layer.
If there are several mappable views linked to the current layer, the current view is chosen arbitrarily from among them.
Each map has its own current layer.There are times when no current layer has been set. In that case, GetLayer() returns null.
Error Type |
Meaning |
Error |
Missing or syntactically invalid layer name |
NotFound |
The layer does not exist |
Function |
Summary |
Gets the name of the current layer, if any |
|
Gets a list of all layers in the system |
|
Sets the current view (and the current layer) |
©2025 Caliper Corporation | www.caliper.com |