Global Mapper v25.0

3D Map Elevation Legends

ehsan
ehsan Global Mapper User
edited October 2011 in SDK
Hi,
I have a 3D map in TIF format.I want to display my custom legend of elevation like global mapper application that display legend in left side of the map.
How I can retrieve elevations color to display in my custom legend?
Thank...

Comments

  • global_mapper
    global_mapper Administrator
    edited October 2011
    Make a custom elevation grid layer (GM_CreateCustomElevGridLayer function) that is an appropriate number of pixels wide and tall enough to have the samples that you want on your legend with the values going from low to high for your legend, then render that to a bitmap and use it for the legend.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com
  • ehsan
    ehsan Global Mapper User
    edited October 2011
    Hi,
    Thanks for your supports.
    I create a wrapper for this method but not found any sample to How to Use it.
    Do you have any sample that use this method or finally create legend?
    This is a advanced usage of the DLL.
    thanks..
    :)
  • global_mapper
    global_mapper Administrator
    edited October 2011
    Which method are you having trouble trying to use? There are samples of most (but not all) functions in the C++ sample application included with the Global Mapper SDK.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com