AnsweredAssumed Answered

Feature layers displaying in wrong order

Question asked by jugalpatel803 on Apr 15, 2016
Latest reply on Apr 19, 2016 by rscheitlin


Hey there!

 

So I'm using the JavaScript API to customize an ArcGIS web app and I'm having an issue with my labels layer showing up behind my feature layer. I've tried to change the order of them in the layer list but the labels are still showing up behind my feature layers. Does anyone know how I can get this fixed?

 

Here's a screenshot of what I'm referring to:

 

layers not reversed.png

 

And this is the layer list widget.js code sample for the screenshot above: Grouped layers w/ layers not reversed · GitHub

 

Here's the screenshot for when I tried to reorder the layers in the layer list, this time the labels are on top in the layer list:

 

layers reversed.png

 

And here's the layer list code sample for the second screenshot (w/ lines 35-37 uncommented): Grouped layers w/ layers reversed · GitHub

Outcomes