globalmapper.SetLayerEnabled

globalmapper.SetLayerEnabled(GM_LayerHandle_t32 aLayer, bool aEnable) GM_Error_t32[source]

Sets whether or not a given layer is enabled for display. If disabled, the layer will never be drawn or used as input for other translucent or texture-mapped layers.

All layers are enabled by default when initially loaded.

Parameters:
  • aLayer (GM_LayerHandle_t32) – layer to enable or disable

  • aEnable (bool) – enable or disable the layer?

Returns:

Error Code

Return type:

GM_Error_t32