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

mChart=vis.As[MapChart]()
wmsLayer=None
for layer in mChart.Layers:
if layer.Title=="WMS Layer":
	wmsLayer=layer#.As[MarkerLayerVisualization]()
#set transparency a value between 0.0 to 1.0
wmsLayer.Transparency =0.5

 

https://docs.tibco.com/pub/doc_remote/sfire_dev/area/doc/api/TIB_sfire-analyst_api/topic=html/P_Spotfire_Dxp_Application_Visuals_Maps_MapChartLayer_Transparency.htm

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...