Web AppBuilder for ArcGIS (Developer Edition)

Near Me widget

(Added at v2.0)

The Near Me widget allows you to find features within a buffer of a defined address or location, view detailed information about those features, and get directions to the selected feature.

Additionally, the Near Me widget can be configured to find polygon features containing a defined address or location instead of polygon features within the buffer.

Caution:

You may notice the difference in buffer operation from the Measurement widget. This is because the Near Me widget uses a Euclidean buffer (planar) by default and has an option to choose a geodesic buffer. The Measurement widget, however, defaults to a geodesic buffer with no options.

Configure the Near Me widget

This widget can be set to open automatically when an app starts. To enable this feature, click the Open this widget automatically when the app starts button Open this widget automatically when the app starts on the widget, which turns it dark green.

  1. Hover over the widget and click the Configure this widget button Configure this widget to open the configuration properties dialog box.
  2. Optionally click Change widget icon and replace it with an image of your own.

    A file explorer window appears, allowing you to select a local image file to use as the widget icon.

  3. To configure the Search Source Settings section, see the Search widget topic. The Near Me widget follows the same configuration steps.
  4. In the Search Settings section of the widget configuration, specify the following options:
    • Search font color for search results—This is the color displayed in the title section of the search results.
    • Select search layer(s)—Select a layer or layers to be configured in the widget.
      Note:

      Search layers must have a pop-up configured.

    • Set Location Button—Enable this option to display the Set Location button next to the search box. Click the button and click the map to set the search location. If you don't enable this option, clicking the map will automatically set the location.
    • Only draw selected search layer results—Enable this option to only display features of the layer selected in the listed search results.
    • Set buffer visibility—Enable this option to display the buffer.
      • Set buffer distance—Define the default value of the buffer slider.
      • Set maximum buffer distance—Define the maximum value of the buffer slider.
    • Buffer distance units—Define the units used by the buffer slider, such as miles, kilometers, meters, or feet.
    • Limit number or results—Specify the maximum number of results to return.
    • Use geodesic buffer—Enable this option to generate a geodesic buffer instead of a Euclidean buffer (planar).
    • Address or location symbols—Select and adjust the symbols used to mark the search location.
    • Zoom to selected feature—Enable this option to zoom to the selected feature and set a location instead of the buffer.
    • Return intersecting polygon(s)—Enable this option to return the polygon or polygons containing the searched location rather than polygons within the buffer.
  5. Note:
    The widget uses many elements from the map used in Web AppBuilder for ArcGIS. The list of features displays the layer names in the map, the results of each layer display from the pop-up title of the map pop-up, and the information panel displays the map pop-up.
  6. Optionally, in the Directions Settings section of the widget configuration, set up the widget to use routing, which allows you the option to get driving directions to the selected feature. To configure the Directions Settings section of the widget configuration, specify the following options:
    • Routing Service—Click Set and browse to a routing service in your ArcGIS Online organizational account, or provide the URL to the routing service.
      License:

      The ArcGIS Online World Route Service consumes credits. Before generating routes using this service, on the Attributes tab for the configuration of your Web AppBuilder application, configure Subscriber content access with the URL of the routing service used by your widget.

      Learn more about credit usage when creating simple routes

    • Direction length units—Select the units to display directions (kilometers or miles).
    • Select symbol to display route—Select the display symbol, color, style, transparency, and width for the route.
  7. Tip:
    Routing is enabled and disabled in the application settings of the ArcGIS Online item page of the map used by the widget.
  8. Use graphics to represent attribute values, such as pictographs for the amenities that are available at a facility. Configure these graphics in the Symbology Settings section of the widget configuration by doing the following:
    1. Click Add New Symbols to add a new symbol.
    2. Choose a layer, field, and value for that field to represent with a graphic.
    3. Choose a symbol to represent that value in that field and that layer. This graphic will display in the Near Me panel below the pop-up attributes and above any attachments. The graphic representation of the attribute will display even when the attribute is hidden in the pop-up.
    4. To remove a graphic, click the x under the Actions column.
  9. Allow your users to filter the search results to help them find the right information. Configure these filters in the Filter Settings section of the widget configuration by doing the following:
    1. Click New Filter and select a layer from the Layer drop-down list.
    2. Under the Info tab, name the filter in the Label text box.
    3. Choose an icon or browse to your local images to choose an icon for the filter. The default icon is used if you don't specify one.
    4. Under the Expressions tab, click + Add expression.
      1. Click the field drop-down arrow and choose the field you want to filter against from the list.
      2. Click the operators drop-down arrow and choose an operator from the list.

        Note:

        Date-related value providers now can provide relative dates, such as today, yesterday, and tomorrow. Date-related operators, such as in the last and not in the last, can also support the setting of relative dates (for example, in the last five days). Note that certain date-related operators, such as in the last and not in the last, are only available for online-hosted feature services.

        The is any of and is none of operators accept multiple values of a field as input. With one of the operators, your expression can get data that matches any/none of the selected values.

      3. To filter based on a specific value, click the settings button, choose Value, and specify a value in the field. Optionally, click the box to the left of Ask for values to set up an interactive expression. Type information about the value in the Prompt field and a hint in the Hint field. Select one or more values from the List values drop-down list to use to filter the layer.
      4. To compare the value in one field to the value in another field, choose Field in the settings, click the drop-down arrow, and choose the field for your expression.
      5. To filter based on a specific value in the field, choose Unique in the settings to retrieve a dynamic list of values from the layer, or choose Unique (predefined) to predefine a static list of values. It also allows you to dynamically show the values based on the previous expressions or all other expressions regardless of their orders. Provide information about the value in the Prompt field and a hint in the Hint field, and select how the values are listed.

        Caution:

        Unique value filters require a 10.1 or later map service layer. The Unique option does not appear if you are creating a filter on a 10.0 or earlier service layer.

        Caution:

        To display descriptions for coded values when Values filtered by previous expressions or Values filtered by all other expressions is selected, the service must support the capability of query by statistics.

      6. To filter on multiple values in the field, choose Multiple in the settings to retrieve a dynamic list of values from the layer, or choose Multiple (predefined) to predefine a static list of values. Note that only the is any of and is none of operators support multiple values.

        Note:

        If you created an expression based on values or a unique value, you can set up an interactive expression by checking the box to the left of Ask for values. You cannot ask for values on expressions based on a field.

    5. To create multiple expressions, or one or more sets of expressions, click + Add expression or Add set.

      A set is a grouping of expressions, for example, Shelter capacity is greater than 200 and Status is open.

    6. Under the Options tab, check the box to the left of Remove the preset layer filters from the map if you don't want to carry over the filters in the map to your app.
      • Optionally check Apply this filter when the widget is opened to apply the filter immediately when the widget is opened.
      • Optionally check the Collapse the filter expression (if any) when the widget is opened option to collapse the filter with Ask for values.
    7. To add another filter, repeat steps a through f.
      Note:

      When adding multiple filters, you have the option of displaying features that match any or all filters.

    8. Hover over the filter you created in the table to delete or reorder it.
    9. Optionally select Group filter by layer to sort the filters by the layer they impact.
    10. Check the Collapse the filter expression (if any) when the widget is opened option to collapse the filter with Ask for values.
    11. Click OK to save and close the configuration.

Use the Near Me widget

  1. Click the Near Me widget icon to open it.
  2. Define the area you want to buffer by adjusting the slider to the desired number.
  3. Search for an address in the search bar or click a location on the map to define the location to be buffered.

    Features found within the defined buffer for each layer are listed as well as a count of how many features belong to each layer.

    Features found within the buffer distance

  4. Click a layer in the list of results and click the desired feature.
    Information about the selected feature

    Information about the feature is shown on the Information tab.

  5. Note:
    If the widget is configured for one layer, all the features found for that layer are listed.
  6. Click the Directions tab if the widget is configured to provide driving directions.

    Driving directions to the selected feature from the defined location are shown.