Turning Layers on and off

mprenter
mprenter Global Mapper UserTrusted User
Hello, is there a way to turn layers on and off via a script?  I have several point files loaded and I would like to turn off a layer, perform an export and then turn the layer on again and continue.  That way I can control what gets exported.  I only want to export one particular layer, not everything that's currently loaded.  From the GUI, I normally just turn off whatever I don't want to be saved.  I'm hoping this is also possible via a script.

Thanks,
Mark

Tagged:

Answers

  • bmg_bob
    bmg_bob Global Mapper Programmer
    Answer ✓
    Hello Mark,

    This will do it:
    SET_LAYER_OPTIONS FILENAME="<your layer name here>" HIDDEN=YES
    
    Use HIDDEN=NO to turn the layer back on.
    Cheers, Bob
  • mprenter
    mprenter Global Mapper User Trusted User
    Awesome!!!  Thanks!!