I am trying to modify the script below to capture only a specific layer from the config file, let's the first one (index:0).
So instead of:
this.layerListView = new LayerListView({
layers: this.config.layers
}).placeAt(this.layerListBody);
I use
this.layerListView = new LayerListView({
layers: this.config.layers[0]
}).placeAt(this.layerListBody);
But the "layers" does not store anything.
The first one will store all layers.
Suggestions?
Thank you.