<?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: Select feature on map click instead of popup in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/select-feature-on-map-click-instead-of-popup/m-p/1533566#M14652</link>
    <description>&lt;P&gt;Thanks for responding.&amp;nbsp; After playing around with removing the code and adjusting what you sent before, I got it to work.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got some weird behavior at first when I commented some code out.&amp;nbsp; I didn't realize Typescript comments are slightly different from JavaScript.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for you help.&amp;nbsp; Accepted your response as a solution (although it was not for the original question)&lt;/P&gt;</description>
    <pubDate>Fri, 30 Aug 2024 20:17:58 GMT</pubDate>
    <dc:creator>Leonidas</dc:creator>
    <dc:date>2024-08-30T20:17:58Z</dc:date>
    <item>
      <title>Select feature on map click instead of popup</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/select-feature-on-map-click-instead-of-popup/m-p/1525949#M14443</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;This feels like it is a simple problem.&amp;nbsp; I would like to have the default state of the application to select features from a parcel layer without using the popup feature in the map widget and then show some information in a list/table widget.&amp;nbsp; I have disabled the pop-up in the Map widget.&amp;nbsp; The select process works if I use the Select tool in the map but I would prefer that the user does not have to click on the select tool first and would just be able to do this by default when the map loads initially.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are some examples of apps I have found that do this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://maps.co.kendall.il.us/mapviewer/" target="_self"&gt;https://maps.co.kendall.il.us/mapviewer/&lt;/A&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://experience.arcgis.com/experience/590b624f1a8c46e68821463e829b95c5" target="_self"&gt;https://experience.arcgis.com/experience/590b624f1a8c46e68821463e829b95c5&lt;/A&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/82823"&gt;@AmyRoust&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://experience.arcgis.com/experience/4476f767a9804c9d87eb2df2ef620661/page/Proposed-changes/" target="_self"&gt;https://experience.arcgis.com/experience/4476f767a9804c9d87eb2df2ef620661/page/Proposed-changes/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Developer edition 1.15 and trying to do this with out of the box tools for now.&amp;nbsp; The parcel layer is in a webmap in Portal for ArcGIS.&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 17:04:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/select-feature-on-map-click-instead-of-popup/m-p/1525949#M14443</guid>
      <dc:creator>Leonidas</dc:creator>
      <dc:date>2024-08-22T17:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Select feature on map click instead of popup</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/select-feature-on-map-click-instead-of-popup/m-p/1527041#M14502</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Leonidas,&lt;/P&gt;&lt;P&gt;You could add a message action to the Map widget.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Record selection changes -&amp;gt; Framework&amp;nbsp;-&amp;gt; Filter data records, set Trigger and Action data.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ke_Xu_0-1724675408382.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113460i475D19AAA2E526E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ke_Xu_0-1724675408382.png" alt="Ke_Xu_0-1724675408382.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please refer to the sample app:&amp;nbsp;&lt;A href="https://experience.arcgis.com/builder/?id=101c4e2a26c349be805f7e11cc4dd65e&amp;amp;views=data" target="_blank"&gt;https://experience.arcgis.com/builder/?id=101c4e2a26c349be805f7e11cc4dd65e&amp;amp;views=data&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ke&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 12:32:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/select-feature-on-map-click-instead-of-popup/m-p/1527041#M14502</guid>
      <dc:creator>Ke_Xu</dc:creator>
      <dc:date>2024-08-26T12:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Select feature on map click instead of popup</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/select-feature-on-map-click-instead-of-popup/m-p/1527317#M14512</link>
      <description>&lt;P&gt;Hi Ke,&lt;/P&gt;&lt;P&gt;Thanks for sending this.&amp;nbsp; This is how I had my app set up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I played around with the webmap and how the layers were added and got it to work that way.&amp;nbsp; The layer was originally linked to by using a portal map with a few other layers in the map service.&amp;nbsp; The layer was burred in a layer group.&amp;nbsp; When I linked directly to the layer in the service by using its ID (in portal webmap), selection on map click worked.&amp;nbsp; Hopefully that makes sense.&lt;/P&gt;&lt;P&gt;My issue now is that I would like to not show the ! icon when nothing is selected in the List and just the 'Click on a Parcel' text.&amp;nbsp; Is there any way to do this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Leonidas_0-1724693988330.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113499i34D4900EB87F5F83/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Leonidas_0-1724693988330.png" alt="Leonidas_0-1724693988330.png" /&gt;&lt;/span&gt;&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>Mon, 26 Aug 2024 17:43:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/select-feature-on-map-click-instead-of-popup/m-p/1527317#M14512</guid>
      <dc:creator>Leonidas</dc:creator>
      <dc:date>2024-08-26T17:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Select feature on map click instead of popup</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/select-feature-on-map-click-instead-of-popup/m-p/1527902#M14547</link>
      <description>&lt;P&gt;I was able to achieve this in ExB Dev 1.14 by making a copy of the List widget into "your-extensions\widgets" and then modifying renderEmptyElement function in widget.tsx.&amp;nbsp; More specifically, commenting out line 7 as in the example below will remove the icon.&amp;nbsp; In my example, I also hardcoded the no data message because I wanted more control over appearance.&lt;/P&gt;&lt;P&gt;Unfortunately, you will then have to replace the default List widget with your new custom widget in your app and reconfigure.&amp;nbsp; Also, remember to ensure the manifest.json reflects the custom widget folder name.&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  renderEmptyElement = (showLoading: boolean) =&amp;gt; {
    const isNoData = !this.records || this.records.length &amp;lt; 1
    const noDataMessage = this.props.config?.noDataMessage || this.formatMessage('noData')
    // const isShowClearActionButton = isNoData &amp;amp;&amp;amp; this.isHasPublishMessageAction
    return (!showLoading &amp;amp;&amp;amp; isNoData) &amp;amp;&amp;amp; (
      &amp;lt;div className='empty-con text-center'&amp;gt;
        {/*&amp;lt;WarningOutlined size={16}/&amp;gt;  CUSTOMIZED TO REMOVE ICON}*/}
        {/*&amp;lt;div className="discribtion"&amp;gt;{noDataMessage}&amp;lt;/div&amp;gt;  CUSTOMIZED TO REMOVE TEXT.  CUSTOMIZED NO DATA MESSAGE BELOW*/}
        &amp;lt;div className="discribtion"&amp;gt;&amp;lt;i&amp;gt;Select single features using pop-ups. &amp;lt;br/&amp;gt;Select multiple features using the Select tool.&amp;lt;/i&amp;gt;&amp;lt;/div&amp;gt;
        {/* {isShowClearActionButton &amp;amp;&amp;amp; &amp;lt;Button
          className="clear-message-action-button"
          size='sm'
          title={this.formatMessage('reset')}
          onClick={this.clearMessageAction}
        &amp;gt;
          {this.formatMessage('reset')}
        &amp;lt;/Button&amp;gt;} */}
      &amp;lt;/div&amp;gt;
    )
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 15:15:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/select-feature-on-map-click-instead-of-popup/m-p/1527902#M14547</guid>
      <dc:creator>Marshal</dc:creator>
      <dc:date>2024-08-27T15:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Select feature on map click instead of popup</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/select-feature-on-map-click-instead-of-popup/m-p/1529437#M14615</link>
      <description>&lt;P&gt;Thanks Marshal,&lt;/P&gt;&lt;P&gt;This is a great idea.&amp;nbsp; Unfortunately it did not work for me.&amp;nbsp; I am using ExB15, but also tried the method on ExB14.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this and am getting an error when starting the client.&amp;nbsp; See below.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried editing the default List widget.tsx in the&amp;nbsp;client\dist\widgets\common\list\src\runtime folder.&amp;nbsp; This did not work since it sounds like this folder is not used at runtime.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-experience-builder-questions/modifying-default-widgets-in-arcgis-experience/m-p/1311970#M7718" target="_self"&gt;https://community.esri.com/t5/arcgis-experience-builder-questions/modifying-default-widgets-in-arcgis-experience/m-p/1311970#M7718&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-08-29 100336.png" style="width: 960px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/113842iE2F4D446E9DCA70E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-08-29 100336.png" alt="Screenshot 2024-08-29 100336.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 14:48:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/select-feature-on-map-click-instead-of-popup/m-p/1529437#M14615</guid>
      <dc:creator>Leonidas</dc:creator>
      <dc:date>2024-08-29T14:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Select feature on map click instead of popup</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/select-feature-on-map-click-instead-of-popup/m-p/1533231#M14642</link>
      <description>&lt;P&gt;Sorry, I forgot I ran into this as well and here was my fix.&amp;nbsp; Disclaimer; I don't know all adverse affects these changes might have, but it did not cause any issues for our use case.&lt;/P&gt;&lt;P&gt;I commented out the LinkContainer import&amp;nbsp; from widget.tsx (line 87).&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// import { LinkContainer } from 'jimu-ui/advanced/link-container'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then also remove reference to LinkContainer in render() function (line 2937 - 2980).&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;        &amp;lt;div className='widget-list d-flex' onMouseMove={this.onListContainerMouseMove}&amp;gt;
          &amp;lt;LinkContainer  ****DELETE FROM HERE
            widgetId={id}
            appMode={appMode}
            linkParam={config.linkParam}
            queryObject={queryObject}
            useDataSources={useDataSources}
            changeIsCanClickLink={this.changeIsCanClickLink}
          &amp;gt;  ****DELETE TO HERE
            {this.isDsConfigured()
              ? (
                &amp;lt;DataSourceComponent
                  query={datasource ? query : null}
                  useDataSource={useDataSources &amp;amp;&amp;amp; useDataSources[0]}
                  onDataSourceCreated={this.onDSCreated}
                  onCreateDataSourceFailed={this.onCreateDataSourceFailed}
                  widgetId={this.props.id}
                  queryCount
                  onDataSourceInfoChange={this.onDataSourceInfoChange}
                  onSelectionChange={this.onDsSelectionChange}
                &amp;gt;
                  {this.renderList}
                &amp;lt;/DataSourceComponent&amp;gt;
                )
              : (
                  this.renderList()
                )}
            {(!this.isHasRenderList &amp;amp;&amp;amp; !createDataSourceFailed) &amp;amp;&amp;amp; (
              &amp;lt;div className='list-loading-con w-100 h-100'&amp;gt;
                &amp;lt;div className='jimu-secondary-loading'&amp;gt;&amp;lt;/div&amp;gt;
              &amp;lt;/div&amp;gt;)}
            {
              createDataSourceFailed &amp;amp;&amp;amp; &amp;lt;div className='list-error-con position-relative w-100 h-100'&amp;gt;
                {this.renderWidgetPlaceholder()}
                &amp;lt;Alert
                  className='position-absolute'
                  type='warning'
                  withIcon
                  text={this.formatMessage('dataSourceCreateError')}
                /&amp;gt;
              &amp;lt;/div&amp;gt;
            }
          &amp;lt;/LinkContainer&amp;gt;  ****DELETE THIS LINE
        &amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 30 Aug 2024 12:22:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/select-feature-on-map-click-instead-of-popup/m-p/1533231#M14642</guid>
      <dc:creator>Marshal</dc:creator>
      <dc:date>2024-08-30T12:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Select feature on map click instead of popup</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/select-feature-on-map-click-instead-of-popup/m-p/1533566#M14652</link>
      <description>&lt;P&gt;Thanks for responding.&amp;nbsp; After playing around with removing the code and adjusting what you sent before, I got it to work.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got some weird behavior at first when I commented some code out.&amp;nbsp; I didn't realize Typescript comments are slightly different from JavaScript.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for you help.&amp;nbsp; Accepted your response as a solution (although it was not for the original question)&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 20:17:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/select-feature-on-map-click-instead-of-popup/m-p/1533566#M14652</guid>
      <dc:creator>Leonidas</dc:creator>
      <dc:date>2024-08-30T20:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Select feature on map click instead of popup</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/select-feature-on-map-click-instead-of-popup/m-p/1541434#M15023</link>
      <description>&lt;P&gt;I commented the code as mentioned above. After, drag and drop the custom list widget, I am getting "failed to load"&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 15:04:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/select-feature-on-map-click-instead-of-popup/m-p/1541434#M15023</guid>
      <dc:creator>vijaybadugu</dc:creator>
      <dc:date>2024-09-23T15:04:01Z</dc:date>
    </item>
  </channel>
</rss>

