PROBLEM

Unable to geosearch locations outside the extent of embedded web maps

Last Published: April 26, 2020

Description

When a web map is embedded in a website, attempting to geosearch an address using the Location Search bar fails if the address is located outside the current extent of the web map.

Cause

By design, the default HTML code generated when embedding a web map in a website includes a 'searchextent' parameter that is set to 'true', limiting geosearches to the current extent of the web map. Therefore, the expected result of the geosearch is not returned when searching for an address not located within the extent of the web map.

Solution or Workaround

To geosearch locations outside the extent of embedded web maps, users must disable the 'searchextent' parameter in the HTML code of the web map by setting the parameter to 'false' before embedding the web map in the website. To do so, follow the steps provided below.

  1. Open the web map, and zoom in or out to set the desired extent. This step is not necessary if using the default extent of the web map.
  2. Click the Share button to open the Share window.
  3. In the Share window, under the 'Embed this map' option, click the EMBED IN WEBSITE button.
  4. In the Embed in Website window, check the Current Extent check box under the Location Search map option.

    Note:
    The Current Extent check box does not appear until the Location Search check box is selected.

  5. Change the 'searchextent' parameter from 'true' to 'false'.

    [O-Image]
  6. Embed the web map in the website.

    Note:
    Alternatively, the web map can also be published as a web application. For more information, refer to HowTo: Embed an ArcGIS Online web application in a website.

Article ID:000012669

Software:
  • ArcGIS Online

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic