| Maptitude GISDK Help |
Controls whether a layer, set, or a theme is displayed in the legend.
SetLegendDisplayStatus(string set_or_theme_name, boolean display_flag)
| Argument | Contents |
|---|---|
| set_or_theme_name | The name of the set or theme |
| display_flag | "True" to display the set or the theme in the legend; "False" to hide the set or the theme |
If the set name is of the form layer|, indicating all features in a layer, SetLegendDisplayStatus() will control whether the layer name is or is not displayed in the legend.
// Hide all the selection sets for the Streets layer
sets = GetSets("Street")
for i = 1 to sets.length do
SetLegendDisplayStatus(sets[i], "False")
end
// Hide the listing for the current layer
SetLegendDisplayStatus( GetMap() + "|" + GetLayer() + "|", "False")
// Show the first selection set in the current layer
sets = GetSets()
SetLegendDisplayStatus( GetMap() + "|" + GetLayer() + "|" + sets[1], "True")
| Error Type | Meaning |
|---|---|
| NotFound | The set or theme was not found |
| Error | The set or theme was invalid |
| Function | Summary |
|---|---|
| GetLegendDisplayStatus() | Determines whether a layer, set, or a theme is displayed in the legend |
| ©2025 Caliper Corporation | www.caliper.com |