globalmapper.LoadMapLayoutFile

globalmapper.LoadMapLayoutFile(str aFilename, int aReserved) GM_Error_t32[source]

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.

Parameters
  • aFilename (str) – name of map layout filename

  • aReserved (int) – Reserved for later use, must be 0.

Returns

Error Code

Return type

GM_Error_t32