AddLineToVectorLayer¶
- globalmapper.AddLineToVectorLayer(GM_LayerHandle_t32 aLayer, GM_LineFeature_t aLine, GM_AddFeatureFlags_t8 aFlags) GM_Error_t32 [source]¶
Adds a line feature to a loaded vector layer or custom vector layer created with the CreateCustomVectorLayer function.
- Parameters:
aLayer (GM_LayerHandle_t32) – Layer to add line to
aLine (GM_LineFeature_t) – Line feature to add
aFlags (GM_AddFeatureFlags_t8) – Flags controlling the add
- Returns:
Error Code
- Return type:
GM_Error_t32
Example¶
The following is an example of AddLineToVectorLayer.:
gm.AddLineToVectorLayer(created_layer, line, gm.GM_AddFeature_MoreAddsToFollow)
For more context refer to the custom layer and feature creation sample scripts.