Create portal webmap with group layers

07-07-2021 08:04 AM
Occasional Contributor


from inside a more complex jupyter notebook, I'm creating a webmap, add layers (portal items) to it and save the webmap as a new portal item.
map =, zoomlevel=14)
map.add_layer(item_obj, {'title': "_".join(item_obj.snippet.split("_")[1:]).replace("_II_", "_\\\\_").replace("_", " "), 'visibility':False}), folder=folder)

The new map viewer beta offers the very important new feature for group layers.

Is it possible to organize layers in group layers? The problem is also mentioned but not really answered here:

What are the possible keys for the optional "options" dict of the add_layers method of MapView widget?

But I can't find a documentation about the add_layer optional "options" dict and if there's a way to create a group layer. I'm using arcgis Python API 1.8.5.

Thank you very much for your help

0 Kudos
0 Replies