Feature Index

Qiao
Qiao Global Mapper UserTrusted User
edited May 2009 in SDK
Hi Mike,

If I just added a new line to a vector layer using GM_AddLineToVectorLayer(), is there a way to get the FeatureIndex or LineIndex so that I know which feature is new?

Thanks,

Qiao

Comments

  • global_mapper
    global_mapper Administrator
    edited May 2009
    Qiao,

    To get the index of the new feature, simply call GM_GetLayerInfo before adding the feature and observe the mNumLines value. This will be the index of the next line feature added.

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com