AnsweredAssumed Answered

Read from config file

Question asked by lkoumis on Feb 15, 2017
Latest reply on Feb 15, 2017 by lkoumis

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.

Outcomes