Select to view content in your preferred language

how to change the layer order in LayerList ?

2277
3
05-11-2017 06:43 PM
ShaosongMa
Deactivated User

I want to change the order of layers in my view,My JS  is V4.3 .

Tags (1)
0 Kudos
3 Replies
FC_Basson
MVP Regular Contributor

The Map object has a reorder method with which you can specify the layer index: Map | API Reference | ArcGIS API for JavaScript 4.3 

You can also specify the layer index when adding the layer.

ShaosongMa
Deactivated User

Thanks for your help. That help me a lot!!!

AdrianWelsh
MVP Honored Contributor

If this solved your question, please mark FC Basson's answer as "Correct".

0 Kudos