Click or drag to resize

GM_UtilityMapCatalogSetMapOption 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:  GlobalMapperWrapperNET45 (in GlobalMapperWrapperNET45.dll) Version: 19.1.0.0 (19.1.0.0)
Syntax
public static GM_Error_t32 MapCatalogSetMapOption(
	GM_Layer_t aCatalogLayer,
	uint aMapIndex,
	GM_MapCatalogMapOpt_t8 aMapOpt,
	GM_Projection_t aMapProj
)

Parameters

aCatalogLayer
Type: GlobalMapper.TypesGM_Layer_t
IN: Handle to map catalog layer (either from loading or GM_CreateMapCatalog)
aMapIndex
Type: SystemUInt32
IN: Index of map (0-based) to disable/enable
aMapOpt
Type: GlobalMapper.TypesGM_MapCatalogMapOpt_t8
IN: Option to set. This determines what type you should pass in for *aOptData*
aMapProj
Type: GlobalMapper.TypesGM_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