Share as Web Map trough Python - It is possible?

240
0
12-02-2019 09:26 AM
Gustavo_Souza
New Contributor III

When trying to automatize the GIS workflow, I am stuck on sharing a webmap. 

I can easily upload layers and create empty maps trough python, but I want to upload the current map I have open on ArcGIS Pro. And the only reason for that is because I want to keep the symbolgy (we unique icons on a Style in ArcGIS Pro). 

But how about creating an empty map, upload the layers to AGOL (which keep the symbology that they had at the moment they were uploaded) and add to the map? Well, it would be simple as that, however I use view layers. So I want to have layer A with Symbology 1, and layer B with Symbology 2. But since layer B is a view layer of layer A, it will always have the symbology 1 by default, and as far as I know, there is no other way to have the symbology 2, unless I add it to a map on ArcGIS Pro, and then share it as a web map.

It is a very simple tool in Pro, so I wonder if it is possible to make a python code for it. However, after weeks looking for it (and trying to find workarounds), I still could not find an answer.


Any insights about my issue? Thanks for your attention!

0 Kudos
0 Replies