FindLoadedLayer

globalmapper.FindLoadedLayer(str aFilename) GM_LayerHandle_t32[source]

Returns a handle to a matching loaded layer, or NULL if no match could be found or there are multiple matches.

The filename will be matched against a loaded layer filename or, if that fails, a layer description.

Wildcards (‘*’ and ‘?’) are supported.

Parameters:

Filename (str) – the layer name to search for

Returns:

The handle to the layer with the given file name, if any exist

Return type:

GM_LayerHandle_t32