Map layer visibility

Post any questions, ideas, or topics related to Jython and Python scripting.
Post Reply
User avatar
joleenf
Posts: 1123
Joined: Mon Jan 19, 2009 7:16 pm

Map layer visibility

Post by joleenf »

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
User avatar
Rick
Posts: 404
Joined: Fri Jan 16, 2009 8:20 pm

Re: Map layer visibility

Post by Rick »

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
Last edited by Rick on Tue May 20, 2014 7:51 pm, edited 1 time in total.
User avatar
jayh
Posts: 424
Joined: Thu Jan 15, 2009 10:34 pm

Re: Map layer visibility

Post by jayh »

Hi Joleen-

I've added inq. 1741 for this addition as well.

Thanks, Jay
User avatar
joleenf
Posts: 1123
Joined: Mon Jan 19, 2009 7:16 pm

Re: Map layer visibility

Post by joleenf »

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
User avatar
joleenf
Posts: 1123
Joined: Mon Jan 19, 2009 7:16 pm

Re: Map layer visibility

Post by joleenf »

Rick,

I just found this slightly more descriptive way of getting the map layer

mapLayer=activeDisplay().getMapLayer()

Joleen
Post Reply