globalmapper.SetAreaFeatureDrawStyle

globalmapper.SetAreaFeatureDrawStyle(GM_LayerHandle_t32 aLayer, uint32 aAreaIndex, GM_AreaStyle_t aAreaStyle) GM_Error_t32[source]

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

Typically, when modifying the drawing style of an area you will want to call GetAreaFeature to get the current drawing style, then copy the mAreaStyle member of the GM_AreaFeature_t and just change what you need, then pass your copy in to this function.

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

  • aAreaIndex (uint32) – Index of area in layer

  • aAreaStyle (GM_AreaStyle_t) – New style to use for area

Returns

Error Code

Return type

GM_Error_t32