<?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: FeatureLayers &amp;amp; Events issues in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/featurelayers-amp-amp-events-issues/m-p/715014#M15897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well I figured out the problem : There are problems (at least the ones discribed before) if you display the same featureLayer 2 times but with different names... events are mixed up... &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I just removed one of these and everything works fine now, but I guess there might be something to do to avoid bugs when that kind of situation arises... &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alex&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Sep 2011 19:32:02 GMT</pubDate>
    <dc:creator>earthmineinc</dc:creator>
    <dc:date>2011-09-15T19:32:02Z</dc:date>
    <item>
      <title>FeatureLayers &amp;amp; Events issues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/featurelayers-amp-amp-events-issues/m-p/715013#M15896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After adding a new feature to a featureLayer via "myFeatureLayer.applyEdits([ graphic ], null,&amp;nbsp; null);" I catch the FeatureLayerEvent.EDITS_COMPLETE well, so I assume that I can query my new set of features from the server, what I try to do just after with "myFeatureLayer.queryFeatures", but in fact it seems that it takes some time for the server to "register" the new feature I've just added and I dont get it in the result of my query, even though I can display it on my layer. So, it seems that either the FeatureLayerEvent.EDITS_COMPLETE is dispatch to early or maybe I am not listening to the right event, thank you for feedback.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Other thing, so, after adding my new feature and catching the FeatureLayerEvent.EDITS_COMPLETE, I want to display it on the map (or the layer to be precise), and I assume that "myFeatureLayer.refresh()" will help me but in fact it doesn't seem to work. I have to update the location of the center of the map ("_map.centerAt(_map.toMap(new Point(_map.width/2,_map.height/2)));") to force the refresh. Did you notice that? And the "LayerEvent.UPDATE_END" doesn't seem to be dispatched either...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry to bother you with all that stuff, but it would be great to have some insights from you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alex&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 17:33:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/featurelayers-amp-amp-events-issues/m-p/715013#M15896</guid>
      <dc:creator>earthmineinc</dc:creator>
      <dc:date>2011-09-15T17:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayers &amp; Events issues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/featurelayers-amp-amp-events-issues/m-p/715014#M15897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well I figured out the problem : There are problems (at least the ones discribed before) if you display the same featureLayer 2 times but with different names... events are mixed up... &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I just removed one of these and everything works fine now, but I guess there might be something to do to avoid bugs when that kind of situation arises... &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alex&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 19:32:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/featurelayers-amp-amp-events-issues/m-p/715014#M15897</guid>
      <dc:creator>earthmineinc</dc:creator>
      <dc:date>2011-09-15T19:32:02Z</dc:date>
    </item>
  </channel>
</rss>

