GM_Utility .MapCatalogSetMapOption Method
Sets an option for a map in a map catalog, like the native projection. The data passed in depends on the option type.

Namespace:GlobalMapper
Assembly:  GlobalMapperWrapperNET (in GlobalMapperWrapperNET.dll) Version: 18.0.0.0 (18.0.0.0)

Syntax
C#
Copy
public static GM_Error_t32 MapCatalogSetMapOption(
    GM_Layer_t aCatalogLayer,
    uint aMapIndex,
    GM_MapCatalogMapOpt_t8 aMapOpt,
    GM_Projection_t aMapProj
)

Parameters

aCatalogLayer
Type:  GlobalMapper . GM_Layer_t
IN: Handle to map catalog layer (either from loading or GM_CreateMapCatalog)
aMapIndex
Type:  System . UInt32
IN: Index of map (0-based) to disable/enable
aMapOpt
Type:  GlobalMapper . GM_MapCatalogMapOpt_t8
IN: Option to set. This determines what type you should pass in for *aOptData*
aMapProj
Type:  GlobalMapper . GM_Projection_t
IN: Data to use for option. The value of *aMapOpt* controls what this should be.

Return Value

Type:  GM_Error_t32
A GM Error Code
See Also