How to delete feature?

mg.srikanth
mg.srikanth Global Mapper User
edited November 2012 in SDK
Hi,

I am adding line feature to a vector layer as an when required. I am disabling it and adding new line. Is there any facility to delete added feature totally from the vector layer?

Srikanth.

Comments

  • global_mapper
    global_mapper Administrator
    edited November 2012
    You can only completely delete a feature by closing the layer it is in. However if you are always deleting a line then replacing it with a new one, rather than mark the original as deleted you could just modify that one. For example use GM_SetLineFeaturePointList to change the vertices, GM_SetLineFeatureDrawStyle to change the style, and GM_SetFeatureAttrList to change the attribute list, among others.

    Thanks,

    Mike
    Global Mapper Guru
    gmsupport@bluemarblegeo.com
    http://www.globalmapper.com