<?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 Setting Feature Layer mode when retrieving map from ArcGIS Online in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-feature-layer-mode-when-retrieving-map/m-p/708271#M65886</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The namespace esri.arcgis.utils provides a convenient method for retrieving maps stored on ArcGIS OnLine. You just call createMap passing the itemId and the target html div as arguments. You can optionally pass in some additional options (see &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/namespace_esri.arcgis.utils.htm" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/namespace_esri.arcgis.utils.htm&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For an ArcGISOnline map that has some feature services within, is it possible do set the mode (ON_DEMAND, SNAPSHOT, etc [see &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm]" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm]&lt;/A&gt;&lt;SPAN&gt;) to the feature layers when retrieving the map ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that I can do this by creating a map object and loading individual Feature Layers into it, but I'd like to know if is it possible to do this through createMap. I'd like to retrieve a map from ArcGISOnline (with some Feature Services configured) with SNAPSHOT mode for its Feature Layers (It looks like the createMap returns the layers in ON_DEMAND mode).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Roberto Pepato&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jan 2013 13:43:48 GMT</pubDate>
    <dc:creator>RobertoPepato_Mellado</dc:creator>
    <dc:date>2013-01-08T13:43:48Z</dc:date>
    <item>
      <title>Setting Feature Layer mode when retrieving map from ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-feature-layer-mode-when-retrieving-map/m-p/708271#M65886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The namespace esri.arcgis.utils provides a convenient method for retrieving maps stored on ArcGIS OnLine. You just call createMap passing the itemId and the target html div as arguments. You can optionally pass in some additional options (see &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/namespace_esri.arcgis.utils.htm" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/namespace_esri.arcgis.utils.htm&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For an ArcGISOnline map that has some feature services within, is it possible do set the mode (ON_DEMAND, SNAPSHOT, etc [see &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm]" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm]&lt;/A&gt;&lt;SPAN&gt;) to the feature layers when retrieving the map ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that I can do this by creating a map object and loading individual Feature Layers into it, but I'd like to know if is it possible to do this through createMap. I'd like to retrieve a map from ArcGISOnline (with some Feature Services configured) with SNAPSHOT mode for its Feature Layers (It looks like the createMap returns the layers in ON_DEMAND mode).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Roberto Pepato&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 13:43:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-feature-layer-mode-when-retrieving-map/m-p/708271#M65886</guid>
      <dc:creator>RobertoPepato_Mellado</dc:creator>
      <dc:date>2013-01-08T13:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Feature Layer mode when retrieving map from ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-feature-layer-mode-when-retrieving-map/m-p/708272#M65887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No it is not possible to change the mode of the feature layers and you are correct that by default they are in OnDemand mode. One solution might be to leave the layers you want in Snapshot mode out of the arcgis.com map. Then after createMap you can use map.addLayer to add the additional feature layers in Snapshot mode.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 15:09:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-feature-layer-mode-when-retrieving-map/m-p/708272#M65887</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2013-01-08T15:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Feature Layer mode when retrieving map from ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-feature-layer-mode-when-retrieving-map/m-p/708273#M65888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;No it is not possible to change the mode of the feature layers and you are correct that by default they are in OnDemand mode. One solution might be to leave the layers you want in Snapshot mode out of the arcgis.com map. Then after createMap you can use map.addLayer to add the additional feature layers in Snapshot mode.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the explanation. The solution you have proposed is exactly what I'm using right now, I've just wondering if we can have something more out-of-the-box (maybe a new parameter to createMap to specify the default mode for included feature services ?). I'll post this as a suggestion at &lt;/SPAN&gt;&lt;A href="http://ideas.esri.com"&gt;http://ideas.esri.com&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 16:00:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-feature-layer-mode-when-retrieving-map/m-p/708273#M65888</guid>
      <dc:creator>RobertoPepato_Mellado</dc:creator>
      <dc:date>2013-01-08T16:00:04Z</dc:date>
    </item>
  </channel>
</rss>

