<?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>topic Re: JSON.stringify esri.map object in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/json-stringify-esri-map-object/m-p/77856#M7071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Renee. - For&amp;nbsp;anyone needing more info, there is a somewhat more recent related thread here:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/thread/164008"&gt;Get the WebMap from Javascript API esri/map&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Feb 2020 18:31:11 GMT</pubDate>
    <dc:creator>Arne_Gelfert</dc:creator>
    <dc:date>2020-02-04T18:31:11Z</dc:date>
    <item>
      <title>JSON.stringify esri.map object</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/json-stringify-esri-map-object/m-p/77852#M7067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I would like to be able to xhrpost the map object.&amp;nbsp; However, when I try to JSON.stringify the map, I get the following error: TypeError: Converting circular structure to JSON.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can this be done?&amp;nbsp; I know its possible since the print and gp tasks are able to turn the map into a string before posting it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 03:24:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/json-stringify-esri-map-object/m-p/77852#M7067</guid>
      <dc:creator>ChrisJudd1</dc:creator>
      <dc:date>2013-10-03T03:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: JSON.stringify esri.map object</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/json-stringify-esri-map-object/m-p/77853#M7068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The print task parses the map object manually to create a JSON object that matches the ExportWebMap specification to use Print GP Services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#//0154000004w8000000" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//0154000004w8000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So you can do the same, but you'd need to step through the map object, JSON.stringify() won't do it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 04:35:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/json-stringify-esri-map-object/m-p/77853#M7068</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2013-10-03T04:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: JSON.stringify esri.map object</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/json-stringify-esri-map-object/m-p/77854#M7069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you sir, that answered my question!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 13:23:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/json-stringify-esri-map-object/m-p/77854#M7069</guid>
      <dc:creator>ChrisJudd1</dc:creator>
      <dc:date>2013-10-04T13:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: JSON.stringify esri.map object</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/json-stringify-esri-map-object/m-p/77855#M7070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just a quick update on this. You can get the mapOptions and operationalLayers (probably most tedious to process) by using the PrintTask.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;PrintTask.prototype._getPrintDefinition(map);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After that you'd need to mixin the layoutOptions with your legendOptions if needed and the extra parameters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Send an object as&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
{
&amp;nbsp; Web_Map_as_JSON: &amp;lt;web map as json&amp;gt;,
&amp;nbsp; Format: &amp;lt;jpg, pdf, whatever&amp;gt;,
&amp;nbsp; Layout_Template: &amp;lt;template name&amp;gt;
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You're good to go.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:00:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/json-stringify-esri-map-object/m-p/77855#M7070</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-12-10T23:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: JSON.stringify esri.map object</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/json-stringify-esri-map-object/m-p/77856#M7071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Renee. - For&amp;nbsp;anyone needing more info, there is a somewhat more recent related thread here:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/thread/164008"&gt;Get the WebMap from Javascript API esri/map&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2020 18:31:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/json-stringify-esri-map-object/m-p/77856#M7071</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2020-02-04T18:31:11Z</dc:date>
    </item>
  </channel>
</rss>

