<?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 In EXB get popup with layer attributes to display after using ArcGIS world geocoder address search? in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/in-exb-get-popup-with-layer-attributes-to-display/m-p/1288904#M6944</link>
    <description>&lt;P&gt;Hi all -&lt;/P&gt;&lt;P&gt;I am migrating a WAB app to EXB and have the following challenge: when using the search widget with the ArcGIS World geocoder, when the user types in and selects an address candidate I would like the map to zoom to the address location, display a marker, and then trigger a webmap popup showing attributes from a layer in the map for that location.&amp;nbsp; I think this is a common task - using the world geocoder to search for an address, and then showing some information in a popup about that location based on other layers in the map.&lt;/P&gt;&lt;P&gt;With EXB for arcgis online, I can get the map to zoom to the address location and show a marker in the map, but I can't find any actions to trigger to show a webmap popup at that location.&amp;nbsp; The user has to close the address search and manually click on the map to get the popup.&amp;nbsp; Am I missing something in EXB for online that would enable this?&lt;/P&gt;&lt;P&gt;If not, I can use EXB developer and modify a copy of the search widget, but looking for pointers if anyone has already done that for search, as this seems like a common workflow.&amp;nbsp; Any advice would be greatly appreciated!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 13 May 2023 21:29:46 GMT</pubDate>
    <dc:creator>johnbrosowsky</dc:creator>
    <dc:date>2023-05-13T21:29:46Z</dc:date>
    <item>
      <title>In EXB get popup with layer attributes to display after using ArcGIS world geocoder address search?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/in-exb-get-popup-with-layer-attributes-to-display/m-p/1288904#M6944</link>
      <description>&lt;P&gt;Hi all -&lt;/P&gt;&lt;P&gt;I am migrating a WAB app to EXB and have the following challenge: when using the search widget with the ArcGIS World geocoder, when the user types in and selects an address candidate I would like the map to zoom to the address location, display a marker, and then trigger a webmap popup showing attributes from a layer in the map for that location.&amp;nbsp; I think this is a common task - using the world geocoder to search for an address, and then showing some information in a popup about that location based on other layers in the map.&lt;/P&gt;&lt;P&gt;With EXB for arcgis online, I can get the map to zoom to the address location and show a marker in the map, but I can't find any actions to trigger to show a webmap popup at that location.&amp;nbsp; The user has to close the address search and manually click on the map to get the popup.&amp;nbsp; Am I missing something in EXB for online that would enable this?&lt;/P&gt;&lt;P&gt;If not, I can use EXB developer and modify a copy of the search widget, but looking for pointers if anyone has already done that for search, as this seems like a common workflow.&amp;nbsp; Any advice would be greatly appreciated!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 May 2023 21:29:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/in-exb-get-popup-with-layer-attributes-to-display/m-p/1288904#M6944</guid>
      <dc:creator>johnbrosowsky</dc:creator>
      <dc:date>2023-05-13T21:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: In EXB get popup with layer attributes to display after using ArcGIS world geocoder address search?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/in-exb-get-popup-with-layer-attributes-to-display/m-p/1289110#M6953</link>
      <description>&lt;P&gt;I have been working on extending and improving the search widget for a week now and I have something that searches data from the map, adds a marker and shows a popup, so it can be done in the developer edition. There are a lot of pitfalls you will need to work through. Here are my top tips.&lt;/P&gt;&lt;P&gt;1. The best place to add your custom code is in the onSelectRecord function of /name-of-your-search-component/src/runtime/component/result-list.tsx.&lt;/P&gt;&lt;P&gt;2. In the typical behavior of the search widget this function will fire two or three times per search. I found a variable called 'version' in the code. It doesn't appear to do anything, it was likely a debugging variable that got left in the final code. I put my code inside an if statement based on this variable equaling 1 to prevent multiple triggers.&lt;/P&gt;&lt;P&gt;3. You will need to grab the mapView and you may want to load it into state. Code below:&lt;/P&gt;&lt;P&gt;import { JimuMapView, MapViewManager } from 'jimu-arcgis'&lt;/P&gt;&lt;P&gt;const viewManager = MapViewManager.getInstance()&lt;BR /&gt;const mapView = viewManager.getJimuMapViewById(viewManager.getAllJimuMapViewIds()[0])&lt;BR /&gt;const [jimuMapView, setJimuMapView] = React.useState&amp;lt;JimuMapView&amp;gt;(mapView)&lt;/P&gt;&lt;P&gt;You will also need to add&amp;nbsp; "dependency": [ "jimu-arcgis" ], to manifest.json.&lt;/P&gt;&lt;P&gt;4. From there, it should be mostly the same as adding layers and triggering popups in the Javascript API.&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 13:05:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/in-exb-get-popup-with-layer-attributes-to-display/m-p/1289110#M6953</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2023-05-15T13:05:57Z</dc:date>
    </item>
  </channel>
</rss>

