AnsweredAssumed Answered

layerIds or _layers ?  I'm missing something in the management layers.

Question asked by igeolab on Jun 8, 2014
Latest reply on Jun 8, 2014 by igeolab
Hi,

I use a piece of code that loops through a configuration file and create layers according to their type. Then all the layers and add to the map.
It works without any problem layers appear correctly on the map, but after when I want to loop over layerId I can not find my layers.
I put two screenshots to show in debug mode content.

this.map.layerId is empty :

[ATTACH=CONFIG]34434[/ATTACH]

this.map._layers contains my layers :

[ATTACH=CONFIG]34435[/ATTACH]


Someone has an answer or perhaps has already across this problem ?

Thanks


The code is an extract of the great customizable viewer of David Spriggs here:
https://github.com/DavidSpriggs/ConfigurableViewerJSAPI

Outcomes