Is there an easy way to get the JSON for the map layers for LocalLayers widget?

199
0
06-19-2019 12:54 PM
GarryStewart
New Contributor II

Hi community,

Is there an easy way to get the JSON for the map layers for the LocalLayers widget?  When using the LocalLayers widget I am struggling to understand what information is required for the layers json configuration.  

I was hoping there might be a way to write out the JSON for this.map._layers or something along that line to a text file, and see if that provides the necessary configuration for LocalLayers to properly build my layer list with nested layers and groups.  

Using JavaScript 3.28 API.   

Thanks for your help,

Garry

0 Kudos
0 Replies