MapCatalogSetMapOption

globalmapper.MapCatalogSetMapOption(GM_LayerHandle_t32 aCatalogLayer, uint32 aMapIndex, GM_MapCatalogMapOpt_t8 aMapOpt, int aOptData) GM_Error_t32[source]

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

Parameters:
  • aCatalogLayer (GM_LayerHandle_t32) – Handle to map catalog layer (either from loading or CreateMapCatalog)

  • aMapIndex (uint32) – Index of map (0-based) to disable/enable

  • aMapOpt (GM_MapCatalogMapOpt_t8) – Option to set. This determines what type you should pass in for aOptData

  • aOptData (int) – Data to use for option. The value of aMapOpt controls what this should be.

Returns:

Error Code

Return type:

GM_Error_t32