Draw order of layers

rick_edwardsrick_edwards Global Mapper UserPosts: 20
edited February 2010 in SDK
Hi all,

I have a list of layers whose order represents the Z-Index or draw order of the layers. Now I pass my layer list to Global Mapper and it draws the layers fine except that it appears vector layers are always drawn above raster layers irrespective of the supplied order. I can change the order of raster layers and they are drawn in the corresponding order, but point features, contours, etc are always drawn above.

Is there a way to dictate the exact order of drawing layers irrespective of layer type?




  • dcoggindcoggin Global Mapper User Posts: 259Trusted User
    edited February 2010

    I believe the only way to do this is to actually call GM_DrawLayerList individually for each layer in order. While I have not done this myself, that's the way Mike did it in his sample app.

  • global_mapperglobal_mapper Administrator Posts: 17,238
    edited February 2010

    You can also pass in the GM_DrawFlags_SeparateVectorLayers flag to the GM_DrawLayerList function and then the vector layers should be drawn separately rather than combined and sorted during the draw.

    Let me know if I can be of further assistance.


    Global Mapper Support
Sign In or Register to comment.