Global Mapper SDK
GM_CreateCustomVectorLayer
Creates a new custom layer for adding vector features to. The handle to the newly created layer is returned. You must call GM_CloseLayer on the returned handle when you are done with it. If a problem occurs, NULL is returned for the layer handle. After creating the layer, use the GM_AddAreaToVectorLayer , GM_AddLineToVectorLayer , and GM_AddPointToVectorLayer functions to add features to the layer.
Syntax
C++
Copy
GM_DLL_EXPORTED GM_LayerHandle_t32 GM_CreateCustomVectorLayer
(
const char* aDescription, // IN: Description to use for layer (can be NULL to use default)
const GM_Projection_t* aProj // IN: Native projection of new layer
);