Maptitude GISDK Help

GetLayerPosition()

Summary

Gets the position (drawing order) of a layer in a map.

 

Syntax

pos = GetLayerPosition(string map_name, string layer_name)

 

Argument

Contents

map_name

The name of the map

layer_name

The name of the layer

 

Returns

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.

 

Example

// Make sure the counties layer is the first layer

pos = GetLayerPosition("My Map", "Counties")

if pos <> 1 then SetLayerPosition("My Map", "Counties", 1)

 

Error Codes

Error Type

Meaning

NotFound

The specified map or layer does not exist

Error

The layer is not in the map

 

See Also

Function

Summary

SetLayerPosition()

Sets the position (drawing order) of a layer in a map

GetMapLayers()

Gets a list of layers in the map

 

 

©2025 Caliper Corporation www.caliper.com