Configure a web app using URL parameters

Learn how to add custom URL parameters to your web app with ArcGIS Instant Apps.

Pedestrian accessibility by country web app created with ArcGIS Instant Apps.

ArcGIS Instant Apps enables you to customize various aspects of your web app using URL parameters, such as modifying the map view and search parameters. Here's an overview of how you can use ArcGIS Instant Apps URL parameters to customize your web app:

  1. Create your web app.

  2. Configure your app with data.

  3. Enable custom URL parameter.

  4. Test your web app.

  5. Share your web app.

Prerequisites

Steps

Create a web app

  1. In the Content tab of your organization, click Create app > Instant Apps.

  2. In the Create tab, click Choose button for the Sidebar template.

  3. Click Create app. For this tutorial, name the app Pedestrian Accessibility by Country and add your desired tags.

Configure your web app

With your app created, you can now configure the app by adding data. You will add data from ArcGIS Living Atlas.

  1. Click on Map > Select a map.

  2. Click on the My content dropdown > Living Atlas.

  3. In the Search bar, type the following: World accessibility indicators published by SDG Index (SDSN).

  4. Click on Select map.

Your web app should now have a map loaded. You can return to the configuration page to enable URL parameters.

Enable custom URL parameter

With your map loaded, you can now add a custom URL parameter in your web app.

  1. In the left panel. disable Express mode. When the confirmation prompt pops up, click Continue.

  2. Click on Interactivity > URL parameter.

  3. In the URL parameter name field, type the following: country_name.

  4. Click on Pedestrian accessibility indicators by country to enable it.

  5. Click on Field and select the name field.

  6. At the bottom, click Publish > Confirm to deploy your app.

Your app should look something like this.

Test your web app

With the custom URL parameter enabled, append &country_name= to the end of the URL of you web app to have the app zoom to that specified country. For example:

The demo web app will zoom to the country of France when &country_name=france is appended at the URL string.

Share your web app

Once your app is published, you can configure who can access your app. By default, the sharing level for your web app is set to only you having access to it.

  1. Navigate to the item page of your web app.

  2. Click Share to launch the "Share" dialog.

  3. Select the sharing level needed for your audience to access your app.

Tutorials

Use tools to create different types of content and build low-code/no-code applications.

Learn more on creating web apps using ArcGIS Instant Apps.

Tools

Use tools to access the ArcGIS organization and create and manage content for your no-code applications.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.