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";
Jeremie,
Could you clarify a little bit? What file and where in the file did you make this change?
-Stan
Hi,
To clarify, the aim here is to add layers programmatically without adding it in LayerList widget.
You can use this when programming widgets.
I searched this for one of my widgets and because the solution wasn't easy to find, i share the solution here