globalmapper.CreateCustomVectorLayer ==================================== .. currentmodule:: globalmapper .. py:function:: CreateCustomVectorLayer (str aDescription, GM_Projection_t aProj) -> GM_LayerHandle_t32 Creates a new custom layer for adding vector features to. The handle to the newly created layer is returned. You must call :doc:`CloseLayer<../load/globalmapper.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 :doc:`AddAreaToVectorLayer`, :doc:`AddLineToVectorLayer`, and :doc:`AddPointToVectorLayer` functions to add features to the layer. :param str aDescription: Description to use for layer (can be None to use default) :param GM_Projection_t aProj: Native projection of new layer :returns: The new custom vector layer :rtype: GM_LayerHandle_t32