Pro 2.7, ArcMap 10.5.1, ArcGIS Enterprise Portal 10.6, API for Python
I'm happy with arcgis.gis.mapping webmap() class etc. but was wondering if there's an offline way to get what the web map JSON would look like if I added a map image service/map service published from an MXD/APRX to a new blank Web Map.
Essentially take an MXD/APRX and spit out what the Web Map JSON would look like.
I guess I could create the Web Map in Pro then just turn it into a webmap object, or MXD to webmap for my MXDs, but it's not ideal.
Thanks as always.
How To: Create a web map from a JSON file using ArcGIS API for Python should have what you are after.
Hi Davin, thanks very much, but it's more a case of taking an MXD or APRX and extrapolating what the WebMap JSON would look like if I published that MXD and added the subsequent Map Image Layer into an empty WebMap and saved it.