cornet.magis

How to add a layer without adding it in LayerList widget

Discussion created by cornet.magis on Apr 6, 2015
Latest reply on Apr 7, 2015 by cornet.magis

Hi,

In a widget, i had to add layers without adding it in LayerList widget (and without modifications in jimu.js).

 

After digging in jimu.js, i finally find how to do this :

 

After layer's instanciation but before adding it in the map:

myLayer._basemapGalleryLayerType = "basemap";

Outcomes