Allow the layers to be delay-loaded, so that no requests for layer information are made until the first time the user turns the layer on via its checkbox. At this point, the layer should be inserted in the position indicated in the layer list (instead of just adding it to the top of the map).
Allow the layers to be delay-loaded, so that no requests for layer information are made until the first time the user turns the layer on via its checkbox. At this point, the layer should be inserted in the position indicated in the layer list (instead of just adding it to the top of the map).
This will require a custom parsing of the webmap JSON data instead of using esri/arcgis/utils.createMap().