Hi,
This is an addition to Inquiry 1691. Could there be a scripting command to turn off the map layer visibility in the same way as other layers so that the entire layer can be visible/not visible?
Joleen
Map layer visibility
Re: Map layer visibility
Hi Joleen,
We do need a method to turn off all the maps. My guess is you already know this one, but you can use this example:
panel=buildWindow(height=512,width=1024)
panel[0].getLayer(0).setLayerVisible(False)
Rick
We do need a method to turn off all the maps. My guess is you already know this one, but you can use this example:
panel=buildWindow(height=512,width=1024)
panel[0].getLayer(0).setLayerVisible(False)
Rick
Last edited by Rick on Tue May 20, 2014 7:51 pm, edited 1 time in total.
Re: Map layer visibility
Hi Rick and Jay,
Thanks for the information. Rick, that method is more straightforward than what I was using, so it is already better.
Joleen
Thanks for the information. Rick, that method is more straightforward than what I was using, so it is already better.
Joleen
Re: Map layer visibility
Rick,
I just found this slightly more descriptive way of getting the map layer
mapLayer=activeDisplay().getMapLayer()
Joleen
I just found this slightly more descriptive way of getting the map layer
mapLayer=activeDisplay().getMapLayer()
Joleen