globalmapper.CreateCustomVectorLayer(str aDescription, GM_Projection_t aProj) GM_LayerHandle_t32[source]

Creates a new custom layer for adding vector features to. The handle to the newly created layer is returned. You must call CloseLayer on the returned handle when you are done with it. If a problem occurs, 0 is returned for the layer handle. After creating the layer, use the AddAreaToVectorLayer, AddLineToVectorLayer, and AddPointToVectorLayer functions to add features to the layer.

  • aDescription (str) – Description to use for layer (can be None to use default)

  • aProj (GM_Projection_t) – Native projection of new layer


The new custom vector layer

Return type