PROBLEM

Duplicate images displayed in the Near Me widget search results

Last Published: January 15, 2021

Description

The Near Me widget can be added to a web app to enable users to find features within the buffer of a defined address or location. In some instances, duplicate images are displayed in the Near Me widget search results when only one image is added to the feature in the hosted feature layer.

Image of the search result in the Near Me widget showing the next and previous icons
Image of the search result in the Near Me widget showing the next and previous icons

Cause

  • The ‘Show feature attachments as links’ option is checked in the Configure Pop-up setting of the hosted feature layer.
  • The image attached in the feature is added as pop-up media for the web map via an external URL.

Solution or Workaround

  1. In ArcGIS Online, open the hosted feature layer in Map Viewer.
  2. Click Details, and in the Content pane of the layer, navigate to More Options Image of the More Options icon > Configure Pop-up.
Image of the Content pane
  1. In the Configure Pop-up pane, under the Pop-up Contents section, uncheck the Show feature attachments as links check box.
Image of the Pop-up Contents section in the Pop-up Configuration pane
  1. If an external image URL is added as pop-up media, scroll to the Pop-up Media section, click the media, and click the Remove media Image of the Remove media iconbutton to remove the pop-up image.
Image of the Pop-up Media section in the Pop-up Configuration pane
Note:
Alternatively, to preserve the image in the pop-up for the web map, use the URL of an image publicly shared in ArcGIS Online.
1. Add the image in My Content. Refer to ArcGIS Online: Add files from your computer for more information. 
2. Change the sharing option of the image to Everyone (public). Refer to ArcGIS Online: Share items with everyone for steps to change the sharing option. 
3. Copy the URL at the bottom of the item details page.  
  Image of the URL field in item page 
4. Replace the existing URL with the URL copied from the item page. Refer to ArcGIS Online: Edit features for steps to do this.
  1. Click OK.
  2. On the web map, click the Save icon > Save.
Image of the Save buttons on the web map
  1. Launch the web app, and search for a location using the Near Me widget. The search result does not display duplicate images.
Image of the Near Me widget search result withtout duplicate image

Article ID: 000024785

Software:
  • ArcGIS Web AppBuilder
  • ArcGIS Online

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options