Maptitude GISDK Help |
Gets the title of a map.
GetMapTitle(string map_name)
Argument |
Contents |
map_name |
The name of the map or null for the current map |
The map title, which is the string on the window title bar, to the right of the map filename.
Two maps can have the same map title, but they cannot have the same map name. Map names are set by CreateMap() and OpenMap() and are gotten with GetMap(), GetMaps(), and GetMapNames().
To change the filename portion of the window title you must change the map filename, which can be done with SetMapFile().
// Get the name of the current map
map_name = GetMap()
// Get the title of the current map
map_title = GetMapTitle(map_name)
//Show both
ShowMessage("Map " + map_name + " has the title " + map_title)
Error Type |
Meaning |
NotFound |
The specified map does not exist |
Function |
Summary |
Create a new, empty map window |
|
Open a map file and display it in a map window |
|
Gets the name of the current map |
|
Get a list of maps and the name of the current map |
|
Gets a list of the names of maps in the system |
|
Sets the title of a map |
|
Gets the name of the file in which a map was last saved |
|
Sets the filename for a map |
©2025 Caliper Corporation | www.caliper.com |