globalmapper.MapCatalogAddLayer¶
- globalmapper.MapCatalogAddLayer(GM_LayerHandle_t32 aCatalogLayer, GM_LayerHandle_t32 aMapLayer) GM_Error_t32 [source]¶
Adds a new map to the map catalog from a layer that has already been loaded. The aCatalogLayer parameter should have either been created using MapCatalogCreate or loaded with one of the LoadLayer* functions.
Note that the layer provided will remain open as a separate layer as well. If this is not the desired behavior, simply call CloseLayer on the map layer after adding it to the catalog layer.
- Parameters
aCatalogLayer (GM_LayerHandle_t32) – Handle to map catalog layer (either from loading or CreateMapCatalog)
aMapLayer (GM_LayerHandle_t32) – Handle of loaded map layer to add to the catalog
- Returns
Error Code
- Return type
GM_Error_t32