- 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
Example
The following is an example of MapCatalogAddLayer.:
gm.MapCatalogAddLayer(layers_list[0], layers_list[1])
For more context refer to the map catalog sample scripts.
Comments
0 comments
Please sign in to leave a comment.