<?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: What is the 'sharinghost' setting in the Simple Map Viewer template? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-sharinghost-setting-in-the-simple-map/m-p/235629#M21955</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Downloaded the simple map viewer template from GithHub to deploy a web map locally on our ArcGIS Server.&amp;nbsp;&amp;nbsp; In the config/defaults.js file there is a sharinghost setting, which defaults to arcgis.com.&amp;nbsp;&amp;nbsp; The comment there says to "set this value to your portal or organization host name".&amp;nbsp;&amp;nbsp; During debugging I am seeing this being used to access REST urls that don't exist on our ArcGIS server (at AGS 10.1), so errors are being thrown although not to the end user.&amp;nbsp;&amp;nbsp; If I set this to "" it causes other errors when attempting to parse this value elsewhere in the code.&amp;nbsp; Looking for clarification as to what this setting is intended for.&amp;nbsp; Thanks.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that it expects an url for a &lt;/SPAN&gt;&lt;A href="http://www.esri.com/software/arcgis/arcgisserver/extensions/portal-for-arcgis"&gt;portal for arcgis&lt;/A&gt;&lt;SPAN&gt; instance (much like ArcGIS Online, but on premise), not an ArcGIS Server.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Apr 2014 11:13:29 GMT</pubDate>
    <dc:creator>RobertoPepato</dc:creator>
    <dc:date>2014-04-10T11:13:29Z</dc:date>
    <item>
      <title>What is the 'sharinghost' setting in the Simple Map Viewer template?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-sharinghost-setting-in-the-simple-map/m-p/235628#M21954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Downloaded the simple map viewer template from GithHub to deploy a web map locally on our ArcGIS Server.&amp;nbsp;&amp;nbsp; In the config/defaults.js file there is a sharinghost setting, which defaults to arcgis.com.&amp;nbsp;&amp;nbsp; The comment there says to "set this value to your portal or organization host name".&amp;nbsp;&amp;nbsp; During debugging I am seeing this being used to access REST urls that don't exist on our ArcGIS server (at AGS 10.1), so errors are being thrown although not to the end user.&amp;nbsp;&amp;nbsp; If I set this to "" it causes other errors when attempting to parse this value elsewhere in the code.&amp;nbsp; Looking for clarification as to what this setting is intended for.&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 12:25:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-sharinghost-setting-in-the-simple-map/m-p/235628#M21954</guid>
      <dc:creator>AnthonySchaffer</dc:creator>
      <dc:date>2014-04-09T12:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: What is the 'sharinghost' setting in the Simple Map Viewer template?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-sharinghost-setting-in-the-simple-map/m-p/235629#M21955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Downloaded the simple map viewer template from GithHub to deploy a web map locally on our ArcGIS Server.&amp;nbsp;&amp;nbsp; In the config/defaults.js file there is a sharinghost setting, which defaults to arcgis.com.&amp;nbsp;&amp;nbsp; The comment there says to "set this value to your portal or organization host name".&amp;nbsp;&amp;nbsp; During debugging I am seeing this being used to access REST urls that don't exist on our ArcGIS server (at AGS 10.1), so errors are being thrown although not to the end user.&amp;nbsp;&amp;nbsp; If I set this to "" it causes other errors when attempting to parse this value elsewhere in the code.&amp;nbsp; Looking for clarification as to what this setting is intended for.&amp;nbsp; Thanks.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that it expects an url for a &lt;/SPAN&gt;&lt;A href="http://www.esri.com/software/arcgis/arcgisserver/extensions/portal-for-arcgis"&gt;portal for arcgis&lt;/A&gt;&lt;SPAN&gt; instance (much like ArcGIS Online, but on premise), not an ArcGIS Server.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 11:13:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-sharinghost-setting-in-the-simple-map/m-p/235629#M21955</guid>
      <dc:creator>RobertoPepato</dc:creator>
      <dc:date>2014-04-10T11:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: What is the 'sharinghost' setting in the Simple Map Viewer template?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-sharinghost-setting-in-the-simple-map/m-p/235630#M21956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply.&amp;nbsp;&amp;nbsp; I was thinking that too but this option is not explained anywhere, and I would suspect it's obvious that many if not most sites will not have such a portal - so why require this to be specified?&amp;nbsp;&amp;nbsp; It won't let me set that to "" (empty string) without throwing an error.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 18:50:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-sharinghost-setting-in-the-simple-map/m-p/235630#M21956</guid>
      <dc:creator>AnthonySchaffer</dc:creator>
      <dc:date>2014-04-10T18:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: What is the 'sharinghost' setting in the Simple Map Viewer template?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-sharinghost-setting-in-the-simple-map/m-p/235631#M21957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you download the application from github you shouldn't need to set the sharinghost value. It is defined in the defaults.js file and by default points to &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.arcgis.com&lt;/A&gt;&lt;SPAN&gt;. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can change this in cases where you want to retrieve settings from your organization for example if my organization was jsapi.maps.arcgis.com I'd change the sharinghost value to be as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

"sharinghost": location.protocol + "//" + "jsapi.maps.arcgis.com" 
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:53:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-the-sharinghost-setting-in-the-simple-map/m-p/235631#M21957</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2021-12-11T11:53:11Z</dc:date>
    </item>
  </channel>
</rss>

