<?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 InfoWindows in JS API 3.x in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindows-in-js-api-3-x/m-p/71080#M6316</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do InfoWindows get updated?&amp;nbsp; If I create a custom InfoWindow class, create a new instance, and set it as the InfoWindow of a map, is it responsible for updating its own content or does the map somehow do that?&amp;nbsp; I want to write a custom Popup class, but I don't know if something else will overwrite my changes anytime I try to set the content of the popup.&amp;nbsp; Does anyone have a diagram about the events, methods, and process that takes a map click and ultimately turns it into an updated InfoWindow?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Nathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Sep 2020 18:05:34 GMT</pubDate>
    <dc:creator>NathanHeickLACSD</dc:creator>
    <dc:date>2020-09-16T18:05:34Z</dc:date>
    <item>
      <title>InfoWindows in JS API 3.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindows-in-js-api-3-x/m-p/71080#M6316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do InfoWindows get updated?&amp;nbsp; If I create a custom InfoWindow class, create a new instance, and set it as the InfoWindow of a map, is it responsible for updating its own content or does the map somehow do that?&amp;nbsp; I want to write a custom Popup class, but I don't know if something else will overwrite my changes anytime I try to set the content of the popup.&amp;nbsp; Does anyone have a diagram about the events, methods, and process that takes a map click and ultimately turns it into an updated InfoWindow?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Nathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2020 18:05:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindows-in-js-api-3-x/m-p/71080#M6316</guid>
      <dc:creator>NathanHeickLACSD</dc:creator>
      <dc:date>2020-09-16T18:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: InfoWindows in JS API 3.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindows-in-js-api-3-x/m-p/71081#M6317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I will attempt to explain the process.&lt;/P&gt;&lt;P&gt;If the map has a layer with popup defined then the map will attach event listeners to the the map and fire off a query to the layers service to see if the map click has a feature or features that intersect the click point. If there are intersected features then the map sends the popup dijit (InfoWindow:&amp;nbsp;&lt;SPAN style="color: #4d4d4d; background-color: #ffffff;"&gt;Default value is an instance of a Popup) set features method the results of the query. The popup looks to see if there is an &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/popuptemplate-amd.html"&gt;PopupTemplate&lt;/A&gt;&amp;nbsp;defined for that feature and then formats the popup content based on that template.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; background-color: #ffffff;"&gt;If there is more than one layer that have popups defined or more then one feature of a layer that intersects the map click the the popup will have all the features sent to its features property and then show the pagination controls.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; background-color: #ffffff;"&gt;FYI:&amp;nbsp;&lt;SPAN&gt;After version 3.4 the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/popup-amd.html" style="color: #00629b; text-decoration: none;"&gt;Popup&lt;/A&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is the default, so don't look down the road of &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/infowindow-amd.html"&gt;InfoWindow&lt;/A&gt;&amp;nbsp;class.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; background-color: #ffffff;"&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2020 18:43:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindows-in-js-api-3-x/m-p/71081#M6317</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-09-16T18:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: InfoWindows in JS API 3.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindows-in-js-api-3-x/m-p/71082#M6318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was really helpful.&amp;nbsp; The map identifies which features were clicked and sets the features on the popup.&amp;nbsp; Then, the popup updates itself accordingly.&amp;nbsp; I kept seeing the method setContent and thought the map was doing all the work.&amp;nbsp; Is the popup then like a whiteboard that is constantly being erased and rewritten on?&amp;nbsp; If you use setContent anywhere in your code to load arbitrary HTML into the popup, would that then be replaced after the next map click or other event updates it?&amp;nbsp; I'd like to determine if we can add tabs to our popups and populate some of the tabs with tables of related records.&amp;nbsp; I just wanted to figure out where I could insert the logic to query the related records and build the tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2020 20:10:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindows-in-js-api-3-x/m-p/71082#M6318</guid>
      <dc:creator>NathanHeickLACSD</dc:creator>
      <dc:date>2020-09-16T20:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: InfoWindows in JS API 3.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindows-in-js-api-3-x/m-p/71083#M6319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, like a whiteboard.&lt;/P&gt;&lt;P&gt;I have not personally added tab to a popup but it should be possible as you can pretty much add anything to the popups content.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2020 20:19:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindows-in-js-api-3-x/m-p/71083#M6319</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-09-16T20:19:50Z</dc:date>
    </item>
  </channel>
</rss>

