<?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: Popup event order in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-event-order/m-p/292670#M26874</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; That sounds like a FEATURE of the JS api and there is nothing you can do to change that behavior except contact esri tech support and log a bug so I can be addressed in the next release.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Sep 2016 12:42:42 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2016-09-13T12:42:42Z</dc:date>
    <item>
      <title>Popup event order</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-event-order/m-p/292669#M26873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been working on a custom popup widget using the JavaScript popup object, calling a number of external services with deferred results, meaning I need to manually create the popup content. I've noticed an issue with the order of the popup events, set-features and selection-change.&lt;/P&gt;&lt;P&gt;A have a single ArcGIS server map service with 4 layers, added to portal as a map image layer.&lt;BR /&gt;This map image layer has been added to a web map, and my app uses this web map.&lt;BR /&gt;My custom popup has been configured on all 4 layers.&lt;BR /&gt;When clicking on a feature in any layer that isn't the last layer (i.e. id 0-2), the popup is triggered with a selection-change then set-features.&lt;BR /&gt;When clicking on a feature in the last layer (i.e. 3), the popup is triggered with set-features then a selection-change.&lt;/P&gt;&lt;P&gt;This makes coding the calls to external services and generating the popup content a lot more complex than it needs to be, ideally I would make one call to my services on set-features, then generate content on selection-change, but this issue prevents that.&lt;/P&gt;&lt;P&gt;Is there a reason for the change in event order for the last layer in a service?&lt;BR /&gt;Is there anything I can change to make the events occur in the same order for every layer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 11:04:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-event-order/m-p/292669#M26873</guid>
      <dc:creator>AndyE</dc:creator>
      <dc:date>2016-09-13T11:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Popup event order</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-event-order/m-p/292670#M26874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; That sounds like a FEATURE of the JS api and there is nothing you can do to change that behavior except contact esri tech support and log a bug so I can be addressed in the next release.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 12:42:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-event-order/m-p/292670#M26874</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-09-13T12:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Popup event order</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-event-order/m-p/292671#M26875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll send in a report, I've added a quick and messy work around for the time being (pop-up content gets drawn twice, usually fast enough to be unnoticeable).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 14:56:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-event-order/m-p/292671#M26875</guid>
      <dc:creator>AndyE</dc:creator>
      <dc:date>2016-09-14T14:56:22Z</dc:date>
    </item>
  </channel>
</rss>

