<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>idea Expose method that converts the mapView into a WebMap_as_JSON in ArcGIS JavaScript Maps SDK Ideas</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-ideas/expose-method-that-converts-the-mapview-into-a/idi-p/1699792</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I am a developer of GIS Web components, and I would greatly appreciate it if the logic that converts a MapView into a WebMap_as_JSON could be exposed in a public method. We run a custom printing service that uses the Export Web Map Task geoprocessor with extra parameters to enable the printing use cases of my Organisation. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Both the PrintViewModel.print() and the print.execute() combine building the payload and sending the request.&amp;nbsp;&lt;/SPAN&gt;Exposing the logic that generates the WebMap_as_JSON as a seperate method would benefit our workflow for two reasons.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Lower code complexity:&lt;/STRONG&gt; It would make it easier to edit the&amp;nbsp;WebMap_as_JSON payload before sending the request to the server. Currently we have to rely on requestInterceptors to configure the payload correctly&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Easier troubleshooting:&lt;/STRONG&gt; With over 1000 daily users sometimes the printjobs fail. We track these failures with dynatrace but getting the Webmap_as_JSON which is crucial for troubleshooting is cumbersome. A seperate method would make logging the json payload to dynatrace a breeze.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 May 2026 08:39:38 GMT</pubDate>
    <dc:creator>gqzomer</dc:creator>
    <dc:date>2026-05-04T08:39:38Z</dc:date>
    <item>
      <title>Expose method that converts the mapView into a WebMap_as_JSON</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-ideas/expose-method-that-converts-the-mapview-into-a/idi-p/1699792</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am a developer of GIS Web components, and I would greatly appreciate it if the logic that converts a MapView into a WebMap_as_JSON could be exposed in a public method. We run a custom printing service that uses the Export Web Map Task geoprocessor with extra parameters to enable the printing use cases of my Organisation. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Both the PrintViewModel.print() and the print.execute() combine building the payload and sending the request.&amp;nbsp;&lt;/SPAN&gt;Exposing the logic that generates the WebMap_as_JSON as a seperate method would benefit our workflow for two reasons.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Lower code complexity:&lt;/STRONG&gt; It would make it easier to edit the&amp;nbsp;WebMap_as_JSON payload before sending the request to the server. Currently we have to rely on requestInterceptors to configure the payload correctly&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Easier troubleshooting:&lt;/STRONG&gt; With over 1000 daily users sometimes the printjobs fail. We track these failures with dynatrace but getting the Webmap_as_JSON which is crucial for troubleshooting is cumbersome. A seperate method would make logging the json payload to dynatrace a breeze.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2026 08:39:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-ideas/expose-method-that-converts-the-mapview-into-a/idi-p/1699792</guid>
      <dc:creator>gqzomer</dc:creator>
      <dc:date>2026-05-04T08:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Expose method that converts the mapView into a WebMap_as_JSON</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-ideas/expose-method-that-converts-the-mapview-into-a/idc-p/1714091#M545</link>
      <description>&lt;P&gt;You can call .toJSON() on the map.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  &amp;lt;body&amp;gt;
    &amp;lt;arcgis-map item-id="05e015c5f0314db9a487a9b46cb37eca"&amp;gt;
      &amp;lt;arcgis-zoom slot="top-left"&amp;gt;&amp;lt;/arcgis-zoom&amp;gt;
      &amp;lt;arcgis-legend slot="bottom-right"&amp;gt;&amp;lt;/arcgis-legend&amp;gt;
    &amp;lt;/arcgis-map&amp;gt;
    &amp;lt;script&amp;gt;
      document.querySelector('arcgis-map').addEventListener('arcgisViewReadyChange', (event) =&amp;gt; {
        const webmapJson = event.target.map.toJSON();
        console.log(webmapJson)
      })
    &amp;lt;/script&amp;gt;
  &amp;lt;/body&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Justin_Greco_0-1783794840639.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/155350i6B3B3D7FBF56842F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Justin_Greco_0-1783794840639.png" alt="Justin_Greco_0-1783794840639.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jul 2026 18:34:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-ideas/expose-method-that-converts-the-mapview-into-a/idc-p/1714091#M545</guid>
      <dc:creator>Justin_Greco</dc:creator>
      <dc:date>2026-07-11T18:34:43Z</dc:date>
    </item>
  </channel>
</rss>

