Maptitude GISDK Help

The GISDK Current Layer

GISDK lets you designate one layer in each map as the current layer. The current layer is the default layer for many different GISDK functions. You use the following GISDK functions to identify and change the current layer:

 

GISDK Function

Summary

GetLayer()

Gets the name of the current layer, if any

GetMapCurrentLayer()

Gets the name of the current layer in a map

SetLayer()

Sets the current layer (and the current view)

 

The activate macro for a map window automatically sets the current layer. Each map can have its own current layer. If the current layer has not been set, the macro finds the first visible layer in the map, and makes that layer the current layer using SetLayer().

 

There are times when no current layer has been set. In that case, GetLayer() returns null. For more information, see Views, Layers and Joined Views.

 

 

©2025 Caliper Corporation www.caliper.com