Maptitude GISDK Help |
Saves settings for a map window to a file on disk.
SaveMap(string map_name, string path [, array options])
Argument |
Contents |
map_name |
The name of the map, or null for the current map |
path |
The path and file name in which to save the map, or null to save the map to the file either from which it was opened or to which it was most recently saved |
Option |
Type |
Contents |
Header Data |
Any |
A value to store in the file header, including an array |
The options array is an optional argument.
SaveMap("My First Map", "c:\\mymap.map")
// HeaderData variable defined previously
SaveMap( , "c:\\mymap1.map", {{"Header Data", HeaderData}})
Error Type |
Meaning |
Error |
Unable to create the map file (e.g., out of disk space, the drive or directory is read only) |
NotFound |
There is no map with the specified name, or path is null and the map was not previously saved to a file |
Function |
Summary |
Creates a copy of a map |
|
Gets the name of the file in which a map was last saved |
|
Determines whether a map has changed since it was last saved to a file |
|
Opens a map file and displays it in a map window |
©2025 Caliper Corporation | www.caliper.com |