Select to view content in your preferred language

ZIndex for FeatureLayer

459
2
02-12-2023 11:51 AM
MattiasWesterberg
Occasional Contributor

Hello,

 

I have set the ZIndex for my Graphic objects like this.

g.ZIndex = 0;

 

Is it possible to set ZIndex for FeatureLayer objects also?

And how do I do that?

 

Any input would be appreciated.

Thanks, Mattias

 

0 Kudos
2 Replies
PreetiMaske
Esri Regular Contributor

There is currently no mechanism to set ZIndex on features in a FeatureLayer. Can you please elaborate your use case so I can understand better why do you need to set ZIndex on each feature and what point in your workflow you want the ZIndex to be set, like before loading the layer or after loading and rendering etc?

0 Kudos
MattiasWesterberg
Occasional Contributor

What I want to do is to add a Graphic object and give it ZIndex 1.

Then I want to add a FeatureLayer for a shapefile and set its ZIndex to 2.

And then i want to add another Graphic object and give it ZIndex 3.

0 Kudos