Jump to content

Move a map chart layer to the back


B I

Recommended Posts

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

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