Maptitude GISDK Help |
Gets the position (drawing order) of a layer in a map.
pos = GetLayerPosition(string map_name, string layer_name)
Argument |
Contents |
map_name |
The name of the map |
layer_name |
The name of the layer |
An integer indicating the position of the layer in the drawing order of the map. The first layer drawn has a position of one. The second layer has a position of two, etc.
// Make sure the counties layer is the first layer
pos = GetLayerPosition("My Map", "Counties")
if pos <> 1 then SetLayerPosition("My Map", "Counties", 1)
Error Type |
Meaning |
NotFound |
The specified map or layer does not exist |
Error |
The layer is not in the map |
Function |
Summary |
Sets the position (drawing order) of a layer in a map |
|
Gets a list of layers in the map |
©2025 Caliper Corporation | www.caliper.com |