<?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: When to use various layer types in Flex API in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/when-to-use-various-layer-types-in-flex-api/m-p/176717#M4153</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Interesting, ESRI seems to have no "design considerations" documentation per se.&amp;nbsp; Anybody know about anything from a third party?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Dec 2010 16:46:49 GMT</pubDate>
    <dc:creator>JasonThiel</dc:creator>
    <dc:date>2010-12-23T16:46:49Z</dc:date>
    <item>
      <title>When to use various layer types in Flex API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/when-to-use-various-layer-types-in-flex-api/m-p/176716#M4152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please excust my ignorance, I am learning.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When dealing with Flex API, there are a plethora of ???Layers??? that can be used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ex:&amp;nbsp; FeatureLayer, ArcGisDynamicMapServiceLayer, DynamicMapServiceLayer, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I understand the difference between tiled and dynamic (tiled is cached and dynamic is not), but in general, when do you use each type?&amp;nbsp; Is there documentation somewhere that specifies?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For instance, when would I need/want to use a FeatureLayer vs ArcGisDynamicMapServiceLayer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 11:37:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/when-to-use-various-layer-types-in-flex-api/m-p/176716#M4152</guid>
      <dc:creator>JasonThiel</dc:creator>
      <dc:date>2010-12-21T11:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: When to use various layer types in Flex API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/when-to-use-various-layer-types-in-flex-api/m-p/176717#M4153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Interesting, ESRI seems to have no "design considerations" documentation per se.&amp;nbsp; Anybody know about anything from a third party?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Dec 2010 16:46:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/when-to-use-various-layer-types-in-flex-api/m-p/176717#M4153</guid>
      <dc:creator>JasonThiel</dc:creator>
      <dc:date>2010-12-23T16:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: When to use various layer types in Flex API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/when-to-use-various-layer-types-in-flex-api/m-p/176718#M4154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've wondered the same thing.&amp;nbsp; Are there some experts or designers that have some input?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My understanding of the difference between FeatureLayer and a DynamicMapServiceLayer is that the DMSL pulls in all the features (layers) within a map service and the FL only deals with one layer.&amp;nbsp; The FeatureLayer gives you much more control over the display of the graphics as well as giving you access to editing of features.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Dec 2010 18:36:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/when-to-use-various-layer-types-in-flex-api/m-p/176718#M4154</guid>
      <dc:creator>DavidElies</dc:creator>
      <dc:date>2010-12-23T18:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: When to use various layer types in Flex API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/when-to-use-various-layer-types-in-flex-api/m-p/176719#M4155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The API docs can give you some insight on when you would use FeatureLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/FeatureLayer.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/FeatureLayer.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
The feature layer can be used to display features from one single layer of either a Feature Service or a Map Service. The layer can be either a (spatial) layer or a (non-spatial) table. The features in a FeatureLayer can be edited if it is based on a Feature Service. 
If the layer supports attachment, the layerDetails (or tableDetails) "hasAttachment" property will be true. If the feature layer is editable and has attachment, you can also add and delete attachments.
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So if you want to do editing, use temporal features, FeatureLayer is your choice.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FeatureLayer is essentially a GraphicsLayer with some sugar, i.e., built in QueryTask.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You wouldn't use DynamicMapServiceLayer directly, as it is a base class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/DynamicMapServiceLayer.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/DynamicMapServiceLayer.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But what it does allow you to do is something like&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;if (layer is DynamicMapServiceLayer)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; // do something to apply to all subclasses
}

//as opposed to writing
if (layer is ArcGISDynamicMapServiceLayer || layer is ArcGISImageServiceLayer || layer is ArcIMSMapServiceLayer || layer is GPResultImageLayer || layer is WMSLayer)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; // do the same thing
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can view the Layers in the layers package here, each with some some descriptions&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/package-detail.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/package-detail.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:05:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/when-to-use-various-layer-types-in-flex-api/m-p/176719#M4155</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-12-11T09:05:50Z</dc:date>
    </item>
  </channel>
</rss>

