<?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 Setting Popup Location for Point in 4.0 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-popup-location-for-point-in-4-0/m-p/637530#M59571</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the sample called "Query features from a FeatureLayerView" in the JavaScript 4.0 API and am using a point feature layer rather than a polygon.&amp;nbsp; How do I set the location for the Popup Location? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two problems with what I have tried:&amp;nbsp; 1.&amp;nbsp; When I click on a list-item in the right pane, the popup doesn't display, unless I click on a feature first to bring up the popup.&amp;nbsp; Then as I go through the list-items, the popup content will change.&amp;nbsp; 2.&amp;nbsp; The location of the popup won't change when I am clicking list-items in the right pane.&amp;nbsp; The location of the popup does change when I click on the individual features on the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I have tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; (result) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; view.popup.open({&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; features: [result],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; location: evt.mapPoint&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jul 2016 22:26:19 GMT</pubDate>
    <dc:creator>LoriEmerson_McCormack</dc:creator>
    <dc:date>2016-07-06T22:26:19Z</dc:date>
    <item>
      <title>Setting Popup Location for Point in 4.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-popup-location-for-point-in-4-0/m-p/637530#M59571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the sample called "Query features from a FeatureLayerView" in the JavaScript 4.0 API and am using a point feature layer rather than a polygon.&amp;nbsp; How do I set the location for the Popup Location? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two problems with what I have tried:&amp;nbsp; 1.&amp;nbsp; When I click on a list-item in the right pane, the popup doesn't display, unless I click on a feature first to bring up the popup.&amp;nbsp; Then as I go through the list-items, the popup content will change.&amp;nbsp; 2.&amp;nbsp; The location of the popup won't change when I am clicking list-items in the right pane.&amp;nbsp; The location of the popup does change when I click on the individual features on the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I have tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; (result) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; view.popup.open({&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; features: [result],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; location: evt.mapPoint&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 22:26:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-popup-location-for-point-in-4-0/m-p/637530#M59571</guid>
      <dc:creator>LoriEmerson_McCormack</dc:creator>
      <dc:date>2016-07-06T22:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Popup Location for Point in 4.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-popup-location-for-point-in-4-0/m-p/637531#M59572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The popup position in the sample has to do with the docking options for mobile device views [&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#dockOptions" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#dockOptions" rel="nofollow noopener noreferrer" target="_blank"&gt;Popup | API Reference | ArcGIS API for JavaScript 4.0&lt;/A&gt; ].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To set the popup not to dock at the click of the item, set the following popup properties in the MapView object:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;popup: {
&amp;nbsp; dockEnabled: false,
&amp;nbsp; dockOptions: {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Disables the dock button from the popup
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; buttonEnabled: true,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Ignore the default sizes that trigger responsive docking
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; breakpoint: false 
&amp;nbsp; }
}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the popup to open at the Point feature location:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;view.popup.open({
&amp;nbsp;&amp;nbsp; features: [result],
&amp;nbsp;&amp;nbsp; location: result.geometry
});&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:05:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-popup-location-for-point-in-4-0/m-p/637531#M59572</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2021-12-12T03:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Popup Location for Point in 4.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-popup-location-for-point-in-4-0/m-p/637532#M59573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked perfectly.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 15:13:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-popup-location-for-point-in-4-0/m-p/637532#M59573</guid>
      <dc:creator>LoriEmerson_McCormack</dc:creator>
      <dc:date>2016-07-07T15:13:56Z</dc:date>
    </item>
  </channel>
</rss>

