I want to change the order of layers in my view,My JS is V4.3 .
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.
Thanks for your help. That help me a lot!!!
If this solved your question, please mark FC Basson's answer as "Correct".
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.