globalmapper.MapCatalogAddLayer =============================== .. currentmodule:: globalmapper .. py:function:: MapCatalogAddLayer (GM_LayerHandle_t32 aCatalogLayer, GM_LayerHandle_t32 aMapLayer) -> GM_Error_t32 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 :doc:`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 :doc:`CloseLayer<../load/globalmapper.CloseLayer>` on the map layer after adding it to the catalog layer. :param GM_LayerHandle_t32 aCatalogLayer: Handle to map catalog layer (either from loading or CreateMapCatalog) :param GM_LayerHandle_t32 aMapLayer: Handle of loaded map layer to add to the catalog :returns: Error Code :rtype: GM_Error_t32