<?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: PopupTemplate breaking changes in panels loading from API 4.4 and 4.17 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-breaking-changes-in-panels-loading/m-p/1046301#M72477</link>
    <description>&lt;P&gt;Hello Undral, thank you for answering.&lt;/P&gt;&lt;P&gt;Is there, or will there be a way to adjust this 20 read-ahead features, as a parameter ? Or is it definitely fixed to 20 ?&lt;/P&gt;&lt;P&gt;As our process that loads popup is quiet heavy, we must call popup dialog filling one by one.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Tue, 13 Apr 2021 10:57:48 GMT</pubDate>
    <dc:creator>ChristopheS</dc:creator>
    <dc:date>2021-04-13T10:57:48Z</dc:date>
    <item>
      <title>PopupTemplate breaking changes in panels loading from API 4.4 and 4.17</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-breaking-changes-in-panels-loading/m-p/1045452#M72429</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have noticed a very annoying problem for us.&lt;/P&gt;&lt;P&gt;In version 4.4 PopupTemplate with content function property use to display its panels "on demand".&lt;/P&gt;&lt;P&gt;Which means that panels where only queried when user was clicking on the next feature of the popup.&lt;/P&gt;&lt;P&gt;Now that we use 4.17 API, the issue is that the content panels are loaded once in a row for all panel features. Which can lead to a very big amount of data that has to be loaded and not useful.&lt;/P&gt;&lt;P&gt;You can see this difference in sample :&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=popuptemplate-promise" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=popuptemplate-promise&lt;/A&gt;&lt;/P&gt;&lt;P&gt;just change the API version from "&amp;lt;script src="&lt;A target="_blank" rel="noopener"&gt;https://js.arcgis.com/4.4/"&amp;gt;&amp;lt;/script&lt;/A&gt;&amp;gt;" to "&amp;lt;script src="&lt;A target="_blank" rel="noopener"&gt;https://js.arcgis.com/4.18/"&amp;gt;&amp;lt;/script&lt;/A&gt;&amp;gt;" and we can see that function "queryChargingStations()" is called on demand displayed panel in old 4.4 version, but for version 4.17, it is called on each features at the creation of the popup even though related panels are not displayed.&lt;/P&gt;&lt;P&gt;(To see that just put an alert"Panel now loading"); in the beginning of function queryChargingStations)&lt;/P&gt;&lt;P&gt;This leads for us to a huge data loading and causes issues.&lt;/P&gt;&lt;P&gt;Is there a way for content function to be called at feature's panel display time instead of all features in a row ?&lt;/P&gt;&lt;P&gt;Beast Regards , Christophe&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 15:19:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-breaking-changes-in-panels-loading/m-p/1045452#M72429</guid>
      <dc:creator>ChristopheS</dc:creator>
      <dc:date>2021-04-09T15:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: PopupTemplate breaking changes in panels loading from API 4.4 and 4.17</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-breaking-changes-in-panels-loading/m-p/1046109#M72469</link>
      <description>&lt;P&gt;Hi there,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We changed the &amp;nbsp;behavior you described at 4.19 to fetch 20 features at a time for a popup. &amp;nbsp;So the performance will be better if you upgrade to 4.19. &amp;nbsp;4.19 will be released at the end of April. You can already test your app by pointing to &lt;STRONG&gt;&lt;EM&gt;next&lt;/EM&gt;&lt;/STRONG&gt; version as shown below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;link rel="stylesheet" href="https://js.arcgis.com/next/esri/themes/light/main.css"/&amp;gt;
&amp;lt;script src="https://js.arcgis.com/next/"&amp;gt;&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;-Undral&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 21:18:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-breaking-changes-in-panels-loading/m-p/1046109#M72469</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2021-04-12T21:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: PopupTemplate breaking changes in panels loading from API 4.4 and 4.17</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-breaking-changes-in-panels-loading/m-p/1046301#M72477</link>
      <description>&lt;P&gt;Hello Undral, thank you for answering.&lt;/P&gt;&lt;P&gt;Is there, or will there be a way to adjust this 20 read-ahead features, as a parameter ? Or is it definitely fixed to 20 ?&lt;/P&gt;&lt;P&gt;As our process that loads popup is quiet heavy, we must call popup dialog filling one by one.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 10:57:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-breaking-changes-in-panels-loading/m-p/1046301#M72477</guid>
      <dc:creator>ChristopheS</dc:creator>
      <dc:date>2021-04-13T10:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: PopupTemplate breaking changes in panels loading from API 4.4 and 4.17</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-breaking-changes-in-panels-loading/m-p/1046532#M72499</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is fixed to 20 features at 4.19. I have created an enhancement request for this to be able to adjust this number. I will update you when this is installed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Undral&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 18:33:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-breaking-changes-in-panels-loading/m-p/1046532#M72499</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2021-04-13T18:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: PopupTemplate breaking changes in panels loading from API 4.4 and 4.17</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-breaking-changes-in-panels-loading/m-p/1059482#M73187</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to give you a quick update on this issue. At version 4.20, we added a new property called `featurePerPage` on &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#properties-summary" target="_self"&gt;popupViewModel.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The version 4.20 will be released late June 2021. But you can test this property on our `next` version. You can see this property in action in this test app:&amp;nbsp;&lt;A href="https://codepen.io/U_B_U/pen/jOBVKKy?editors=100" target="_blank"&gt;https://codepen.io/U_B_U/pen/jOBVKKy?editors=100&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following is how you set this property.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var view = new MapView({
  container: "viewDiv",
  map: map,
  zoom: 5,
  center: [-107.3567, 37.7705],
  popup: {
    viewModel: {
      featuresPerPage: 1
    }
  }
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Undral&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 16:25:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-breaking-changes-in-panels-loading/m-p/1059482#M73187</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2021-05-19T16:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: PopupTemplate breaking changes in panels loading from API 4.4 and 4.17</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-breaking-changes-in-panels-loading/m-p/1060310#M73231</link>
      <description>&lt;P&gt;Hi there, thank you a lot for this.&lt;/P&gt;&lt;P&gt;I will integrate this when 4.20 is available.&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 08:33:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-breaking-changes-in-panels-loading/m-p/1060310#M73231</guid>
      <dc:creator>ChristopheS</dc:creator>
      <dc:date>2021-05-21T08:33:40Z</dc:date>
    </item>
  </channel>
</rss>

