Global Mapper v25.0

Controlling raster and elevation layer order

dcoggin
dcoggin Global Mapper UserTrusted User
edited July 2010 in SDK
Mike,

Is there any way to control the layer order for elevation and raster layers? I control the order myself for drawing, but I was wondering about the GetLocationElevation function. I am wondering if there is any way to control the layer order to set the priority for getting elevation values. If the code is already in the SDK for looking through layers to find valid elevation values, I was thinking it might be possible to get the layer order, resort it according to the user's purposes, and give it back to the SDK.

David

Comments

  • global_mapper
    global_mapper Administrator
    edited July 2010
    David,

    While there is not a way in the SDK to re-order the layers currently, what you could do to use a particular priority is to call GM_GetLocationElevation with one layer at a time to check, starting with the highest priority one. The first one that returns a valid value would be the one that you keep.

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com