<?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: Loop through features with already applied layer definition in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loop-through-features-with-already-applied-layer/m-p/371979#M34490</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Piterson,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;If the layer is added to the map as a FeatureLayer then you can get the graphics that the FeatureLayer has using the &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html#graphics"&gt;graphics&lt;/A&gt; property on the FeatureLayer class.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Dec 2016 14:02:03 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2016-12-02T14:02:03Z</dc:date>
    <item>
      <title>Loop through features with already applied layer definition</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loop-through-features-with-already-applied-layer/m-p/371976#M34487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to&amp;nbsp;loop through features with already applied layer definition.&lt;/P&gt;&lt;P&gt;That means not to do additional query from a server, but get a FeatureSet from the client if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 07:27:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loop-through-features-with-already-applied-layer/m-p/371976#M34487</guid>
      <dc:creator>PitersonPaulgek</dc:creator>
      <dc:date>2016-12-01T07:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through features with already applied layer definition</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loop-through-features-with-already-applied-layer/m-p/371977#M34488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Piterson,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;If the layer is added to the map as a FeatureLayer then yes you can just get the features on the client. If the layer you are interested in is a layer from a ArcGISDynamicMapServiceLayer then the client has no information about individual features it only has an image of the mapservice from the server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 13:40:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loop-through-features-with-already-applied-layer/m-p/371977#M34488</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-12-01T13:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through features with already applied layer definition</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loop-through-features-with-already-applied-layer/m-p/371978#M34489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How we do it with FeatureLayer? What mode we need to use?&lt;/P&gt;&lt;P&gt;example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;mode: FeatureLayer.MODE_SNAPSHOT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 22:14:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loop-through-features-with-already-applied-layer/m-p/371978#M34489</guid>
      <dc:creator>PitersonPaulgek</dc:creator>
      <dc:date>2016-12-01T22:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through features with already applied layer definition</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loop-through-features-with-already-applied-layer/m-p/371979#M34490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Piterson,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;If the layer is added to the map as a FeatureLayer then you can get the graphics that the FeatureLayer has using the &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html#graphics"&gt;graphics&lt;/A&gt; property on the FeatureLayer class.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 14:02:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loop-through-features-with-already-applied-layer/m-p/371979#M34490</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-12-02T14:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through features with already applied layer definition</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loop-through-features-with-already-applied-layer/m-p/371980#M34491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;Thank you for the response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see that "graphics" property has length 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what I need to do to properly loop through?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additional question: how to loop through all features in current extent (features that currently visible on a map)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 01:35:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loop-through-features-with-already-applied-layer/m-p/371980#M34491</guid>
      <dc:creator>PitersonPaulgek</dc:creator>
      <dc:date>2016-12-05T01:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through features with already applied layer definition</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loop-through-features-with-already-applied-layer/m-p/371981#M34492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Piterson,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The only reason I can think that the FeatureLayer.graphics would be a zero length is that you are checking the length of the graphics before the layer is finished loading. Make sure you call the&amp;nbsp;&lt;SPAN&gt;FeatureLayer.graphics after the load event for the FeatureLayer has fired.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To get the graphics that are only in the maps visible extent you will have to do a query on the FL using that maps extent property.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 01:56:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loop-through-features-with-already-applied-layer/m-p/371981#M34492</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-12-05T01:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through features with already applied layer definition</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loop-through-features-with-already-applied-layer/m-p/371982#M34493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe the issue - the mode we use.&lt;/P&gt;&lt;P&gt;What mode should be fro this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #ededed;"&gt;MODE_SNAPSHOT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #ededed;"&gt;&lt;SPAN&gt;MODE_ONDEMAND&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #ededed;"&gt;&lt;SPAN&gt;other?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #ededed;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #ededed;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 02:45:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loop-through-features-with-already-applied-layer/m-p/371982#M34493</guid>
      <dc:creator>PitersonPaulgek</dc:creator>
      <dc:date>2016-12-05T02:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through features with already applied layer definition</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loop-through-features-with-already-applied-layer/m-p/371983#M34494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends on your needs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE style="color: #4d4d4d; background-color: #fafafa; border-width: 1px 1px 0px; border-style: solid; border-color: #d9d9d9; font-size: 14px; margin: 0.1em 0px 0.3em;"&gt;&lt;TBODY&gt;&lt;TR style="border-bottom: 1px solid #ededed;"&gt;&lt;TD class="" style="color: #595959; background-color: #ededed; border-width: 0px 0px 1px; border-style: solid; border-color: #d9d9d9; font-size: 14px; padding: 4px 6px;"&gt;&lt;CODE style="background: transparent;"&gt;MODE_ONDEMAND&lt;/CODE&gt;&lt;/TD&gt;&lt;TD class="" style="color: #595959; background-color: #ededed; border-width: 0px 0px 1px; border-style: solid; border-color: #d9d9d9; font-size: 14px; padding: 4px 6px;"&gt;&lt;P style="color: black; font-size: 1em; margin: 1em 0px 1em 0.8em;"&gt;In on-demand mode, the feature layer retrieves features from the server when needed. This is based on the requirements defined in the following properties:&lt;/P&gt;&lt;UL style="font-size: 1em; margin: 1em 0px 1em 0.8em; padding: 0px 0px 0px 1.6em;"&gt;&lt;LI style="margin: 0px 0px 0.5em; padding-left: 1.25em;"&gt;Map properties such as the current spatial extent and time extent.&lt;/LI&gt;&lt;LI style="margin: 0px 0px 0.5em; padding-left: 1.25em;"&gt;Layer properties such as time offset and definition expression.&lt;/LI&gt;&lt;/UL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="background-color: #fafafa; border-bottom: 1px solid #ededed;"&gt;&lt;TD class="" style="color: #595959; background-color: #fafafa; border-width: 0px 0px 1px; border-style: solid; border-color: #d9d9d9; font-size: 14px; padding: 4px 6px;"&gt;&lt;CODE style="background: transparent;"&gt;MODE_SELECTION&lt;/CODE&gt;&lt;/TD&gt;&lt;TD class="" style="color: #595959; background-color: #fafafa; border-width: 0px 0px 1px; border-style: solid; border-color: #d9d9d9; font-size: 14px; padding: 4px 6px;"&gt;&lt;P style="color: black; font-size: 1em; margin: 1em 0px 1em 0.8em;"&gt;In selection mode, features are retrieved from the server only when they are selected. Features are available on the client only while they are selected. To work with selected features:&lt;/P&gt;&lt;OL style="font-size: 1em; margin: 0.5em 0em 0em; padding: 0px 0px 0px 1.6em;"&gt;&lt;LI style="margin: 0px 0px 0.2em;"&gt;Call the selectFeatures method.&lt;/LI&gt;&lt;LI style="margin: 0px 0px 0.2em;"&gt;Listen for the onSelectionComplete event.&lt;/LI&gt;&lt;LI style="margin: 0px 0px 0.2em;"&gt;Once onSelectionComplete fires, retrieve the selected features using the getSelectedFeatures method.&lt;/LI&gt;&lt;/OL&gt;&lt;P style="color: black; font-size: 1em; margin: 1em 0px 1em 0.8em;"&gt;&lt;/P&gt;&lt;P style="color: black; font-size: 1em; margin: 1em 0px 1em 0.8em;"&gt;When editing feature layers in selection mode, you will need to add the map service associated with the feature service to the map as a dynamic map service. If you do not have the map service added as a dynamic map service then the changes will not be visible because once the edits are complete the feature is no longer selected.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border-bottom: 1px solid #ededed;"&gt;&lt;TD class="" style="color: #595959; background-color: #ededed; border-width: 0px 0px 1px; border-style: solid; border-color: #d9d9d9; font-size: 14px; padding: 4px 6px;"&gt;&lt;CODE style="background: transparent;"&gt;MODE_SNAPSHOT&lt;/CODE&gt;&lt;/TD&gt;&lt;TD class="" style="color: #595959; background-color: #ededed; border-width: 0px 0px 1px; border-style: solid; border-color: #d9d9d9; font-size: 14px; padding: 4px 6px;"&gt;In snapshot mode, the feature layer retrieves all the features from the associated layer resource and displays them as graphics on the client. Definition expressions and time definitions are honored. The features are retrieved once the feature layer is added to the map. After the onUpdateEnd event has fired, you can access the features using the graphics property of the layer or through selection and query operations.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 03:34:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loop-through-features-with-already-applied-layer/m-p/371983#M34494</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-12-05T03:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through features with already applied layer definition</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loop-through-features-with-already-applied-layer/m-p/371984#M34495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It just does not work!! Should the feature layer be VISIBLE?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 04:06:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loop-through-features-with-already-applied-layer/m-p/371984#M34495</guid>
      <dc:creator>PitersonPaulgek</dc:creator>
      <dc:date>2016-12-05T04:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through features with already applied layer definition</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loop-through-features-with-already-applied-layer/m-p/371985#M34496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, visibility is not required, but like Robert said you must wait until the features are completely loaded and the definition query set. &amp;nbsp; I've tested the principle of iterating through the featurelayer graphics and it works. &amp;nbsp;For my test example the MODE_ONDEMAND was used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 10:01:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loop-through-features-with-already-applied-layer/m-p/371985#M34496</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2016-12-05T10:01:59Z</dc:date>
    </item>
  </channel>
</rss>

