| Maptitude GISDK Help |
Changes the order of items in a manual legend.
SetLegendItemPosition(string map_name, integer old_position, integer new_position)
| Argument | Contents |
|---|---|
| map_name | The name of the map |
| old_position | The current ordinal position of the item |
| new_position | The desired ordinal position of the item |
Items in an automatic legend are shown in their map display order. To change the order of legend items, change their display order in the map.
| Error Type | Meaning |
|---|---|
| Error | The positions were not within the range of availables items or the legend is an automatic legend |
| NotFound | The named map does not exist or has no legend |
| Function | Summary |
|---|---|
| SetLegendSettings() | Changes the settings for a map legend |
| AddLegendItem() | Adds an item to a manual map legend |
| DropLegendItem() | Drops an item from a manual legend |
| DropLegendItem() | Drops an item from a manual legend |
| ©2025 Caliper Corporation | www.caliper.com |