Hello,
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...)
<SPAN class="comment token">#cosa = "{\"mapOptions\":{......"</SPAN>
<SPAN class="comment token">#where to get webmap_as_json ??</SPAN>
out <SPAN class="operator token">=</SPAN> arcgis<SPAN class="punctuation token">.</SPAN>mapping<SPAN class="punctuation token">.</SPAN>export_map<SPAN class="punctuation token">(</SPAN>cosa<SPAN class="punctuation token">,</SPAN><SPAN class="string token">"PNG8"</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="string token">"MAP_ONLY"</SPAN><SPAN class="punctuation token">,</SPAN>gis<SPAN class="operator token">=</SPAN>gis<SPAN class="punctuation token">)</SPAN>
out<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>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!