Sam Evans Posted April 3, 2019 Share Posted April 3, 2019 Is there a way with IronPython to toggle WMS sublayers I'm able to toggle map layers, but cannot seem to find the attribute to control sublayers of WMS layers. Link to comment Share on other sites More sharing options...
Shandilya Peddi Posted April 3, 2019 Share Posted April 3, 2019 Have you tried the WmsLayer.Sublayers Property This seems to return theWmsSublayerCollection to which you can add/remove the sublayers https://docs.tibco.com/pub/doc_remote/sfire_dev/area/doc/api/TIB_sfire-a... Link to comment Share on other sites More sharing options...
Sam Evans Posted April 3, 2019 Author Share Posted April 3, 2019 I haven't, but this is exactly what I'm looking for. Thank you so much. Link to comment Share on other sites More sharing options...
Bren Croll Posted June 25, 2019 Share Posted June 25, 2019 Did you end up figuring this out Im trying to write a script to control the WMS layer transparency slider (hooked up to a property control slider so a web client user can control it) but not really sure where to start Link to comment Share on other sites More sharing options...
Sam Evans Posted June 25, 2019 Author Share Posted June 25, 2019 No, I never was able to get this figured out. Link to comment Share on other sites More sharing options...
Shandilya Peddi Posted June 25, 2019 Share Posted June 25, 2019 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now