Wednesday, October 4, 2017

Spotfire - Create a button to toggle a map layer on and off (Ironpython)

from Spotfire.Dxp.Application.Visuals import *

v = viz.As[VisualContent]()

for i in v.Layers:

          if i.Title == 'County_shape':
                  if i.Enabled == True:
                          i.Enabled == False
             
                  else:
                          i.Enabled == True

No comments:

Post a Comment