Global Mapper SDK
GM_MapCatalogDisableMap
Disables (or re-enables) a map inside a map catalog. Use GM_MapCatalogGetInfo to get the count of maps in a layer.
Syntax
C++
Copy
GM_DLL_EXPORTED GM_Error_t32 __stdcall GM_MapCatalogDisableMap
(
GM_LayerHandle_t32 aCatalogLayer, // IN: Handle to map catalog layer (either from loading or GM_CreateMapCatalog)
uint32 aMapIndex, // IN: Index of map (0-based) to disable/enable
boolean aDisable // IN: Pass TRUE to disable map or FALSE to re-enable it
);