<?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: How to get graphics from FeatureLayer JS 4.0beta? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-graphics-from-featurelayer-js-4-0beta/m-p/192194#M17725</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;[...]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;featureLayer.graphicsCollection does not exist.&lt;/STRONG&gt; The Migration page in the guide is wrong and will be updated soon. featureLayer.graphics exists, but as the original post mentions, doesn't actually do anything. This too will likely go away and accessing graphics on the view will change in the future. Stay tuned for documentation updates explaining this. [...] This is a major difference between our 3.x and 4.x APIs, so keep a look out for updated documentation, blogs, etc that go into greater depth explaining these concepts and classes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Kristian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for this relatively in-depth answer. Can you tell us more about the beta release cycle? Will all the updates be pushed iterative or do we have to wait for all these changes for the next beta release?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Aug 2015 07:12:23 GMT</pubDate>
    <dc:creator>Ceesvan_Altena</dc:creator>
    <dc:date>2015-08-03T07:12:23Z</dc:date>
    <item>
      <title>How to get graphics from FeatureLayer JS 4.0beta?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-graphics-from-featurelayer-js-4-0beta/m-p/192189#M17720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know how to get graphics (ie, fields values) from FeatureLayer? After having added feature service to the SceneView, featureLayer.graphics.length&amp;nbsp; returns 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 15:42:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-graphics-from-featurelayer-js-4-0beta/m-p/192189#M17720</guid>
      <dc:creator>nita14</dc:creator>
      <dc:date>2015-07-29T15:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to get graphics from FeatureLayer JS 4.0beta?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-graphics-from-featurelayer-js-4-0beta/m-p/192190#M17721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the migration guide (&lt;A href="https://developers.arcgis.com/javascript/beta/guide/migrating/" title="https://developers.arcgis.com/javascript/beta/guide/migrating/"&gt;Migrating from 3.x to 4.0 | ArcGIS API for JavaScript&lt;/A&gt; ), the graphics are now at the &lt;STRONG&gt;graphicsCollection&lt;/STRONG&gt; property of the FeatureLayer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;There are no graphics on the &lt;CODE style="font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; padding: 0.25rem; color: #595959; font-size: 0.85em; background: #f8f8f8;"&gt;FeatureLayer&lt;/CODE&gt;, use &lt;CODE style="font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; padding: 0.25rem; color: #595959; font-size: 0.85em; background: #f8f8f8;"&gt;featureLayer.graphicsCollection&lt;/CODE&gt;which has methods to access the graphics. For example,&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="hljs-tag" style="color: #000080; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14.875px;"&gt;graphicsCollection&lt;/SPAN&gt;&lt;SPAN class="hljs-class" style="color: #795da3; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14.875px;"&gt;.length&lt;/SPAN&gt;&lt;SPAN style="color: #595959; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14.875px; background-color: #f8f8f8;"&gt;();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN class="hljs-tag" style="color: #000080; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14.875px;"&gt;graphicsCollection&lt;/SPAN&gt;&lt;SPAN class="hljs-class" style="color: #795da3; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14.875px;"&gt;.getItemAt&lt;/SPAN&gt;&lt;SPAN style="color: #595959; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14.875px; background-color: #f8f8f8;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="hljs-tag" style="color: #000080; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14.875px;"&gt;index&lt;/SPAN&gt;&lt;SPAN style="color: #595959; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 14.875px; background-color: #f8f8f8;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope that helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Adam&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 15:58:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-graphics-from-featurelayer-js-4-0beta/m-p/192190#M17721</guid>
      <dc:creator>AdamPfister</dc:creator>
      <dc:date>2015-07-29T15:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get graphics from FeatureLayer JS 4.0beta?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-graphics-from-featurelayer-js-4-0beta/m-p/192191#M17722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for this quick reply. I forgot about simple RTFM! However, i can not access &lt;SPAN style="color: #595959; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 11.8999996185303px; background-color: #f8f8f8;"&gt;graphicsCollection&lt;/SPAN&gt; property of my feature layer (feature service hosted in agol), it does not exist. There are only graphics and&amp;nbsp; graphicsSource properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now i decided to bypass it using query and queryTask.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 18:55:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-graphics-from-featurelayer-js-4-0beta/m-p/192191#M17722</guid>
      <dc:creator>nita14</dc:creator>
      <dc:date>2015-07-29T18:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to get graphics from FeatureLayer JS 4.0beta?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-graphics-from-featurelayer-js-4-0beta/m-p/192192#M17723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adam and Adam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The documentation on this is misleading and, in the cases you both brought up, contradictory. The reason for this is because the way these workflows are being designed has been changing and will continue to change as 4.0 progresses through multiple betas into the final product. The documentation reflects some of these changes over time, but isn't consistent with how things are now. We are updating it so that it will not be as confusing. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;featureLayer.graphicsCollection does not exist.&lt;/STRONG&gt; The Migration page in the guide is wrong and will be updated soon. featureLayer.graphics exists, but as the original post mentions, doesn't actually do anything. This too will likely go away and accessing graphics on the view will change in the future. Stay tuned for documentation updates explaining this. There are a number of reasons featureLayer.graphics will no longer be used, the primary reason being that features are no longer rendered on the layer or the map; rather, they are rendered in the &lt;A href="https://developers.arcgis.com/javascript/beta/api-reference/esri-views-layers-LayerView.html"&gt;LayerView&lt;/A&gt; and &lt;A href="https://developers.arcgis.com/javascript/beta/api-reference/esri-views-View.html"&gt;View&lt;/A&gt;. This is a major difference between our 3.x and 4.x APIs, so keep a look out for updated documentation, blogs, etc that go into greater depth explaining these concepts and classes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the interim you can access the graphics displayed in the view via the 'graphics-controller-create' event on the featureLayer. This is undocumented, but will be later. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt; The event object has a graphicsController property, which is an object that has a graphicsCollection property. See this jsbin for an example of accessing the graphics using one of our existing samples: &lt;A href="https://jsbin.com/vuduhupabu/edit?html,output" title="https://jsbin.com/vuduhupabu/edit?html,output"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 22:10:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-graphics-from-featurelayer-js-4-0beta/m-p/192192#M17723</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2015-07-29T22:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get graphics from FeatureLayer JS 4.0beta?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-graphics-from-featurelayer-js-4-0beta/m-p/192193#M17724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kristian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for clear explanation!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 05:29:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-graphics-from-featurelayer-js-4-0beta/m-p/192193#M17724</guid>
      <dc:creator>nita14</dc:creator>
      <dc:date>2015-07-30T05:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get graphics from FeatureLayer JS 4.0beta?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-graphics-from-featurelayer-js-4-0beta/m-p/192194#M17725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;[...]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;featureLayer.graphicsCollection does not exist.&lt;/STRONG&gt; The Migration page in the guide is wrong and will be updated soon. featureLayer.graphics exists, but as the original post mentions, doesn't actually do anything. This too will likely go away and accessing graphics on the view will change in the future. Stay tuned for documentation updates explaining this. [...] This is a major difference between our 3.x and 4.x APIs, so keep a look out for updated documentation, blogs, etc that go into greater depth explaining these concepts and classes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Kristian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for this relatively in-depth answer. Can you tell us more about the beta release cycle? Will all the updates be pushed iterative or do we have to wait for all these changes for the next beta release?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2015 07:12:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-graphics-from-featurelayer-js-4-0beta/m-p/192194#M17725</guid>
      <dc:creator>Ceesvan_Altena</dc:creator>
      <dc:date>2015-08-03T07:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to get graphics from FeatureLayer JS 4.0beta?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-graphics-from-featurelayer-js-4-0beta/m-p/192195#M17726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should only expect updates coming with each beta release. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 17:51:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-graphics-from-featurelayer-js-4-0beta/m-p/192195#M17726</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2015-08-05T17:51:20Z</dc:date>
    </item>
  </channel>
</rss>

