<?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 Is it possible to have a pop up for my search widget to display information? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-have-a-pop-up-for-my-search/m-p/1287830#M81118</link>
    <description>&lt;P&gt;I would like a search widget that onclick displays something similar to the screenshot attached. I would only want it on one of my feature layers. How do I go about doing so?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see my codepen:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/chesouye/pen/poxVyXJ" target="_blank"&gt;https://codepen.io/chesouye/pen/poxVyXJ&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 May 2023 17:09:43 GMT</pubDate>
    <dc:creator>ChesouyeCoye</dc:creator>
    <dc:date>2023-05-10T17:09:43Z</dc:date>
    <item>
      <title>Is it possible to have a pop up for my search widget to display information?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-have-a-pop-up-for-my-search/m-p/1287830#M81118</link>
      <description>&lt;P&gt;I would like a search widget that onclick displays something similar to the screenshot attached. I would only want it on one of my feature layers. How do I go about doing so?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see my codepen:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/chesouye/pen/poxVyXJ" target="_blank"&gt;https://codepen.io/chesouye/pen/poxVyXJ&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 17:09:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-have-a-pop-up-for-my-search/m-p/1287830#M81118</guid>
      <dc:creator>ChesouyeCoye</dc:creator>
      <dc:date>2023-05-10T17:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to have a pop up for my search widget to display information?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-have-a-pop-up-for-my-search/m-p/1289192#M81159</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my understanding of your question. I apologize if I did not understand the question. I think you are asking to run search when user clicks on features of a given feature layer and show a popupTemplate using results of the search. This codepen app shows a proof of concept for how it can be done:&amp;nbsp;&lt;A href="https://codepen.io/U_B_U/pen/oNaMVoe?editors=100" target="_blank"&gt;https://codepen.io/U_B_U/pen/oNaMVoe?editors=100&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Essentially, you want to use &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#hitTest" target="_self"&gt;MapView.hittest()&lt;/A&gt; to return a result only when user clicks on the featurelayer of your choice by setting includes parameter. If the hittest returns results then you can call search widget's &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#search" target="_self"&gt;search method&lt;/A&gt; using either attribute, geometry or long,lat. Once the search returns the result, then you can show the popup by calling &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#open" target="_self"&gt;view.popup.open()&lt;/A&gt; method. You can setup the action, content and title of the popup as needed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 15:51:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-have-a-pop-up-for-my-search/m-p/1289192#M81159</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2023-05-15T15:51:32Z</dc:date>
    </item>
  </channel>
</rss>

