<?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: Does esri.arcgis.utils.createMap support feature layers? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-esri-arcgis-utils-createmap-support-feature/m-p/733565#M67962</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Derek,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks very much for the info, which is very helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;the main use case for createMap is to create an ArcGIS API for JavaScript map from an ArcGIS.com webmap ID. Ideally, you use ArcGIS.com to author your web map (add layers, configure pop-ups, set the extent, etc.) and then use the webmap in your app by passing in the ArcGIS.com item id to createMap.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to ensure that my applications are as compatible as possible with ArcGIS.com for a bit of future-proofing, and to potentially allow ArcGIS.com to be used as a configurator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Dec 2012 20:34:14 GMT</pubDate>
    <dc:creator>StephenLead</dc:creator>
    <dc:date>2012-12-05T20:34:14Z</dc:date>
    <item>
      <title>Does esri.arcgis.utils.createMap support feature layers?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-esri-arcgis-utils-createmap-support-feature/m-p/733563#M67960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN style="font-size: 2; font-family: arial;"&gt;The &lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/ags_createwebmapitem.html" rel="nofollow" target="_blank"&gt;Create Web Map&lt;/A&gt; sample shows how to build an application using &lt;SPAN style="color:#000000;"&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;esri.arcgis.utils.createMap&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;1) Does this method support feature layers?&lt;BR /&gt;&lt;BR /&gt;2) If so, what is the required JSON definition for a feature layer, including specifying its infoWindow?&lt;BR /&gt;&lt;BR /&gt;3) Are there any samples showing utils.createMap with a feature layer?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Steve&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 23:53:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-esri-arcgis-utils-createmap-support-feature/m-p/733563#M67960</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2012-12-03T23:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Does esri.arcgis.utils.createMap support feature layers?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-esri-arcgis-utils-createmap-support-feature/m-p/733564#M67961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Before answering your questions, I want to point out that the main use case for createMap is to create an ArcGIS API for JavaScript map from an ArcGIS.com webmap ID. Ideally, you use ArcGIS.com to author your web map (add layers, configure pop-ups, set the extent, etc.) and then use the webmap in your app by passing in the ArcGIS.com item id to createMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The approach you're talking about also valid, but it's more work for the developer. To answer your specific questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Yes, feature layers are supported as operational layers and are stored in the webmap JSON as a feautreColleciton. For instance, &lt;A class="jive-link-external-small" href="http://www.arcgis.com/home/webmap/viewer.html?webmap=a7fc556a1b5f470f9ea611d7424847f5" rel="nofollow" target="_blank"&gt;here's a webmap with US Cities loaded from a zipped shapefile&lt;/A&gt;. The cities are displayed as as feature layer and stored in the webmap JSON as a feature collection.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;We haven't officially published the spec for the webmap, but it's coming. You can take a look at the JSON that comes back from a webmap request to see the structure for how a feature collection is stored as a operational layer. The popupInfo property of the layer definition defines what to display in a popup:&amp;nbsp; &lt;A class="jive-link-external-small" href="http://www.arcgis.com/sharing/content/items/a7fc556a1b5f470f9ea611d7424847f5/data?f=json&amp;amp;callback=dojo.io.script.jsonp_dojoIoScript2._jsonpCallback" rel="nofollow" target="_blank"&gt;http://www.arcgis.com/sharing/content/items/a7fc556a1b5f470f9ea611d7424847f5/data?f=json&amp;amp;callback=dojo.io.script.jsonp_dojoIoScript2._jsonpCallback&lt;/A&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;We do not publish a sample showing how to use createMap with JSON that includes feature layers from a feature collection. You can take the &lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/ags_createwebmapid.html" rel="nofollow" target="_blank"&gt;Create Webmap by ID sample&lt;/A&gt;, drop in an ID to a webmap with a feature layer and createMap will give you an ArcGIS API for JavaScript map with a feature layer.&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 16:23:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-esri-arcgis-utils-createmap-support-feature/m-p/733564#M67961</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-12-05T16:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Does esri.arcgis.utils.createMap support feature layers?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-esri-arcgis-utils-createmap-support-feature/m-p/733565#M67962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Derek,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks very much for the info, which is very helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;the main use case for createMap is to create an ArcGIS API for JavaScript map from an ArcGIS.com webmap ID. Ideally, you use ArcGIS.com to author your web map (add layers, configure pop-ups, set the extent, etc.) and then use the webmap in your app by passing in the ArcGIS.com item id to createMap.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to ensure that my applications are as compatible as possible with ArcGIS.com for a bit of future-proofing, and to potentially allow ArcGIS.com to be used as a configurator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 20:34:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/does-esri-arcgis-utils-createmap-support-feature/m-p/733565#M67962</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2012-12-05T20:34:14Z</dc:date>
    </item>
  </channel>
</rss>

