globalmapper.SetLineFeatureDrawStyle

globalmapper.SetLineFeatureDrawStyle(GM_LayerHandle_t32 aLayer, uint32 aLineIndex, GM_LineStyle_t aLineStyle) GM_Error_t32[source]

Sets the pen style and font to use for drawing the given line object. Pass None for the line style to reset the drawing style to the default style for the classification of the line.

Typically, when modifying the drawing style of a line you will want to call GetLineFeature to get the current drawing style, then copy the mLineStyle member of the GM_LineFeature_t and just change what you need, then pass your copy in to this function.

Parameters
  • aLayer (GM_LayerHandle_t32) – Layer the line is in

  • aLineIndex (uint32) – Index of line in layer

  • aLineStyle (GM_LineStyle_t) – New style to use for line

Returns

Error Code

Return type

GM_Error_t32