<?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 content not sync'd with graphic selection in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-content-not-sync-d-with-graphic-selection/m-p/41253#M3533</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i **think** map.infoWindow.setFeatures was trying to select the first map.infoWindow.feature before it was actually there??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ended up using a setTimeout() workaround to delay setFeatures() a few miliseconds. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;updated:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://jsfiddle.net/92Q2G/2/"&gt;http://jsfiddle.net/92Q2G/2/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Dec 2012 18:14:08 GMT</pubDate>
    <dc:creator>danbecker</dc:creator>
    <dc:date>2012-12-06T18:14:08Z</dc:date>
    <item>
      <title>popup content not sync'd with graphic selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-content-not-sync-d-with-graphic-selection/m-p/41252#M3532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;-click 2 overlapping features from 2 dif. featLayers. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Popup auto-selects and highlights map.infoWindow.features[0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-the popup content is actually from map.infoWindow.features[1]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;after you navigate to the second graphic and back, the popup corrects it's self??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here's the method of fetching graphics/setting infoTemplates&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. buffer map click&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. fill array with all graphics from baseFeatLayers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. dojo.filter graphics that intersect buffered map click&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. loop over filtered graphics array, setting infoTemplates based on the layer that graphics came from&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. pass selected filtered graphics array to map.infoWindow.setFeatures&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here's an example using esri data:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://jsfiddle.net/92Q2G/1/"&gt;http://jsfiddle.net/92Q2G/1/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;any advice?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 20:15:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-content-not-sync-d-with-graphic-selection/m-p/41252#M3532</guid>
      <dc:creator>danbecker</dc:creator>
      <dc:date>2012-12-05T20:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: popup content not sync'd with graphic selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-content-not-sync-d-with-graphic-selection/m-p/41253#M3533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i **think** map.infoWindow.setFeatures was trying to select the first map.infoWindow.feature before it was actually there??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ended up using a setTimeout() workaround to delay setFeatures() a few miliseconds. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;updated:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://jsfiddle.net/92Q2G/2/"&gt;http://jsfiddle.net/92Q2G/2/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 18:14:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-content-not-sync-d-with-graphic-selection/m-p/41253#M3533</guid>
      <dc:creator>danbecker</dc:creator>
      <dc:date>2012-12-06T18:14:08Z</dc:date>
    </item>
  </channel>
</rss>

