Hello everyone I'm trying to figure out how to use
Unfortunately I can't find any documentation on the structure on how a layer is required.
Currently I'm trying to add a layer, in particular this layer:
I'm fetching the layer information using PortalGroup
After this I'm adding the layer into the my current webmap and everything seems to work.
But after I'm saving the new webmap using the api below and passing the new operational layers with the newly added layer.
The layer is not appearing into the legend for some reason.
My main problem is the lack of documentation and structure with the portalItem.update() api
Here is the docs I've research into:
Unfortunately "text" field has no documentation :(