globalmapper.DeleteFeature(GM_LayerHandle_t32 aLayer, GM_FeatureClassType_t8 aFeatureClassType, uint32 aFeatureIndex, bool aDelete) GM_Error_t32[source]

Changes the delete status of the area, line, or point feature at the given index in the layer. Note that “deleting” a feature doesn’t actually free it or remove it from the list of features for a layer, it just marks it as deleted and makes it inactive for the purposes of drawing. To re-activate a feature that has been marked as deleted, simply call this with the aDelete value set to FALSE.

  • aLayer (GM_LayerHandle_t32) – Layer the point is in

  • aFeatureClassType (GM_FeatureClassType_t8) – Type of feature class (area, point, line)

  • aFeatureIndex (uint32) – Index of feature in layer

  • aDelete (bool) – Use TRUE to mark as deleted, FALSE to clear delete flag


Error Code

Return type