<?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 Can I use createMap using itemID for a WebMap hosted in Portal for ArcGIS? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-createmap-using-itemid-for-a-webmap/m-p/471486#M43710</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For a variety of reasons, we'd like to host our webmaps on-premise using Portal for ArcGIS Server instead of ArcGIS Online. That means the content of the webmap has to be consumable by a JSAPI application by its JSON. Also exposed is its webmap ID. &lt;A href="https://developers.arcgis.com/javascript/jsapi/esri.arcgis.utils-amd.html#createmap" title="https://developers.arcgis.com/javascript/jsapi/esri.arcgis.utils-amd.html#createmap"&gt;esri/arcgis/utils | API Reference | ArcGIS API for JavaScript&lt;/A&gt;&amp;nbsp; indicates that createMap can use an itemID (if hosted at AGOL) or itemData - which will be the JSON that can be embedded in the application - e.g., in a configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a highly customized JSAPI application - its functionality cannot be recreated using the WAB or any of the templates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our problem is that our webmaps change quite frequently - it's impractical to export the webmap into JSON and put the JSON into a configuration every time the webmap changes. At the same time, the JSAPI application can only use createMap with an itemID if the webmap is hosted at AGOL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there some special magic I can use to consume a locally-host webmap by its itemID? For example, if I knew the URL of the webmap, can I tease the configuration JSON out of it and use that to hydrate the map in the JSAPI app? Just an idea...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Discuss...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW JSAPI 3.x and we won't refactor a release in 4.x until it's been in production for at least a year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Dec 2015 19:02:27 GMT</pubDate>
    <dc:creator>DirkVandervoort</dc:creator>
    <dc:date>2015-12-02T19:02:27Z</dc:date>
    <item>
      <title>Can I use createMap using itemID for a WebMap hosted in Portal for ArcGIS?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-createmap-using-itemid-for-a-webmap/m-p/471486#M43710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For a variety of reasons, we'd like to host our webmaps on-premise using Portal for ArcGIS Server instead of ArcGIS Online. That means the content of the webmap has to be consumable by a JSAPI application by its JSON. Also exposed is its webmap ID. &lt;A href="https://developers.arcgis.com/javascript/jsapi/esri.arcgis.utils-amd.html#createmap" title="https://developers.arcgis.com/javascript/jsapi/esri.arcgis.utils-amd.html#createmap"&gt;esri/arcgis/utils | API Reference | ArcGIS API for JavaScript&lt;/A&gt;&amp;nbsp; indicates that createMap can use an itemID (if hosted at AGOL) or itemData - which will be the JSON that can be embedded in the application - e.g., in a configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a highly customized JSAPI application - its functionality cannot be recreated using the WAB or any of the templates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our problem is that our webmaps change quite frequently - it's impractical to export the webmap into JSON and put the JSON into a configuration every time the webmap changes. At the same time, the JSAPI application can only use createMap with an itemID if the webmap is hosted at AGOL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there some special magic I can use to consume a locally-host webmap by its itemID? For example, if I knew the URL of the webmap, can I tease the configuration JSON out of it and use that to hydrate the map in the JSAPI app? Just an idea...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Discuss...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW JSAPI 3.x and we won't refactor a release in 4.x until it's been in production for at least a year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 19:02:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-use-createmap-using-itemid-for-a-webmap/m-p/471486#M43710</guid>
      <dc:creator>DirkVandervoort</dc:creator>
      <dc:date>2015-12-02T19:02:27Z</dc:date>
    </item>
  </channel>
</rss>

