Turning Layers on and off
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
Thanks,
Mark
Answers
-
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 -
Awesome!!! Thanks!!
Categories
- 13K All Categories
- 5.8K Features Discussion
- 350 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 652 GM Script Language
- 56 User Scripts
- 115 GPS Features
- 421 Projection Questions
- 835 Raster Data
- 1.4K Vector Data
- 6.7K Support
- 181 Announcement and News
- 939 Bug Report
- 562 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 579 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 244 How I use Global Mapper
- 110 Global Mapper Forum Website

