how to change the color of the already loaded feature?

mg.srikanthmg.srikanth Global Mapper UserPosts: 27
edited November 2012 in SDK
I have loaded a custom vector layer and added a line feature to it with blue color. now for the same line I want to change the color to red.
How do I do it using sdk, dynamically change the color of the same feature any number of times as per requirement?
How do I highlight the selected feature using sdk as that of global mapper application does when we select a feature using info tool?


  • global_mapperglobal_mapper Administrator Posts: 17,238
    edited November 2012
    You would use the GM_SetLineFeatureDrawStyle function to set the draw style for a particular feature. You can also use this to set the line to some type of highlighted style to indicate selection in your application. Just set it back to the normal style when you are done and want to "unselect" it.


    Global Mapper Guru
Sign In or Register to comment.