AddCustomSymbol

globalmapper.AddCustomSymbol(string aSymbolFilename, string aSymbolName) GM_Error_t32[source]

Adds a new custom symbol that can be used when drawing point features (see the SetPointFeatureDrawStyle function).

Parameters:
  • aSymbolFilename (str) – Full path to symbol file (BMP or ICO)

  • aSymbolName (str) – Text name to use when referring to the symbol

Returns:

Error Code

Return type:

GM_Error_t32

Example

The following is an example of AddCustomSymbol.

err_AddCustomSymbol = gm.AddCustomSymbol(
    import_dir + "toucan_icon.ico", "Toucan Icon"
)