How to delete feature?

mg.srikanthmg.srikanth Global Mapper UserPosts: 27
edited November 2012 in SDK

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?



  • global_mapperglobal_mapper Administrator Posts: 17,238
    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.


    Global Mapper Guru
Sign In or Register to comment.