Maptitude GISDK Help |
Gets the name of the file in which a map was last saved.
file = GetMapFile(string map_name)
Argument |
Contents |
map_name |
The name of the map, or null for the current map |
A string indicating the name of the file from which the map was loaded, or to which to map was most recently saved. If the map has never been saved to a file, GetMapFile() returns null.
The name of the file is shown in the title bar of the map window.
SetMapFile() can be used to change the name of the file, or set the filename to null.
// Get the name of the current map
map_name = GetMap()
// Get the filename for the current map
map_file = GetMapFile(map_name)
//Show both
ShowMessage("Map " + map_name + " is from file " + map_file)
Error Type |
Meaning |
NotFound |
The specified map does not exist |
Function |
Summary |
Saves settings for a map window to a file on disk |
|
Open a map file and display it in a map window |
|
Determines whether a map has changed since it was last saved to a file |
|
Sets the flag that indicates whether a map has changed since it was last saved to a file |
|
Sets the filename for a map |
|
Gets the title of a map |
|
Sets the title of a map |
©2025 Caliper Corporation | www.caliper.com |