globalmapper.LoadLayer

globalmapper.LoadLayer(str aFilename, GM_LoadFlags_t32 aLoadFlags) GM_Error_t32, GM_LayerHandle_t[source]

Loads the given file and returns the handle to the layer. The layer handle can be used in other calls into the library. The layer must be closed by calling CloseLayer when the caller is done using it.

This function is deprecated. You should use LoadLayerList as it supports multiple layers being loaded from a single file (this is common with archive files like .zip and .tar.gz as well as multi-map formats like CADRG).

Parameters:
  • aFilename (str) – name of the file you want to load

  • aLoadFlags (GM_LoadFlags_t32) – control flags for loading the layer

Returns:

Error Code

Return type:

GM_Error_t32

Returns:

The layer that was loaded

Return type:

GM_LayerHandle_t32