Jump to content
We've recently updated our Privacy Statement, available here. ×

Script to toggle WMS Sublayers

Sam Evans

Recommended Posts

  • 2 months later...

A sample script to change the transperency would be as below,


from Spotfire.Dxp.Application.Visuals.Maps import *

# add vis as script parameter referring to your mapchart

for layer in mChart.Layers:
if layer.Title=="WMS Layer":
#set transparency a value between 0.0 to 1.0
wmsLayer.Transparency =0.5



Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...