AnsweredAssumed Answered

Setting Feature Layer mode when retrieving map from ArcGIS Online

Question asked by rpepatoimg-com-br-esridist Employee on Jan 8, 2013
Latest reply on Jan 8, 2013 by rpepatoimg-com-br-esridist
Hello all,

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 http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/namespace_esri.arcgis.utils.htm).

My question is:

For an ArcGISOnline map that has some feature services within, is it possible do set the mode (ON_DEMAND, SNAPSHOT, etc [see http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm]) to the feature layers when retrieving the map ?

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).

Regards,

Roberto Pepato

Outcomes