Select Line or Area Vector

mesgarmesgar Global Mapper UserPosts: 13Trusted User
edited July 2010 in SDK
hi
how do we can Select one line or Area in vector file and display it graphically and hide or show it?
Thanks

Comments

  • global_mapperglobal_mapper Administrator Posts: 17,238
    edited July 2010
    You would have to use the GM_DeleteFeature function to mark all but the features that you want displayed as deleted to just show a single feature, or else use GM_CreateCustomVectorLayer to create a new vector layer and then add the area or line to that new layer and just draw that layer.

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com
  • mesgarmesgar Global Mapper User Posts: 13Trusted User
    edited July 2010
    my intention is that how we can select Area or line in vector file graphically.1.JPG
    1.JPG 68.7K
  • global_mapperglobal_mapper Administrator Posts: 17,238
    edited July 2010
    You can use the GM_FindNearestFeatures function to find the feature(s) close to a click location or within a bounding box, then do whatever you need with those features that is most appropriate for your application.

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com
Sign In or Register to comment.