SetMiscOptionEx

globalmapper.SetMiscOptionEx(GM_MiscOpt_t32 aOpt, int aNewValue, uint32 aReserved=0) int[source]

Sets an advanced/miscellaneous option to use during operation. Returns the previous value. See definition of GM_MiscOpt_t32 type for a list of available options and their descriptions. For on/off options you can also use the special value GM_MiscOptVal_Toggle to toggle the value to the opposite of the current value.

If you just want to get the current value of an option and not change it, use GetMiscOption.

Parameters:
  • aOpt (GM_MiscOpt_t32) – Option to set

  • aNewValue (int) – New value (i.e. 1 to enable or 0 to disable), or value of other setting. May be a pointer.

  • aReserved (uint32) – Reserved for future use; defaults to 0

Returns:

The value of the previous option

Return type:

int