Maptitude GISDK Help |
Get the type of a layer.
Added Image Library as a layer type in Version 5.0.
layer_type = GetLayerType(string layer_name)
Argument |
Contents |
layer_name |
The name of the layer of interest |
A string: "Point", "Line", or "Area" for geographic layers, "Image" for image layers, or "Image Library" for image libraries.
lyr = GetLayer()
typ = GetLayerType(lyr)
if typ = "Point" then SetIconColor(lyr + "|", red)
else if typ = "Line" then SetLineColor(lyr + "|", red)
else if typ = "Area" then SetBorderColor(lyr + "|", red)
Error Type |
Meaning |
NotFound |
The specified layer does not exist |
Function |
Summary |
Gets the name of the current layer, if any |
|
Determines whether a layer is of the given types |
©2025 Caliper Corporation | www.caliper.com |