<?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 Info Summary centerAt in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/info-summary-centerat/m-p/699300#M65144</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the Info Summary widget in WAB but I have&amp;nbsp;found that when a feature is out of the map extend, the map extend is not centered towards it nor shows the pop up window.&amp;nbsp;Trying to modify the Widget.json I have found that there is a function that should do exactly this but for some reason it isn't working:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;_pan: function (feature, centerPoint) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;var def = new Deferred();&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;if (this.showAllFeatures &amp;amp;&amp;amp; !this.map.extent.contains(feature.geometry)) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;this.map.centerAt(centerPoint).then(function (ext) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;def.resolve(ext);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;});&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;} else {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;def.resolve(undefined);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;return def;&lt;BR /&gt; },&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing I would like to change is that when you select a feature from the Info Summary drop down, the pop up window only shows the fields That you chose to display in the drop down, instead of the ones configured in the pop up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how to&amp;nbsp;these problems with the&amp;nbsp;Info Summary widget?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Jul 2019 08:59:15 GMT</pubDate>
    <dc:creator>OscarCalvente</dc:creator>
    <dc:date>2019-07-18T08:59:15Z</dc:date>
    <item>
      <title>Info Summary centerAt</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/info-summary-centerat/m-p/699300#M65144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the Info Summary widget in WAB but I have&amp;nbsp;found that when a feature is out of the map extend, the map extend is not centered towards it nor shows the pop up window.&amp;nbsp;Trying to modify the Widget.json I have found that there is a function that should do exactly this but for some reason it isn't working:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;_pan: function (feature, centerPoint) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;var def = new Deferred();&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;if (this.showAllFeatures &amp;amp;&amp;amp; !this.map.extent.contains(feature.geometry)) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;this.map.centerAt(centerPoint).then(function (ext) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;def.resolve(ext);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;});&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;} else {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;def.resolve(undefined);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;return def;&lt;BR /&gt; },&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing I would like to change is that when you select a feature from the Info Summary drop down, the pop up window only shows the fields That you chose to display in the drop down, instead of the ones configured in the pop up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how to&amp;nbsp;these problems with the&amp;nbsp;Info Summary widget?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2019 08:59:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/info-summary-centerat/m-p/699300#M65144</guid>
      <dc:creator>OscarCalvente</dc:creator>
      <dc:date>2019-07-18T08:59:15Z</dc:date>
    </item>
  </channel>
</rss>

