Global Mapper v25.0

open specific file in a zipfile using SDK library

I try to load a specific file from a zipfile using GM_LoadLayerListEx. I know it's possible by script but I don't know how to write it using C++ library. My example is this one :
GM_LoadLayerlistEx("D:/", &listlayers, &nb_layers, GM_LoadFlags_UseDefaultProj, "FILENAME='xxx.tif'")
But it doesn't work, I think "filename" isn't recognized.
I can load everything and after close some layers but it's not really optimized. Any help would be appreciated! Thanks


  • bmg_bob
    bmg_bob Global Mapper Programmer
    Answer ✓

    If you are able to get it working in a script, you can use the GM_RunScript() API function to run your script and load the file from your zip archive.

  • OK, thank you for your answer Bob!