Click or drag to resize

GM_MapCatalogSetMapOption

Sets an option for a map in the map catalog, like the native projection. The option type determines what type of data to pass in for the aOptData parameter. The following types of options can be set:

  • GM_MapCatalog_SetMapProjection - set the native projection to use for the map. The aOptData should be a GM_Projection_t*
Syntax
GM_DLL_EXPORTED GM_Error_t32 __stdcall GM_MapCatalogSetMapOption
(
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
GM_MapCatalogMapOpt_t8  aMapOpt,        // IN: Option to set. This determines what type you should pass in for <aOptData>
const void*             aOptData        // IN: Data to use for option. The value of <aMapOpt> controls what this should be.
)