I`m trying to find a way to add an online layer to my local map, through Python. I know how to grab the layer info, but don't know how to use it.
onlinelayer = gis.content.search(mylayer) itemid= onlinelayer.id
So I got the item ID, but how I apply it? Is there something similar to addDataFromPath()?