Global Mapper SDK
GM_LoadMapLayoutFile
Loads a map layout from a file. The map layout text file sets up the display of elevation legend, distance scale, vector feature legend, and north arrow. If you provide the flag GM_DrawFlags_DrawMapLayoutLayers when drawing then any configured map layout layers will be displayed.
The map layout file is a simple text file. While there is not a document describing its format, you can setup a map layout on the Map Layout dialog in the Global Mapper application and save it to a file, then examine and edit that in a text editor to determine the format.
Syntax
C++
Copy
GM_Error_t32 GM_LoadMapLayoutFile
(
const char* aFilename, // in: name of map layout filename
void* aReserved // reserved for later use, must be NULL
)