AnsweredAssumed Answered

webmap_as_json for mapping.export_map method?

Question asked by ruben.perezesri-es-esridist Employee on Dec 18, 2018
Latest reply on Dec 18, 2018 by ruben.perezesri-es-esridist



We are developing a process to send an email with a map showing the location in case of emergency.


arcgis.mapping.export_map method request a map to the printing service configured in your organization. So it's the perfect method for us.


THe problem is where to get de json that represents the state of the MapView (zoom, layer´s visibility...)


#cosa = "{\"mapOptions\":{......"

#where to get webmap_as_json ??
out = arcgis.mapping.export_map(cosa,"PNG8","MAP_ONLY",gis=gis)

There is no an explicit method to obtain the 'webmap_as_json' variable which is the format that demands Printing service behind.


This is the specification of the json format:


ExportWebMap specification—Documentation (10.5) | ArcGIS Enterprise 


is there any chance of getting it? I did it on javascript, but i cannot find anything similar for python.


thanks for the help!