Extract Web Map JSON from MXD/APRX

741
2
05-19-2021 01:44 PM
DavidPike
MVP Frequent Contributor

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.

 

2 Replies
DavinWalker2
Esri Contributor

 

How To: Create a web map from a JSON file using ArcGIS API for Python should have what you are after.

https://support.esri.com/en/technical-article/000019701 

0 Kudos
DavidPike
MVP Frequent Contributor

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.

0 Kudos