B I Posted April 10, 2019 Share Posted April 10, 2019 I have a map chart layer that is at the top of my map layers control that I would like to move to the back (index = 0). Is there a way to do this programmatically in IronPython The below returns the index of the layer that I want to move, can I set the index to 0 programmatically from Spotfire.Dxp.Application.Visuals.Maps import * from Spotfire.Dxp.Application.Visuals import PositioningMethod, MarkerShape, MarkerType, Maps #mapChart is a script parameter map = mapChart.As[MapChart]() i = -1 for layer in map.Layers: i = i + 1 if layer.Title == "MY LAYER": print i Link to comment Share on other sites More sharing options...
Shandilya Peddi Posted April 10, 2019 Share Posted April 10, 2019 In the MapChartLayerCollection class you have an method called Move() to move an Layer from one index to another. Can you try this, below are api documentation references, https://docs.tibco.com/pub/doc_remote/sfire_dev/area/doc/api/TIB_sfire-a... 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...
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